Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Connection Factory and Queue in JBOSS 5.x  RSS feed

 
chandr prakash
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Waiting for reply!
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
chandr prakash
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!