WebSphere Application Server - Connecting to secure JMS from stand alone J2EE Application Client

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > January 2006 > Connecting to secure JMS from stand alone J2EE Application Client





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Connecting to secure JMS from stand alone J2EE Application Client

2006-01-24, 2:50 am

How can I connect to JMS Queue in WebSphere App Server v6? If I enable the global security on the app server and secure the bus and added the user group to connect to bus as well as JMS destination, then I have to pass the user id and password in the JMS
connection code.
Is there any way by which I do not have to pass the user id and password to connect the destination from Application Client?

Thanks, Bill
David Currie

2006-01-24, 7:51 am

Hi Bill,

You don't say where you are getting your connection factory from. The
current recommended solution would be to define the connection factory
within the EAR file itself using the Application Client Resource
Configuration Tool (clientConfig). See:

http://publib.boulder.ibm.com/infoc...ucli_tjmcr.html

Regards,
David

2006-01-24, 6:25 pm

> Hi Bill,
>
> You don't say where you are getting your connection
> factory from. The
> current recommended solution would be to define the
> connection factory
> within the EAR file itself using the Application
> Client Resource
> Configuration Tool (clientConfig). See:
>
> http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/
> topic/com.ibm.websphere.base.doc/info/aes/ae/ucli_tjmc
> r.html
>
> Regards,
> David


Hi David:

Thanks a lot for your reply. Actually I am getting the connection factory from application server. I have defined the ResourceRef for connection factory and queue and under WebSphere Binding panel given the name of JNDI name on the server.
For ConnectionFactory ResourceRef, I have provided the Authentication Alias for connection. This alias is defined in the server under J2C authentication data entries.

In the production environment we do no use clientConfig.sh to configure the Application Client EAR file as we do not know the user's password in this environment. To over come this problem, I am using properties file and keep the user id and password ther
e. In the prod environment administrator supplies the password and we access it programtically.

Is it the right soultion? I am sure that this might not be best practice.
Thanks a lot once again.

Regards,
Bill
David Currie

2006-01-29, 9:47 pm

I'll put it this way: given your circumstances, I don't know of a better
solution.

Regards,
David
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com