ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Query for Moving from non-SSL to SSL MQ connection

Post new topic  Reply to topic
 Query for Moving from non-SSL to SSL MQ connection « View previous topic :: View next topic » 
Author Message
hi.riyazkhan
PostPosted: Mon Aug 27, 2012 2:13 am    Post subject: Query for Moving from non-SSL to SSL MQ connection Reply with quote

Newbie

Joined: 18 Jul 2012
Posts: 7

Hi,

I have implemented a code for non-SSL MQ connection, which worked fine for communication between WAS and WMQ. now I want to do the same for SSL connection.

Now the issue is initially I had used Websphere specific APIs i.e. MQConnection, JMSTextMessage etc. Now to move to SSL we have a JNDI connection and will require completely generics code. Which means I have to write normal JMS code.

so I have 3 queries here

1) Do I need to change just Connection related classes i.e. Session, connection, etc or message classes as well, i.e. Sender, Message, Queue etc.

2) Will setting string properties to generics TextMessage (i.e. using setStringProperty() ) will set the property value in <usr> folder of RFH2 header automatically?

3) If down the line the middleware changes and I change only JNDI objects in WAS, then will my code work perfectly as it is Generics JMS code or will I have to modify app code as well??
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 27, 2012 2:25 am    Post subject: Re: Query for Moving from non-SSL to SSL MQ connection Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hi.riyazkhan wrote:
Now the issue is initially I had used Websphere specific APIs i.e. MQConnection, JMSTextMessage etc. Now to move to SSL we have a JNDI connection and will require completely generics code. Which means I have to write normal JMS code.


Why didn't you use the generic classes in the first place? What was the requirement to use the specifics (which is not best practice)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hi.riyazkhan
PostPosted: Mon Aug 27, 2012 4:32 am    Post subject: Reply with quote

Newbie

Joined: 18 Jul 2012
Posts: 7

@Vitor

As a requirement I had to add some properties explicitly to exactly <usr> folder of RFH2 header of the message (whiche are very specific to IBM MQ).

And as I followed IBM documentation the best way I found was to add them to IBM specific message.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 27, 2012 4:53 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hi.riyazkhan wrote:
As a requirement I had to add some properties explicitly to exactly <usr> folder of RFH2 header of the message (whiche are very specific to IBM MQ).


Which ones? The usr folder of the RFH2 maps directly to the JMS user properties.

hi.riyazkhan wrote:
as I followed IBM documentation the best way I found was to add them to IBM specific message


Post the link. You've already been told here to use the generic objects so I'm interested to know which piece of IBM documentation is pointing you at the specific API.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hi.riyazkhan
PostPosted: Mon Aug 27, 2012 5:14 am    Post subject: Reply with quote

Newbie

Joined: 18 Jul 2012
Posts: 7

Yes, I followed the same instructions by you and Grand Master to use generics, and just wanted to clarify the queries in this post.

And as far as Documentation is concerned, I followed IBM redbook in which I found the JMSTextMesage class's API to set the values in usr folder of RFH2.

And to be frank I wasn't aware of best practices as I am new to JMS.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 27, 2012 5:20 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hi.riyazkhan wrote:
I followed IBM redbook in which I found the JMSTextMesage class's API to set the values in usr folder of RFH2.


Which redbook? Did you find the description in the actual WMQ InfoCenter of how application defined JMS properties are handled unconvincing?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 27, 2012 5:21 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hi.riyazkhan wrote:
Yes, I followed the same instructions by you and Grand Master to use generics, and just wanted to clarify the queries in this post.


And as you were told in the previous post "Grand Master" is a title not a name.

If you're reading the advice with as much care this is all going to take a very long time.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 27, 2012 6:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

The only things you need to change between normal and SSL connection are the properties on the connection factory. If you use JNDI no code needs to be changed at all...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Query for Moving from non-SSL to SSL MQ connection
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.