My classes are working fine with Sun application server, but I wanted to change my application server to JBOSS because of some version problems in their AS.
I have created my queues in JBOSS (by adding them in jbossmq-destinations-service.xml) , but do you know where I should create my ConnectionFactory?
I want to use the ConnectionFactory later on like this:
jndiContext = new InitialContext(); connectionFactory = (ConnectionFactory) jndiContext.lookup("myConnectionFactory"); dest = (Destination) jndiContext.lookup(myQueue);
ConnectionFactory is by default available in JBoss. You can look it up as follows: