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.  Can I use split method of String

    Posted 10/26/05 12:49 PM

    I create a Java Service, it’s very simple. the following is my code:

    String a=“a:b:c”;
    a.split(“:”);

    but it doesn’t work. when I run it In Developer 4.6, it says: “java.lang.reflect.InvocationTargetException: java.lang.String: method split(Ljava/lang/String;)[Ljava/lang/String; not found”. what’s the matter? please help me.

    Toby


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


  • 2.  RE: Can I use split method of String

    Posted 10/26/05 12:58 PM

    Hello Toby,

    split method is available only in JDK 1.4. Check the JDK that you are using. It might be the lower version than 1.4.

    Thanks and regards,
    Pazhanikanthan. P


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


  • 3.  RE: Can I use split method of String

    Posted 10/26/05 05:31 PM

    PP is right… split is available in JDK 1.4 and above… and AFAIK, webM version lower than 6.1 don’t use jdk 1.4.

    Thx, R


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


  • 4.  RE: Can I use split method of String

    Posted 10/27/05 01:39 AM

    Pazhanikanthan & Rohit

    Thank you. you are right.
    

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


  • 5.  RE: Can I use split method of String

    Posted 11/06/05 04:56 PM

    Toby,

    Instead of trying to write unnecessary Java codes, why not just use pub.string:tokenize?


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