IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  java service

    Posted 01/14/08 04:40 AM

    i want to write a java service for the following conditions
    to compare 2 dates to check wheather they are greater or less


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: java service

    Posted 01/14/08 06:31 AM

    Hi Sunil,

    You can get many versions of code for your requirement on internet, jus google.
    download wMSample package from advantage site, and see how java services are written using developer.

    Let me know if you have any specific question.

    Thanks,
    Puneet Saxena


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 3.  RE: java service

    Posted 01/14/08 06:52 AM

    hi,
    entered Date should not be greater than today date

    for this hw to write java service in webMethods


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: java service

    Posted 01/14/08 11:22 PM

    Use a flow logic, if you are not equipped with java…

    look at the com.util.Date java API. and it has all inbuilt methods that you can use.

    I would code some thing like this…

    assume today and myDate are objects of type Date…

    boolean isafter = today.after(myDate);
    boolean isbefore = myDate.after(today);
    if (isafter)
    idc.insertAfter(“result”, “1”); //Yesterday or lower
    else if (isbefore)
    idc.insertAfter(“result”, “-1”); //Tomarrow or higher
    else
    idc.insertAfter(“result”, “0”); // Today

    Hope this helps…


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services