on 11-09-2013 7:14 AM
Hello
Could someone please let me know how to deploy custom ejb module (EJB 3.0) using NWDS onto PI 7.31 Java Server? I followed the blog by Vinay at /docs/DOC-44536. When I completed the deployment my EJB appears in Root/appclient-environment of PI Java server instead of "localejbs".
Could you please let me know what should be done to deploy the ejb at "localejbs"? Could someone explain how to update the ejb-jar.xml file?
Thanks in advance.
Hi John,
Agree with Stefan, EJB 2.1 worked for me on PI 7.31 SP 6.
Here's a link to a repository I saved a dummy template adapter module that just writes a log entry:
https://github.com/chrismills/SAPPITestModule
In the top line of the ejb-jar.xml you can see it references EJB 2.1
https://github.com/chrismills/SAPPITestModule/blob/master/ejbModule/META-INF/ejb-jar.xml
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as I know, adapter modules should be created as EJB 2.1
I know in PI 7.11 it must be EJB 2.1 and the same adapter modules run in PI 7.31 too.
Try using EJB 2.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stephan, thanks for your reply. I suppose I should try with EJB 2.1.
Nevertheless the blog by Vinay at
/docs/DOC-44536 appears a lot simpler compared to using EJB 2.1
Hi Stephen
I am not trying to disagree with you. I was just trying to avoid the complications of EJB 2.1.
The advantage of EJB 3.0 is
"EJBs are now plain old Java objects (POJO) that expose regular business interfaces (POJI), and there is no requirement for home interfaces."
where as in EJB 2.1 we have to implement these home interfaces.
"The EJB 2.x specification requires that the component interface must extend an interface from the EJB framework package, and the business logic implementation class must implement an interface from the EJB framework package. These requirements create a tight coupling between the developer-written code and the interface classes from the EJB framework package. It also requires the implementation of several unnecessary callback methods (ejbCreate, ejbPassivate, ejbActivate) not directly related to the main design goal of the EJB, and the handling of unnecessary exceptions."
I may be over enthusiastic
Thanks again for your reply.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.