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.  ES 50 connection with SSL

    Posted Wed October 29, 2003 12:28 AM

    Hi Kevin,
    Firstly to connect to an SSL enabled broker through a BrokerClient/BrokerAdminClient you have to use the BrokerConnectionDescriptor class to set the SSL related parameters.

    I see from your code above you are passing null to the BrokerConnectionDescriptor parameter in the BrokerAdminClient constructor.

    The sample code to connect to the SSL enabled broker using BrokerClient/BrokerAdminClient is as below:

    BrokerAdminClient c;
    BrokerConnectionDescriptor bcd = null ;

    bcd = new BrokerConnectionDescriptor();
    bcd.setAccessLabelHint(“”);
    bcd.setAutomaticReconnect(true);
    bcd.setConnectionShare(false);
    bcd.setSSLCertificate(pathTosslCertificateFile,sslPassword,sslDistinguishedName);
    bcd.setSSLEncrypted(false);
    bcd.setStateShare(false);

    c = new BrokerAdminClient(broker_host, broker_name, null,
    client_group, “My Broker Monitor”,bcd);

    For a non-SSL connection bcd can be null.

    Thanks
    sivaram


    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #broker


  • 2.  RE: ES 50 connection with SSL

    Posted Wed October 29, 2003 09:41 AM

    Hi

    When you want to use BrokerConnectionDescriptor in your programs, you will have security problems, with a message like :

    “Security Error (114-1442): Secure sockets are not supported with this version of the classes.”

    To resolve this problem, you have to allow wMe to load the SSL library : awssl40jn.dll (for windows) or libawssl40jn.so (for Unix-Linux)

    This will be done simply with adding this java option when you run your program : -Djava.library.path=%LIBPATH%

    where %LIBPATH% correspond to the folder containing the library.

    Karim


    #Universal-Messaging-Broker
    #broker
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: ES 50 connection with SSL

    Posted Mon November 03, 2003 08:10 PM

    Thanks, that’s exactly what I needed. It works great!!

    Best Regards, …Kevin


    #Integration-Server-and-ESB
    #webMethods
    #broker
    #Universal-Messaging-Broker


  • 4.  RE: ES 50 connection with SSL

    Posted Tue March 29, 2005 05:24 AM

    setSSLCertificate throws Null Ptr Exception. Help appreciated!!

    we are running JDK 1.2.2 with Jaguar EA server, we have the native library awssl50jn.dll (for windows 2000) in the library path. However we are getting a NullPointer exception on the call

    bcd.setSSLCertificate(pathTosslCertificateFile,sslPassword,sslDistinguishedName);

    The above line is throwing a Null Ptr Exception (bcd is not null)

    Thanks in advance,
    Mohan


    #broker
    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker