[jboss-user] [JNDI and Naming] - Re: Issue with HA JNDI and Singleton MDB
Maurizio Moscatelli
do-not-reply at jboss.com
Wed Jan 12 09:15:49 EST 2011
Maurizio Moscatelli [http://community.jboss.org/people/topizio] created the discussion
"Re: Issue with HA JNDI and Singleton MDB"
To view the discussion, visit: http://community.jboss.org/message/580315#580315
--------------------------------------------------------------
Hi guys,
I've just change the *ejb-jar.xml* as
<jboss>
<enterprise-beans>
<message-driven>
<ejb-name>ServiceHandler</ejb-name>
* <destination-jndi-name>queue/ServiceHandler</destination-jndi-name>*
<resource-ref>
<res-ref-name>queue/ServiceHandler</res-ref-name>
* <jndi-name>jnp://${jboss.bind.address}:1100/queue/ServiceHandler</jndi-name>*
</resource-ref>
</message-driven>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>
and added in *jndi.properties* those two lines:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
*java.naming.provier.url=host1:1100,host2:1100*
*jnp.disableDiscovery=true*
and now the queues seems to work perfectly.
This configurasion work for JBoss Application Server 4.2.3 on Windows 2008 and two servers with different network subnet.
Thanks you anyway.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/580315#580315]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110112/3b792618/attachment.html
More information about the jboss-user
mailing list