I have a jpa entity that has behavior, namely a method to send some message to a JMS queue. Since this entity is running inside a JEE container environment, the JMS specifics are being injected in the entity class itself, like this:
this entity has a method that uses the resources above, which gets called by the timeout method of a stateless EJB.
Since the resources are defined in the Entity and not in the calling EJB, other than using the [i]mappedName[/i] annotation attribute, where can I define a jndi mapping for these resources ? The ejb deployment descriptor ? persistence.xml ? There seems to be no place in any of them for this use case...
Can anyone help ?
The moustache of a titan! The ad of a flea:
a bit of art, as a gift, the permaculture playing cards