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.

 View Only
  • 1.  java.util.List & java.util.ArrayList

    Posted Wed May 16, 2007 01:22 AM

    Hi,

    I would need to implement sequence by timestamp from a group of files retreived. For that, writing java service and trying to import packages

    • java.util.List
    • java.util.ArrayList

    and creating List object by this way,

      List timeList = new ArrayList();
    

    and getting compile error in developer as
    “not a statement” List

    FYI, I am using JRE 1.4.2 and for this I need to use List as above.

    Also, I tried to use List as this way used for JDK 1.5 and no success.
    List timeList = new ArrayList ();

    Any thought would be greatly appreciated.

    Thanks,
    Siva


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


  • 2.  RE: java.util.List & java.util.ArrayList

    Posted Wed May 16, 2007 09:35 AM

    Mh, I can compile it with no error on 6.5.

    Just created an empty java service, import (in Shared tab) java.util.ArrayList & java.util.List and put in the code the line:

    List timeList = new ArrayList();

    Maybe post the code and give more info about env & extended settings.

    Regards,
    Sandro


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


  • 3.  RE: java.util.List & java.util.ArrayList

    Posted Tue May 22, 2007 12:50 AM

    Thanks Sandro! for your reply.

    I do not have an answer why it not worked in first case for me. Next day when I saved/compiled the same java code it worked.

    Thanks,
    Siva


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