Announcement Announcement Module
No announcement yet.
Remote EJB call from JBoss AS7/EAP6 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remote EJB call from JBoss AS7/EAP6

    Hi all,

    I have deployed an EJB jar on JBoss AS 7/EAP6 and wants to call the EJB from my spring application.
    I use the SimpleRemoteStatelessSessionProxyFactoryBean and it works for EJB's which are deployed on localhost.

    Thats my sample config:

    <bean id="converterConfigEJB" class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean">
                    <property name="jndiTemplate" ref="remoteEjbJndiTemplate"/>
    		<property name="jndiName"
    			value="ejb:/Converter-EJBs/ConverterConfigService!de.mycompany.converter.ejb.interfaces.ConverterConfigServiceRemote" />
    		<property name="businessInterface" value="de.mycompany.converter.ejb.interfaces.ConverterConfigServiceRemote" />
    How can I configure that the remote EJB is deployed on a remote host?
    I think with JNDI properties but if I look into the EJB client samples from Red Hat they are using a "" file with properties like this: "".

    I've tried to use this properties with a "org.springframework.jndi.JndiTemplate":

    <bean id="remoteEjbJndiTemplate" class="org.springframework.jndi.JndiTemplate">
    		<property name="environment">
    				<prop key="">false</prop>
    				<prop key="">localhost</prop>
    				<prop key="remote.connection.default.port">4447</prop>
    				<prop key="">default</prop>
    But it doesnt matter which values I set for host or port properties. My example works. I think this jboss properties will be ignored. What are the correct properties for host and port?