Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Creating Connection Factory and Queue in JBOSS 5.x

 
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!
 
author
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
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.
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!