[jboss-user] [JBoss Messaging] - Re: access queue from different servers
everson .
do-not-reply at jboss.com
Sat Oct 8 16:48:37 EDT 2011
everson . [http://community.jboss.org/people/everjava] created the discussion
"Re: access queue from different servers"
To view the discussion, visit: http://community.jboss.org/message/630747#630747
--------------------------------------------------------------
i solved as below
send from server A
| | | Properties jndiProps = new Properties(); |
| | | jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); |
| | | jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); |
| | | jndiProps.put(Context.PROVIDER_URL, "jnp://1.1.1.1:1099"; |
| | | InitialContext initialContext = new InitialContext(jndiProps); |
server B(1.1.1.1)
Message drive bean
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630747#630747]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111008/5b60a1cd/attachment-0001.html
More information about the jboss-user
mailing list