JMS over MQSeries -- Security Questions

Hi.

I am new to JMS and would like to have JMS over MQSeries. When a message is sent in request/reply, MQSeries currently attaches a header to the message including information such as userID and information regarding the application that sent the message.

My Questions:

1. Does JMS provide an API call to retrieve the MQ Header information -- specifically the user id and password if any? Or does the JMS header hide/override the MQ header?

2. Does JMS provide an encryption mechanism to encrypt the message body?

3. What is in the JMS header -- additional security information?

Lastly, can we send binary data using JMS over MQSeries?

Thanks again for the help.

--Selena

[734 byte] By [nycelina] at [2007-9-26 5:28:21]
# 1

> 1. Does JMS provide an API call to retrieve the MQ

> Header information -- specifically the user id and

> password if any? Or does the JMS header hide/override

> the MQ header?

There is a property defined by JMS called JMSXUserID which will give you the user id. MQSeries does not transmit the password of the user, this would probably be a security violation. If there is a JMS property which is matched in the MQ Message header the property is held there. There are some IBM specific properties to get at other information in the MQ Message header but these should not be used.

> 2. Does JMS provide an encryption mechanism to encrypt

> the message body?

JMS doesn't and neither does MQSeries, as far as I am aware. If you wish to encrypt then you can define a security exit on the queue when you bind it into JNDI, but this is an MQSeries feature not a JMS one.

> 3. What is in the JMS header -- additional security

> information?

Look in the MQSeries Information Center. There is lots of information on what is in the headers and how to access it.

>

> Lastly, can we send binary data using JMS over

> MQSeries?

Just use a bytes message.

Hope this helps

AlasdairN at 2007-6-29 19:37:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Hi,

I am implementing JMS over MQSeries, could you tell me how to do that. I am able to run my JMS program at J2EE server but the MQ Series queues exist on another server, how can I send message to MQ queues. I know we can do itby using Websphere or Weblogic server. But, is it possible to do it with iPlanet or Sun? if yes, then how? Thanks

Malikk at 2007-6-29 19:37:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...