JBoss Community

Re: Dependecy Injection through Spring in EJB 3.0

created by Amit Ajmani in Beginner's Corner - View the full discussion

Just want to correct the type above:

 

My interface hierarchy are

 

public interface InstrumentService{

...

}

 

@Remote

public interface InstrumentServiceRemote extends InstrumentService{

....

}

 

//annotated with stateless and transaction and SpringBeanAutoWiring (as above)

public class InstrumentServiceEJB implements InstrumentServiceRemote{

 

@Autowired

private InstrumentService instrService;

 

.....

}

 

public class InstrumentServiceCore implements InstrumentService{

.....

}

 

the instrService in EJB need to be initialized with InstrumentServiceCore .....

 

 



Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community