cancel
Showing results for 
Search instead for 
Did you mean: 

J2EE adapter module not getting invoked by module processor

Former Member
0 Kudos

Hi All,

i have deployed my .ear file in SDM Repository successfully.

but my J2EE adapter module is not getting invoked by module processor......this i can say because i have written code to audit log my message in the java class...but when i gave input an empty file, the audit log of that file in Message Audit Log showed only 3 Steps of file converted to XML format, no data found so not generating message, deletion of my empty file.

Can anybody suggest how to enable my J2EE adapter module as i have created this module so that if i give empty file, then in the adapter i am creating a dummy XML for my message.

Thanks and Regards,

Rajeev Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please can you check on this thread.

Regarding hte sequence of your module and the name of the module.

Regards

Vijaya

Former Member
0 Kudos

Hi Vijaya,

i checked your thread.........i have set the module name and sequence as in the thread.............i even put a file creation check in both try and catch block but no file is getting created either in try or in catch block.......this means my adapter module is not getting invoked by module processor.

i have given the below sequence for module processing:

Number ModuleName Type

1 localejbs/sap.com/PWC_CustomerMeter_EAR_Prj/CustomerMeter Local Enterprise Bean

2 localejbs/CallSapAdapter Local Enterprise Bean

Can anybody suggest how to invoke this module adapter in module processor in my sender communication channel.

Thanks and Regards,

Rajeev Gupta

stefan_grube
Active Contributor
0 Kudos

Check two things:

1. Check the JNDI name with the visual Administrator (services -> EJB)

2. Check the EAR for libraries. Delete all libraries inside the EAR. Only the jar with the adapter module code should appear in the EAR.

Regards

Stefan

Former Member
0 Kudos

what do you see for your message flow in

http://<HOST>:<PORT>/MessagingSystem/monitor/monitor.jsp

if you have put any audit log statements in the module code you would be able to see it here on this url.

Former Member
0 Kudos

Hi Stefan,

1. JNDI name in visual admin is CustomerMeter

2. the files in .ear file are:

libraries,

ejb project file,

META-INF folder

in ejb project file the following files are there:

ejb-j2ee-engine.xml

ejb-jar.xml

CustomerMeter.class

Please tell what to do now.

Hi Amol,

in audit log only 3 messages are coming: File converted to XML format, no data in document so not sending message, deleting of empty file.

i have given audit log statements in java class but my audit-log statements are not coming in the audit log

this means my adapter module is not getting invoked.

Please tell what to do to correct this error.

Thanks and Regards,

Rajeev Gupta

Former Member
0 Kudos

try specifying

<b>localejbs/CustomerMeter</b>

only

Former Member
0 Kudos

Hi Amol,

i earlier specified localejbs/CustomerMeter

but still that was not working

Thanks and Resgards,

Rajeev Gupta

stefan_grube
Active Contributor
0 Kudos

> 2. the files in .ear file are:

> libraries,

> ejb project file,

> META-INF folder

Use WinZip and remove all libraries from .ear

Then deploy again.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

as you said, i used winzip to delete the library files from .ear file.

then i used this .ear file for deploying..then i deployed this .ear file successfully..

but still the adapter module is not getting invoked..

in communication channel, i have now again written localejbs/CustomerMeter and below it is localejbs/CallSAPAdapter.

i have no idea why the adapter module is not getting called.

<b>Please tell how to invoke the adapter module in sender communication channel.</b>

Thanks and Regards,

Rajeev Gupta

Message was edited by: RAJEEV GUPTA

Former Member
0 Kudos

Hi All,

Can anybody suggest me why the J2EE adapter module is not getting invoked by module processor by seeing the above postings.

Thanks and Regards,

Rajeev Gupta