Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Posting to JMS Remote Queue

 
James Owen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Cheers
James
SCEA Part 1 93%, SCJP 5 91% SCBCD 83%
 
James Owen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please answer my question.
Thanks
James
 
James Owen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
..
 
Rahul Mishra
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Regards
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic