This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JCA and ActivationSpec Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JCA and ActivationSpec" Watch "JCA and ActivationSpec" New topic

JCA and ActivationSpec

Frans van Niekerk

Joined: Sep 03, 2008
Posts: 9

I am new at implementing a resource connector and was wondering what the best way is to have dynamic ActivationSpec properties.

The EIS that I am connecting to can possible move and/or login information can change. From what I have read the properties are normally either configured via annotations on an MDB that is associated with the JCA or in the ra.xml.

Both of these options will mean at the least repackaging of the rar/ear. Can the activation spec not be written to get the required information from a EJB call or from a db?

I think the EJB option is not going to work due to load sequence, is this correct?

Thanks in advance
Frans van Niekerk

Joined: Sep 03, 2008
Posts: 9
What I am trying to do is have the MDB provide the properties required for the JCA to connect. That way the MDB can lookup the configuration information via normal EJBs.

Obviously, this is assuming:
* MDBs are automatically started.
* I can invoke the activateEndpoint when the MDB is pointed with a MessageEndPoint constructed from the method to invoke.

Has anybody done this before?
Have you checked out Aspose?
subject: JCA and ActivationSpec
It's not a secret anymore!