wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Creating Connection Factory and Queue in JBOSS 5.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Creating Connection Factory and Queue in JBOSS 5.x" Watch "Creating Connection Factory and Queue in JBOSS 5.x" New topic
Author

Creating Connection Factory and Queue in JBOSS 5.x

chandr prakash
Ranch Hand

Joined: Jan 29, 2011
Posts: 32



Till now I worked on weblogic 10.x, Now i am migrating my code from weblogic to JBOSS.
In weblogic i used to create connection factory and queue using weblogic console. Weblogic console provides link on its home for creation of same($Wl_console-->Messaging-->JMS Modules.)
After that by creating JMS module, there was a option of 'JMS module connection factory creation' and 'jms module queue creation' in weblogic console.
But i dont know how to do the same task in jboss. try to be more clear, i'm in lack of ideas in this problem, even it sounds like a classic Please outline the steps
chandr prakash
Ranch Hand

Joined: Jan 29, 2011
Posts: 32
Waiting for reply!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

For JBoss AS 5.x, which uses JBoss Messaging, you create a *-service.xml file which defines the message queue and topics. For an example, see docs/examples/jms/example-destinations-service.xml
For documentation, see http://docs.jboss.org/jbossmessaging/docs/guide-1.0.1.SP5/html_single/index.html#conf.destination


JBoss In Action
chandr prakash
Ranch Hand

Joined: Jan 29, 2011
Posts: 32
As suggested by you i create a file in $JBOSS/server/default/deploy/messaging/myqueue-service.xml


But while deploying i am getting following error.Why i am getting this error and how can i solve it?

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

You have a typo. Here is a hint: look carefully at the class name for the ClassNotFoundException. Figure out where that is in your *-service.xml file (OK, i'll give you a hint, it's on line 6).

Now go back to the example-destinations-service.xml file and look at how a queue is declared there. An example queue starts on line 79, pay careful attention to the class name on that same line.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating Connection Factory and Queue in JBOSS 5.x