on 06-16-2009 5:31 AM
Hi All ,
I am working on EJB3.0. I want to know if we can use dependency injection across application?
I have
1. jpadc having all JPA classes and 1 jpaAppl enterprise application having only jpadc
2. session1dc and session1Appl enterprise application for session1dc
3. session2dc and session2Appl enterprise application for session2dc
I want to use jpa classes and sesisonbean classes from jpadc and session2dc respectively
inside session2dc. is it possible? i tried but i am not able to d odependency injection
Please let me know if this is possible?
Thnx in advance
Regards
Kavita
Hi Kavita,
Yes, you can use dependency injection. For more information, refer to this document:
http://help.sap.com/saphelp_nwce711/helpdata/en/44/bf6e9344751eaae10000000a1553f6/frameset.htm
If you need information related to the JPA part, read this:
http://help.sap.com/saphelp_nwce711/helpdata/en/46/307a2a50094f09e10000000a114a6b/frameset.htm
Best regards,
Ekaterina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thnx for reply. I have read these links. but in these links its mentioned for same application. In my case my session beans classes and jpa classes are in different enterprise applications. I could do dependency injection across dcs but within same enteprise application. I want to try for across enterprise applications
Hi Kavita,
I researched your case. It is not possible to use dependency injection across applications. It is also forbidden the usage of classes outside of an application that could change the O/R mapping.
You have to find another way to do implement the business logic of your applications.
Best regards,
Ekaterina
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.