Skip to Content

Problems Upgrade ME 2.1 / MI 2.5

Hi all,

I have a old JSP program under ME 2.1. This program use generic sync.

these are the lines of code that give me problems:

.....................

<b>SyncInboundContainerElement</b> elemet=new <b>SyncInboundContainerElement</b>("genericrecord",numRecord,(String)dataValue);

...................

public void process(InboundContainer inbound) {

String resultTest=null;

try{

InboundContainerElement[] opere = inbound.getAllElements();

SyncEvent event = new SyncEvent(this, SyncEvent.SYNC_SUCCESSFUL);

SyncEventRegistry.getInstance().<b>fireSyncEventNotifierMethod</b>(event);

}catch(Exception e){

Log.log(Log.DEBUG_LEVEL, "ReleaseOpereInboundProcessing: Error e="+e.getMessage());

}finally{

Log.log(Log.DEBUG_LEVEL, "ReleaseOpereInboundProcessing: Processing incoming data container done.");

}

}

Where is <b>SyncInboundContainerElement</b> class in the MI 2.5?

Which are they the classes that replace it (if exist....)?

And <b>fireSyncEventNotifierMethod</b> method ? Has it been deprecated? What do I have to do for recording an event?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 28, 2007 at 03:36 AM

    Hi

    First and foremost <b>SyncInboundContainerElement</b> was never an API exposed by ME 2.1 (Remember this is defined in pacakage <b>com.sap.ip.me.sync</b> which is internal to ME). Hence applications can never use it. There is no replacement for this class.

    The method <b>SyncEventRegistry.getInstance().fireSyncEventNotifierMethod(event);</b> is deprecated and no longer available in MI 2.5. Instead you can use the API <b>actionPerformed(SyncEvent)</b> available in class <b>SyncEventListener</b>. Below is an example

    SyncEventListener listener = null;
    listener.actionPerformed(event);

    Hope this helps

    Best Regards

    Sivakumar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member ROCCO MARINO

      Hi

      Well thats the problem. Be it in ME 2.1 or in MI 2.5, InboundContainerElement was always an Interface only. In ME 2.1 SyncInboundContainerElement was a internal class that implemented InboundContainerElement. But in MI 2.5 this is the not the case. Ideally you have write your own class that implementes the API InboundContainerElement(You can very well name it SyncInboundContainerElement) and then you have to create objects of this class and you it in the above mentioned code. Hope this is clear and helps.

      Best Regards

      Sivakumar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.