aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JMS using JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS using JBoss " Watch "JMS using JBoss " New topic
Author

JMS using JBoss

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
Hi All,
Please tell me on how to write JMS programs using JBoss 4.2.2 GA as an Application Server. Any code examples or resources would be helpful.
Thanks in advance.
Amir Pourteymour
Ranch Hand

Joined: Mar 06, 2008
Posts: 45
Hi,

First you should install JBoss AS 4.2.2 GA and Jboss messaging ( the latest one ) as well. Please read the documentation carefully as you should configure it properly prior any use.

Here is the link which can be useful:

http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/guide-1.0.1.SP5/html_single/index.html#d0e937

Also by downloading Jboss messaging, there are many useful/working examples which you can start to work with.

Everything is in their web site as long as you read the documentation carefully and not to mix everything up.
Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
How do we create administered objects (ConnectionFactory and Destination) in JBoss?. Please guide.
Amir Pourteymour
Ranch Hand

Joined: Mar 06, 2008
Posts: 45
Hi,
Find jbossmq-destinations-service.xml in your jboss installation folder. By adding given lines you can do whatever you want to do with your destinations.



You can also see how they created their default queues, and you get good ideas how to set security issues and etc.

Cheers,
Amir
Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
Hi,
I got how queues are created. But I am not able to understand how to create QueueConnectionFactory and TopicConnectionFactory which the jndi will lookup for. Please clear my doubts if i have missed something.
Thanks.
Amir Pourteymour
Ranch Hand

Joined: Mar 06, 2008
Posts: 45
The same way, but the mbean code is different. You have to see the document to see how exactly they will be created. If you read through JBoss manual you can see how to create every single of them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS using JBoss