wood burning stoves
The moose likes EJB and other Java EE Technologies and the fly likes Authentication using an MDB towards an external  JMS  provider Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Authentication using an MDB towards an external  JMS  provider" Watch "Authentication using an MDB towards an external  JMS  provider" New topic

Authentication using an MDB towards an external JMS provider

Giorgio Giannotti

Joined: Nov 25, 2008
Posts: 1
Hi all.
Please consider the following problem: I have a Message Driven Bean running in Weblogic 6.1 (this is a project requirement, so I cannot change the release for now) and connecting to a JMS queue configured not in WebLogic itself, but provided by a Tibco EMS server properly configured on the host machine.
As first step, the MDB was properly configured and deployed, so the connection with the needed queue went well and the messages produced on the queue were correctly listened and read. The second step consisted in authentication and authorization, and here is the point at which problems raised: although I think I have correctly followed the generally stated rules to make the MDB present itself as run by a certain user (also configured in the WebLogic as well as Tibco servers) according to the declarative way (that is, acting only on the Deployment Descriptor and not directly from the implementing code), the Tibco log shows a connection attempt by the user "anonymous" (i.e. a not recognized user), which is therefore denied any access to the configured queues. Note that, when I try to access the same queues with a simple client application, which directly uses the createQueueConnection(String, String) method and passing the same credentials, the Tibco server recognizes the correct user and allows message sending and/or receiving...
I suppose I am misunderstanding the correct use of the tags in the descriptors (ejb-jar.xml and weblogic-ejb-jar.xml) but, although I tried various combinations and configurations (you know: when things don't work properly, one is prone to apply variations and unlikely intuitions!), I couldn't get any good result: the weblogic log simply states that the queue configured in the MDB descriptor cannot be reached (but this is false, because when authentication is disabled on Tibco the queue is correctly seen and accessed) and, as told before, the Tibco log sees access from the user anonymous.
Please, has anyone faced a similar problem?


I agree. Here's the link: http://aspose.com/file-tools
subject: Authentication using an MDB towards an external JMS provider
It's not a secret anymore!