dako ak [
https://community.jboss.org/people/dako_t] created the discussion
"Remote EJB call (JBoss AS7/EAP6 )"
To view the discussion, visit:
https://community.jboss.org/message/825927#825927
--------------------------------------------------------------
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 an 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"
/>
</bean>
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 "jboss-ejb-client.properties" file with properties like this:
"remote.connection.default.host".
I've tried to use this properties with a
"org.springframework.jndi.JndiTemplate":
<bean id="remoteEjbJndiTemplate"
class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop
key="remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED">false</prop>
<prop
key="remote.connection.default.host">localhost</prop>
<prop
key="remote.connection.default.port">4447</prop>
<prop
key="remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS">default</prop>
</props>
</property>
</bean>
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?
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/825927#825927]
Start a new discussion in Snowdrop at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]