Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Authentication using an MDB towards an external JMS provider

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks

Giorgio
 
"To do good, you actually have to do something." -- Yvon Chouinard
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic