cancel
Showing results for 
Search instead for 
Did you mean: 

Custom JAVA job for working with XI messages

Former Member
0 Kudos

Hello Experts,

Could you please guide me to docs/APIs/blogs/how-to/etc for developing JAVA job for working with XI messages (getting info about messages (like status, payload values, etc), restarting, canceling them).

How at all I have to develop this kind of job (EJB??), in which context it should be executed, and how I can schedule this kind of job.

Thanks in advance for you answers!

Best Regards

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

getting info about messages (like status, payload values, etc), restarting, canceling them

The problem here would be that all these things would be part of the ABAP engine and therefore no java APIs would be available. However, u may web servicize the XI monitoring capabilities.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/909760cb-0ec8-2a10-4a96-ee8417ac...

This webservice can then be called that through ur java application.

Regards,

Prateek

Former Member
0 Kudos

Hello Prateek,

Thanks a lot for you response and you link.

But do you know how the web-based monitoring tools (like RWB and MDT (http://<server:port>/mdt/index.jsp)) are working? They allow to do all actions I require - view statuses, payloads, restart, cancel, etc.

So my question is how does it interacts with a system, through which interface/API?

Thanks.

Former Member
0 Kudos

Hi,

Develop Java JCO based applicaion which can access following FMs to access different XI functionality:

- SXMB_GET_MESSAGE* function module will help u get message list, status, payload etc.

- SXMS_RESTART_MESSAGES: This FM will help u to retart messages.

- SXMS_CANCEL_MESSAGES: This FM will help u to cancle messages

If above said FMs are not remote enable then write wrapper RFC to access them. For JCO code you can search google...

Regards,

Gourav

Former Member
0 Kudos

Hello Gourav,

Thanks for you response!

But the FMs you have provided will only trac the message on Integration Engine, but I also need to know the status on Adapter Engine (sometimes message goes fine through IE but fails on AE), so where I can get this status?

Maybe you know how the web-based tools RWB and MDT are working?

Answers (0)