jQuery in Action, 3rd edition
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Posting to JMS Remote Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Posting to JMS Remote Queue" Watch "Posting to JMS Remote Queue" New topic

Posting to JMS Remote Queue

James Owen

Joined: May 29, 2009
Posts: 18
Hi Java Gurus
I need some help from your expertise in JMS and posting to remote destination/queue. I would REALLY appreciate some help here.
I need to send a message to multiple remote destinations securily. I was wondering what is the best way to do this

I was debating having administered objects for connection factory and remote destinations stored in JNDI but was a little confused as to
1) Do i need connection factory of the remote queues JMS provider or Can i sent jms message to remote queue using my local connection factory stored in JNDI
2) How could administrative object for remote destination be stored in local JNDI
3) How can i secure the channel? Can SSL be used or do i need to encrypt the message.

I have also looked into propriotary bridge but am not sure as its vendor specific.
I hope someone helps me clear my confusion.i have spend good amount of time reserching this and now need some help to get unstuck.
Have a great long weekend
SCEA Part 1 93%, SCJP 5 91% SCBCD 83%
James Owen

Joined: May 29, 2009
Posts: 18
Can anyone please answer my question.
James Owen

Joined: May 29, 2009
Posts: 18
Rahul Mishra
Ranch Hand

Joined: Jan 22, 2006
Posts: 211
I will stick to the plain JMS API's while explaining this but even if you use any framework (Spring JMS) to connect to a JMS infrastructure the same concepts will apply -

1. You CANNOT send messages to a remote destination using a local connection factory. Look at the JMS API's for Connection Factory, Connection and Session. If your connection factory makes a local connection , then when sending the message it would attempt to find the destination using the local connection (it would not know where to look for any other remote destination -- does that make sense?) but that being said you could look at JNDI (not jms) to bind to a local connection factory and then explore if a JNDI provider will allow you to somehow associate a remote JNDI with a local JNDI.I do rememer reading about such capabilities earlier but do not remember references..try googling...

2.already answered in 1.

3. This would depend on the capabilities of your messaging provider. For example, if you were using Jboss messaging it allows you to configure a security channel specifying roles and access previleges. There is no standard on this as far as i know...

any second opinion would definitely help


My SCEA experience:http://javalogue.blogspot.com/
I agree. Here's the link: http://aspose.com/file-tools
subject: Posting to JMS Remote Queue
It's not a secret anymore!