I am using jboss As 4.0 . initially we used jboss mq , but now we shifted to messaging.
As specifed in jboss messaginig users guide i uninstalled my mq and installed new messaging. now it created a seperate node named as messaging . i have deployed my ear it is working fine.
but now i want to run my messaging and default instances individually .
can any one tell me how to connect to messaging instance (jms server) from my default server.
following is code which i am using
Context ctx = new InitialContext(); ResourceBundle bundle = ResourceBundle.getBundle("ApplicationResources"); QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(bundle.getString("jmsConnection"));
my properties file contains jmsConnection = ConnectionFactory
There should be no difference in communicating with JBM than MQ.
You just make sure your jndi properties point to the correct server, lookup the connection factory and away you go.