WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

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.  RMI/IIOP call

    Posted Fri October 11, 2013 02:13 PM
    I have a code which is making a n IIOP call to access an MQ resource "connectionFactory"  using a URL like this iiop://hostname:bootstrapport/.



    Here bootstrapport number is of the JVM to which the connectionFactory is scoped to.  Now what is the bootstrap port number/host names I need to be using   if the connectionFactory is scoped to a  cluster with more than  one JVMs.

    IF I need to use each  JVM and port, will the code  look like this (iiop:hotsname1:bootstrapport, iiop:hotsname2:bootstrapport, iiop:hotsname3:bootstrapport3). If this is right, will this failover incase if needed.


  • 2.  RMI/IIOP call

    Posted Mon October 14, 2013 03:46 AM
    hi,
    You must use following link:

    iiop:host1:port1,:host2:port2,:host3:port3


  • 3.  RMI/IIOP call

    Posted Mon October 14, 2013 04:03 AM
    You can use this piece of code:

    // Get the initial context
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.ibm.websphere.naming.WsnInitialContextFactory");
    env.put(Context.PROVIDER_URL, "corbaloc::app1:9811,:app2:9812");
    Context initialContext = new InitialContext(env);
    // Look up the home interface using the JNDI name
    try {
    java.lang.Object ejbHome =
    initialContext.lookup("cell/clusters/EJBcluster/BeenThere");

    This is fault tolerant, so if one process goes down, another can be used as the
    naming provider, and the cluster can be accessed via the appropriate cell-based
    path in the lookup.



  • 4.  RMI/IIOP call

    Posted Mon October 14, 2013 04:53 AM
    Hi WAS,

      Ryman explain the way to do.  If you want more information I suggest to review the next chapters in redbook
     
      WebSphere Application Server V6 Scalability and Performance Handbook
      www.redbooks.ibm.com/abstracts/sg246392....
       
       
       7.3.2 Bootstrapping outside of a J2EE container
        
       7.4 How EJBs participate in workload management
        An explanation about the bootstrap process and workflow
        
       7.6.1 EJB client redundancy and bootstrap failover support
        Your case :-)
        
      Hope this helps.
     
    regards


  • 5.  RMI/IIOP call

    Posted Tue October 22, 2013 07:05 PM
    Thank you Gabriel and Ryman, I really appreciate this