cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Adapter Module

Former Member
0 Kudos

When i am testing my scenario i havent fine any difference between source and destination files. I have to get host name in destination. XI server is picking the file from source and its placing into the destination. But i am not getting any host name in target file.

I have checked in audit log(http://host:port/MessagingSystem) nothing is displaying there.

How to check whether my module conatain any error or not?

How to check whether the control is going inside my module?

can any please resolve my problem.

Thanks & Regards

Ravi Shankar B

Pages: 1 Back to Thread List

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

My Problem still not solved can any resolve my problem

Best Regards

Ravi Shankar B

henrique_pinto
Active Contributor
0 Kudos

If you have set but you are getting no audit logs for this module, then either it is not correctly deployed or it is raising exception.

Try to increase the trace level for Debug mode, in Log Viewer Service on Visual Administration, and then check the defaultrace.log file.

Regards,

Henrique.

Former Member
0 Kudos

ravi,

Maksure you specify the name of the module as follows

localejbs/sap.com/EarProject_name/Bean name

also it should be the first entry in your module befor calladapter..

More info in the following thread:

Message was edited by:

Krishnamoorthy Ramakrishnan

Former Member
0 Kudos

HI

I have given the my module name like "localejbs/<Jndi-Name>" ex: localejbs/GetHostName.because i have given my jndi name like that. Its is the first entry and before the CallSapAdapter.

Best Regards

Ravi Shankar B

Former Member
0 Kudos

ravi,

also cross check the steps you had done with the following pdf written by krishnakumar

<b>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805</b>

Even i had a similar problem. i was able to fix it after confirming to the standard in the above mentioned document. i also made sure that the package ename of my java module matched the "ear" .

Here is another related thread for you

<b>

Good luck

krishna

Former Member
0 Kudos

Hi Ravi,

for checking whether your module is getting invoked or not, add the following lines to your process method for audit logging:

AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(), AuditDirection.OUTBOUND);

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"HostName: Module called");

Thanks,

Rajeev Gupta

Former Member
0 Kudos

Hi

I have already written AuditLog in my application but still i am not getting anything on AuditLog

Best Regards

Ravi Shankar B

Former Member
0 Kudos

Hi

Can anyone please tell me the solution

Best Regards

Ravi Shankar B

Former Member
0 Kudos

Ravi,

If you need the sender Host name then I think you can easily get it from the adapter specific message attributes. Are you doing any mapping? or you are just picking the file and sending it.

---Satish

Former Member
0 Kudos

Hi

I dont want to use Adapter Specific Module. I want to write Adapter Module. My Adapter Module is not invoking.

I have following files in my EAR files

application.xml

application-j2ee-engine.xml

Mainfest.xml

Sap_Manifest.xml

sda-dd.xml

QuinnoxModule.jar

In my jar file i have the following files

ejb-j2ee-engine.xml

ejb-jar.xml

GetHostName.class

I have created ear and jar through my NWDS

Can any one please tell me the solution why my module is not invoking properly

Thanks & Regards

Ravi Shankar B

How to change the trace level mode to debug mode

Former Member
0 Kudos

Hi ravi,

YOu need to add the audit log messages in your java code(module) like

AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),

AuditDirection.INBOUND);

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,

"HostName: Module called");

2. I believe you can view messages from system.out.println in the "defaultTrace" log in the Visual Administrator

3. Check if your application is deployed in the Visual admin under Root> Xi server> Services--> Deploy-> EJBContainer

Message was edited by:

Krishnamoorthy Ramakrishnan