websphere jms queue access from remote client

后端 未结 1 1453
时光取名叫无心
时光取名叫无心 2021-01-16 06:26

Background I am php & frontend web developer developing an application in Java using Netbeans to read from a websphere (V8.5 I think) JMS queue and then

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-16 06:45

    Check this - Installing and configuring the Thin Client for JMS with WebSphere Application Server.

    The only jars you should need for now are:

    com.ibm.ws.orb_8.5.0.jar 
    com.ibm.was.sib.client.thin.jms_8.5.0.jar 
    com.ibm.ws.ejb.thinclient_8.5.0.jar 
    

    so please remove all other from your classpath. And make sure these jars are also in your run classpath, not only during build.

    For initial context try the following:

    Hastable env = new Hastable();
    env.put(Context.PROVIDER_URL,"iiop://localhost:2809");  // if using default ports
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    InitialContext ctx = new InitialContext(env);
    

    0 讨论(0)
提交回复
热议问题