cancel
Showing results for 
Search instead for 
Did you mean: 

Calling an EJB from Java Mappings in PI 7.1

Former Member
0 Kudos

In my operation mapping, I am using a Java class which in turn invokes an EJB using JNDI lookup.

When I execute the code, the class is successfully finding the EJB using JNDI, but invoking it I am getting a java.lang.NoClassDefFoundError.

If, I add the class it cannot find to the jar containing the Java mapping class, I get a java.lang.ClassCastException.

Has anyone been able to call a custom EJB from with a Java Mapping class?

Any help appreciated.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello.

Check my wiki article:

http://wiki.sdn.sap.com/wiki/display/stage/SapNetweaverProcessIntegration.CallEjb3.0methodfromJavaclassmappingPI7.1

(SapNetweaver Process Integration. Call Ejb 3.0 method from Java class mapping PI 7.1 )

Greedings

stefan_grube
Active Contributor
0 Kudos

There have been some discussions in this forum and it seems to not work, but you can try following: Create a client jar from the EJB project and add that client jar to the Integration Builder as Imported Archive.

Regards

Stefan