This discussion is archived
1 Reply Latest reply: Apr 1, 2013 12:39 PM by 1000348 RSS

Need help while configuring jms adapter credential properties dynamically

1000348 Newbie
Currently Being Moderated
Our requirement is:
we will get the credentials(username, password) from external service and would like to pass them while consume/produce messages to jms queue in a BPEL service.

Is there any way we can pass these credentials at runtime dynamically from BPEL process or any other way?
  • 1. Re: Need help while configuring jms adapter credential properties dynamically
    Tom B Expert
    Currently Being Moderated
    Basically the answer depends on what you're using to wrap access to the JMS send call, and, if so, how this wrapper handles security. "Raw JMS" sends, for example, draw their credentials from the current caller thread's security credential - which is something you can have direct control over by temporarily replacing the thread's credential with a new credential while you make the send call.

    So how is your application sending messages to the queue?

    - Are you using the SOA adapter?
    - A direct raw send?
    - Foreign JMS server?
    - Obtaining the sender's JMS connection factory via a resource reference?

    One thing to keep in mind is that creating a credential is an expensive operation - it's not usually something you want to do once per message.

    Tom

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points