users@glassfish.java.net

Re: How to access Java EE resources in entities?

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 Apr 2008 10:01:18 PDT

Hi Markus,

If your entities exist inside Java EE environment at runtime, they can look up any resource s that are declared in the descriptors or injected into components in the same naming context. But if you need these a lot in your entities, it may be a hint they are can better done in a stateless bean and let entities focus on persistence.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=272062