Hello,
i'm trying to pass security information into the JNDI, but my Resource adapter
doesn't do anything with this information. The subject stays empty when i'm
using the getConnection() method without parameters.
Does anyone knows a sollution to this problem?
I've added the following code:
Hashtable properties = new Hashtable();
properties.put(Context.SECURITY_PRINCIPAL, userName);
properties.put(Context.SECURITY_CREDENTIALS,userPassWord);
Context jndiContext = new InitialContext(properties);
// properties contians the
Object ref =
jndiContext.lookup("ejb/ResourceConnectorSession");
<ejb-jar.xml>
<![CDATA[Description for ResourceConnectorSession]]>
<display-name>Name for ResourceConnectorSession</display-name>
<ejb-name>ResourceConnectorSession</ejb-name>
SsaJcaTestClient.interfaces.ResourceConnectorSessionHome
SsaJcaTestClient.interfaces.ResourceConnectorSession
<ejb-class>SsaJcaTestClient.ejb.ResourceConnectorSessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
A J2ee Resource Adapter
<res-ref-name>SsaJcaConnector</res-ref-name>
<res-type>javax.resource.cci.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<jboss.xml>
<ejb-name>ResourceConnectorSession</ejb-name>
<jndi-name>ejb/ResourceConnectorSession</jndi-name>
<resource-ref>
<res-ref-name>SsaJcaConnector</res-ref-name>
<jndi-name>java:/SsaJcaConnector</jndi-name>
</resource-ref>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878171#3878171
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878171
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user