About injection

21-30 of 50Refresh
JPA Doc
6

javax.persistence.PersistenceUnit

the environment referencing context; not needed when dependency injection is used. (Optional) The name ... needed when dependency injection is used. Default value: "" Since: JPA 1.0 String unitName (Optional
JPA Doc
4

PersistenceContext.name

Annotation Element javax.persistence.PersistenceContext String name (Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. Default value: "" Since: JPA 1.0
JPA Doc
4

PersistenceUnit.name

Annotation Element javax.persistence.PersistenceUnit String name (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context; not needed when dependency injection is used. Default value: "" Since: JPA 1.0
Forum
3

Entity factory

via dependency injection like: @Entiy public class User { private final UserService userService;     @Inject private User(UserService userService) { this.userService ... without the possibility to inject dependencies (at least without using static variables which are very bad code
Forum
3

Database is erased after deploying a new web application version

.inject.Injections.getOrCreate(Injections.java:169) at org.glassfish.jersey.server.model ... .java:653) at org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:169
Forum
3

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

class GuestDao {     // Injected database connection: @PersistenceContext(unitName = "guest-pu ... {     // Injected database connection:     @PersistenceContext private EntityManager em;     // Stores ... (TransactionAttributeType.REQUIRED) public class GuestDao {     // Injected database connection
Forum
3

A lot of ENT and SIV instances which are not cleared by GC

.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:89) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.preDestroy(DefaultLifecycleCallbackInvoker.java:82) at org.jboss.weld.injection.producer.BasicInjectionTarget
Forum
3

Null enums and IS (NOT) NULL: NullPointerException

:606) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:89) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:73) at org.jboss.weld.injection.producer
Forum
2

Problem undeploying Glassfish3.1.1 web application cleanly

EntityManager injection, using the undeploy feature under the Glassfish server node  of Netbeans7.1 ... (which also uses @PersistenceContext EntityManager injection)? > Is it possible to get this exception ... injection)? Could not build GuestBook example from Maven, but I could create a new Netbeans web application
Forum
2

Not Enhanced: ...: com.objectdb.o.TEX: Type ..._$$_javassist_1 is not found

through @Inject. Both are not entities or anything related to ObjectDB. AuthB is used in a JSF page for login. UserSessionB contains @Inject UserC, which is @Stateless for dealing with CRUD operations on User