title: How to invoke a java method in ColdFusion 8 and pass a coldfusion Session variable to it?
body: <p>I am trying to invoke the java method below to a CFM page and I can not seem to get it. Additionally I need to set the values from CF session variables.   </p>
  
  <p>Provider.sendResponse(getServletContext(), response, IntegrationIDs.AuthnContextClasses.name, userName, attributes); </p>
  
  <p>Thank you in advance for any assistance. </p>
  
  <p>Here is my code example</p>
  
  <pre><code>&lt;cfset Obj = createobject("java","com.blah.blah.blah.Provider")/&gt;
  
  &lt;cfset servletContext = /&gt;
  &lt;cfset response = /&gt;
  &lt;cfset serverName = SESSION.server/&gt;
  &lt;cfset authnContext = /&gt;
  &lt;cfset uid = SESSION.uid /&gt;
  &lt;cfset attributes = /&gt;
  &lt;cfset targetUrl = http://yyy.com/&gt;
  
  &lt;cfset Obj_value = Obj.sendResponse(
               javax.servlet.ServletContext servletContext,
               javax.servlet.http.HttpServletResponse response,
               java.lang.String ServerName,
               java.lang.String authnContext,
               java.lang.String uid,
               java.util.Map&lt;java.lang.String,java.util.List&lt;java.lang.String&gt;&gt;attributes,
               java.lang.String targetUrl)/&gt; 
  </code></pre>
  
  <p>Am I approaching this the wrong way. Thank you in advance for any assistance. Greatly appreciate. </p>