Larry,
I don't have any experience of the combination of app server and JMS provider you are trying to use. However
On 31/07/2014 02:03, mcqueary_at_tibco.com wrote:
> I am using the genericra.rar package as provided, with no modifications
> (other than adding my provider jars to it), and attempting to configure
> via the MessageDriven/ActivationConfigProperty annotations in my MDB,
> along with the resourceAdapter and activationSpec elements of my
> server.xml. I can't seem to concoct the right activationSpec, or
> possibly my resourceAdapter element/properties are wrong. I have tried
> lots of things I see in the IBM documentation, but generally my results
> are that a) I enter a property in the activationSpec that the server
> doesn't understand (resulting in the activation spec being ignored/),
> or I enter an "empty" property, resulting in a
> NullPointerException/invalid property exception.
The EJB spec defines that you can set activation properties either using <activation-config> elements in ejb-jar.xml or
using @MessageDriven(activationConfig = ... on the bean class. This should work for any app server.
The app server should pass these straight through to the resource adapter.
Note however that the way you actually specify that a given MDB should use a particular resource adapter is always
non-standard and will be in some IBM-specific descriptor. This will be in the WebSphere docs. It looks as if you have
got this part working. If you have you should see GenericJMSRA startup messages in the log when you start your
application (and GenericJMSRA error messages if it fails).
An IBM-specific descriptor may also provide an alternative, non-standard way to specify activation properties. I think
<jmsActivationSpec> is an example of this. Again this will be in the WebSphere docs, and would use some other file than
ejb-jar.xml. I didn't see mention of <activationSpec>.
Obviously, once you have worked out how to pass activation properties to GenericJMSRA the next step is to work out what
they should be set to...
Hope this is of some limited help.
Nigel