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.  Unknown Hostname exception while connecting to another IS

    Posted 05/22/14 03:54 PM

    I am trying to connect to another IS using the Java service

    code -

    1. creating a context
    2. trying to connect to another IS by giving the servername:port, username, password using the context created
      3.invoking a service using context.invoke
      4.disconnecting context

    It is working only on the IS where the java service is present. while connecting to all other ISs it is throwing unknown hostname execption. I have tried by giving the IP and full hostname but no luck.

    Please let me know if there is anything that needs to be checked.

    Thanks,
    Sachin


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


  • 2.  RE: Unknown Hostname exception while connecting to another IS

    Posted 05/22/14 06:26 PM

    unknown hostname means it can’t reach it. check if you have firewall blocking the IP/port. Do a telnet test first.


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


  • 3.  RE: Unknown Hostname exception while connecting to another IS

    Posted 05/23/14 12:15 AM

    Just checked the telnet option and I am able to connect from the source to target server without any issues.


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


  • 4.  RE: Unknown Hostname exception while connecting to another IS

    Posted 05/23/14 06:26 AM

    @sachin_india,

    Can you explain your requirement and why are you trying to connect to another IS (any reasons)?


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


  • 5.  RE: Unknown Hostname exception while connecting to another IS

    Posted 05/23/14 03:11 PM

    We have too many schedulers set up in our environment and it is very difficult to manage(create, delete, suspend etc) them by logging into each instance and doing the job.

    For this I have a DSP page which takes inputs like

    1. the action that needs to be performed
      2.what all servers that need to be touched to perform this action

    so when i try to create a schedule across all instances present, I am able to create it on only the instance where this page is hosted. It is throwing unknown hostname exception while connecting to other ISs.


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


  • 6.  RE: Unknown Hostname exception while connecting to another IS

    Posted 05/23/14 04:09 PM

    You can write a java service just like WmPublic/pub.remote:invoke This service has only inputs $alias, $service

    Also explore WmPublic/pub.remote.gd

    But your java service should do the below:

    1> Create remote server alias of all the IS on one IS
    2> Write a java service with
    input - $alias, $service, inputs
    output - results
    3> And call the services in WmPublic/pub.scheduler based on their inputs.
    4> I guess for each scheduler on IS the taskID is unique. Try to make use of it…

    Let me know if you have a better/optimized solution :slight_smile:


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