farzad wrote:
kakoni wrote:
Then I would assume those utility classes are used in some context of an ejb call then you would be able to add the resource ref in the ejb configuration file and have the utility class look up the entity manager factory. The url I sent before has some details on how to do this.
Well no;) Sorry, perhaps I explained this bit wrongly;
Inside ear I've got classes for example commonj.timers. So they are not part of traditional ejb call.
Now my persistence.xml and entities have been part of the ejb.jar. I dont wether it would make a difference if I move them to the ear level (would that bind entitymanager(factory) to the jndi...)