cancel
Showing results for 
Search instead for 
Did you mean: 

Create adapter Module using EJB 2.1

Former Member
0 Kudos

Hi Experts,

Is there any guide on how to create adapter Module using EJB 2.1? Our PI system is 7.3, it got a deployment warning when I create the adapter module using EJB 3.0

Thanks in advance

Blue

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Blue

PI 7.3 onwards supports EJB 3.0 and I'd recommend using EJB 3.0 because it is slightly simpler.

The reason you are getting warning during deployment is most likely because there are mismatches within your EJB project - certain objects are using EJB 3.0, while others are using EJB 2.1.

For example, I noticed you might be using Ryan's code from your other thread. The class implements SessionBean which is no longer required in EJB 3.0.

If you still want to fix it for EJB 2.1, can you share the contents of the following two files in the META-INF folder:-

  • ejb-jar.xml
  • ejb-j2ee-engine.xml

Alternatively, if you want to go ahead for EJB 3.0, you can try using the approach mentioned in my blog below which provides a consistent EJB 3.0 template to work with. You just then need to copy & paste your codes into the process() method (don't replace the whole class to ensure it is still in EJB 3.0).

Regards

Eng Swee

Former Member
0 Kudos

Thank you Eng.

I followed your blog and recreated the EAR file, and it was deployed without error and BOM is added properly.

Thanks again

Blue

Answers (1)

Answers (1)

Former Member
0 Kudos

Refer the Thread & blogs.

https://scn.sap.com/thread/3451616

Blog talks about module creation in 7.1 but it still uses EJB 2.1 and work for 7.3 as well.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e674...