Announcement Announcement Module
Collapse
No announcement yet.
Accessing secure EJB Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X