Home » Search

About injection

21-30 of 46Refresh
Forum
4

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

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
Forum
2

Spring Data JPA - PersistenceException thrown

.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework
Forum
2

Type ... is not defined as an entity (@Entity is missing) (error 302)

is shown below: package com.epimss.lab.data.bacti import groovy.beans.Bindable import javax.inject.Inject import com.epimss.lab.data.misc.OtherRqst import com.epimss.lab.data.misc
Forum
1

Configure ObjectDB in spring context

to inject EntityManagerFactory to my beans. Could you help me on this? You can see how to use
Forum
1

ID format in objectdb 2.x for JDOHelper.getObjectId

long id; // JPA code and then the ID will be injected automatically to your objects