JBoss Community

Re: access queue from different servers

created by everson . in JBoss Messaging - View the full discussion

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

Start a new discussion in JBoss Messaging at Community