-
Mar 30th, 2009, 05:30 AM
#1
Accessing secure EJB
Hi,
I am trying to access an EJB (in Glassfish 2.1 container) that requires a username / password (configured using the EJB IOR as-context configuration) from Spring (Tomcat 5.5 container), configured as followed:
<bean id="hrCoreEJB" class="org.springframework.jndi.JndiObjectFactoryB ean">
<property name="jndiName" value="ejb/HRCoreEJB"/>
<property name="proxyInterface" value="com.ocado.hr.ejb.hrCore.IHRCoreEJBRemote"></property>
<property name="jndiEnvironment">
<props>
<prop key="java.naming.factory.initial">com.sun.enterpri se.naming.SerialInitContextFactory</prop>
<prop key="java.naming.factory.url.pkgs">com.sun.enterpr ise.naming</prop>
<prop key="java.naming.factory.state">com.sun.corba.ee.i mpl.presentation.rmi.JNDIStateFactoryImpl</prop>
<prop key="org.omg.CORBA.ORBInitialHost">localhost</prop>
<prop key="org.omg.CORBA.ORBInitialPort">3700</prop>
</props>
</property>
</bean>
How do I pass the currently authenticated user credentials (username & password) to the EJB container? Note: both containers are pointing to the same LDAP server.
I can succesfully get the EJB using a standalone client and ProgrammaticLogin but cannot find any documentation for Spring getting a reference to a secure EJB.
Please help.
Thanks,
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules