Thursday, June 19, 2003 06:04 PM
The object bound as ConnectionFactory serves as both Queue and Topic connection factory.
Hence, your code should look like this:
QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
But if you really want to change the name, you can edit the file jbossmq-service.xml in your JBoss deploy directory. There is an entry that looks something like this:
Change the ConnectionFactoryJNDIRef attribute to anything you want.