Topic
  • 15 replies
  • Latest Post - ‏2013-09-26T21:01:52Z by WesleyMenezes
bazzouz
bazzouz
42 Posts

Pinned topic JMS-MDB in WAS 7

‏2009-10-15T10:45:50Z |
Hello,
I would like to invoke an MDB deployed successfully in WAS 7 from a JMS client.

That's my JMS client :




import java.util.Hashtable; 

import javax.jms.JMSException; 

import javax.naming.Context; 

import javax.naming.*; 

import javax.jms.*; 

public 

class Main 
{ 

public 

static 

void main(String[] args) 

throws JMSException, Exception 
{ String messageID = 

null; String outString = 

null; String  cfName                    = 
"jms/blueconfactory"; String  qnameIn                   = 
"java:comp/env/jms/Q1"; String  qnameOut                  = 
"jms/bluequename"; 

boolean verbose = 

false; Session session = 

null; Connection connection = 

null; ConnectionFactory cf = 

null; MessageProducer mp = 

null; Destination destination = 

null; 

try 
{ Hashtable env = 

new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, 
"com.ibm.websphere.naming.WsnInitialContextFactory"); env.put(Context.PROVIDER_URL, 
"iiop:localhost:2809"); Context initialContext = 

new InitialContext(env); System.out.println(
"Getting Connection Factory"); cf= (ConnectionFactory)initialContext.lookup( cfName ); System.out.println(
"Getting Queue"); destination =(Destination)initialContext.lookup(qnameOut); System.out.println(
"Getting Connection for Queue"); connection = cf.createConnection(); System.out.println(
"staring the connection"); connection.start(); System.out.println(
"creating session"); session = connection.createSession(false, 1); System.out.println(
"creating messageProducer"); mp = session.createProducer(destination); System.out.println(
"creating TextMessage"); TextMessage outMessage = session.createTextMessage(
"this is test application"); System.out.println(
"sending Message"); mp.send(outMessage); mp.close(); session.close(); connection.close(); 
} 

catch (Exception e) 
{ e.printStackTrace(); 
} 
} 
}



[java] javax.naming.NoInitialContextException: Failed to create InitialCont ext using factory specified in hashtable 
{java.naming.provider.url=iiop:localhost:2809, java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFa ctory
} [Root exception is java.lang.NullPointerException] [java]     at javax.naming.spi.NamingManager.getInitialContext(Unknown Sour ce) [java]     at javax.naming.InitialContext.initializeDefaultInitCtx(Unknown Source) [java]     at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) [java]     at javax.naming.InitialContext.internalInit(Unknown Source) [java]     at javax.naming.InitialContext.<init>(Unknown Source) [java]     at Main.main(Main.java:33) [java] Caused by: java.lang.NullPointerException [java]     ... 6 more


Please Help ME, Thanks
Updated on 2011-04-01T06:43:26Z at 2011-04-01T06:43:26Z by SystemAdmin
  • mamwl1
    mamwl1
    212 Posts

    Re: JMS-MDB in WAS 7

    ‏2009-10-15T10:58:51Z  
    Hi.

    Do you have the rest of the stack trace? Also your provider URL is missing some forward slashes: iiop://localhost:2809

    Cheers, Matt.
  • bazzouz
    bazzouz
    42 Posts

    Re: JMS-MDB in WAS 7

    ‏2009-10-15T13:22:32Z  
    Thank you for reply,

    I has changed my jms client to the following :

    
    
    
    import java.util.Hashtable; 
    
    import javax.jms.JMSException; 
    
    import javax.naming.Context; 
    
    import javax.naming.*; 
    
    import javax.jms.*; 
    
    import com.ibm.websphere.sib.api.jms.*;     
    
    public 
    
    class Main 
    { 
    
    public 
    
    static 
    
    void main(String[] args) 
    
    throws JMSException, Exception   
    { String messageID = 
    
    null; String outString = 
    
    null; String  cfName                    = 
    "QueueConnectionFactory"; String  qnameIn                   = 
    "java:comp/env/jms/Q1"; String  qnameOut                  = 
    "queue/testQueue"; 
    
    boolean verbose = 
    
    false;   Session session = 
    
    null; Connection connection = 
    
    null; ConnectionFactory cf = 
    
    null; MessageProducer mp = 
    
    null; Destination destination = 
    
    null; 
    
    try 
    {   Hashtable env = 
    
    new Hashtable();   env.put(Context.PROVIDER_URL,
    "iiop://10.0.0.97:2809");   env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.ibm.websphere.naming.WsnInitialContextFactory");   env.put(
    "java.naming.corba.orb",org.omg.CORBA.ORB.init((String[])null,
    
    null));   InitialContext initialContext = 
    
    new InitialContext(env); System.out.println(
    "Getting Queue factory"); cf= (ConnectionFactory)initialContext.lookup( cfName ); System.out.println(
    "Getting Queue"); destination =(Destination)initialContext.lookup(qnameOut);   System.out.println(
    "Getting Connection for Queue"); connection = cf.createConnection();   System.out.println(
    "staring the connection"); connection.start();   System.out.println(
    "creating session"); session = connection.createSession(false, 1);   System.out.println(
    "creating messageProducer"); mp = session.createProducer(destination);   System.out.println(
    "creating TextMessage"); TextMessage outMessage = session.createTextMessage(
    "this is test application");   System.out.println(
    "sending Message"); mp.send(outMessage);   mp.close(); session.close(); connection.close(); 
    } 
    
    catch (Exception e) 
    { e.printStackTrace(); 
    } 
    } 
    }
    


    But, I have that stack trace :
    
    Buildfile: build.xml   compile: [javac] Compiling 1 source file to C:\Downloads\MDB\HelloWorldMDB\jms publis her queue\build\classes [javac] Note: C:\Downloads\MDB\HelloWorldMDB\jms publisher queue\src\Main.ja va uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked 
    
    for details.   jms-hello-queue: [java] Getting Queue factory [java] Getting Queue [java] Getting Connection 
    
    for Queue [java] javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ib m.websphere.sib.exception.SIResourceException: CWSIT0006E: It was not possible t o contact any of the specified bootstrap servers. Please see the linked exceptio n 
    
    for further details. Bootstrap connections were attempted to: [localhost:7276: BootstrapBasicMessaging]. [java]     at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.c reateConnection(JmsManagedConnectionFactoryImpl.java:195) [java]     at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.c reateConnection(JmsManagedConnectionFactoryImpl.java:135) [java]     at Main.main(Main.java:49) [java] Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSI T0006E: It was not possible to contact any of the specified bootstrap servers. P lease see the linked exception 
    
    for further details. Bootstrap connections were a ttempted to: [localhost:7276:BootstrapBasicMessaging] [java]     at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.gene rateException(TrmSICoreConnectionFactoryImpl.java:931) [java]     at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remo teBootstrap(TrmSICoreConnectionFactoryImpl.java:640) [java]     at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.crea teConnection(TrmSICoreConnectionFactoryImpl.java:301) [java]     at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.crea teConnection(TrmSICoreConnectionFactoryImpl.java:216) [java]     at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.cre ateCoreConnection(JmsJcaConnectionFactoryImpl.java:677) [java]     at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.cre ateCoreConnection(JmsJcaConnectionFactoryImpl.java:613) [java]     at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.cre ateConnection(JmsJcaConnectionFactoryImpl.java:358) [java]     at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.c reateConnection(JmsManagedConnectionFactoryImpl.java:162) [java]     ... 2 more [java] Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSI T0007W: It is not possible to contact the bootstrap server at localhost:7276:Boo tstrapBasicMessaging because of exception: com.ibm.websphere.sib.exception.SIRes ourceException: CWSIC1001E: A client attempted to connect with a remote messagin g engine (localhost:7276 - BootstrapBasicMessaging) but the connection cannot be completed. Ensure the messaging engine is started: exception com.ibm.ws.sib.jfa pchannel.JFapConnectFailedException: CWSIJ0063E: A network connection to host na me 127.0.0.1, port 7276 cannot be established... [java]     at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.cont actBootstrapService(TrmSICoreConnectionFactoryImpl.java:755) [java]     at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remo teBootstrap(TrmSICoreConnectionFactoryImpl.java:583) [java]     ... 8 more [java] Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSI C1001E: A client attempted to connect with a remote messaging engine (localhost: 7276 - BootstrapBasicMessaging) but the connection cannot be completed. Ensure t he messaging engine is started: exception com.ibm.ws.sib.jfapchannel.JFapConnect FailedException: CWSIJ0063E: A network connection to host name 127.0.0.1, port 7 276 cannot be established.. [java]     at com.ibm.ws.sib.comms.client.ClientSideConnection.connect(Clie ntSideConnection.java:362) [java]     at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.cont actBootstrapService(TrmSICoreConnectionFactoryImpl.java:685) [java]     ... 9 more [java] Caused by: com.ibm.ws.sib.jfapchannel.JFapConnectFailedException: CW SIJ0063E: A network connection to host name 127.0.0.1, port 7276 cannot be estab lished. [java]     at com.ibm.ws.sib.jfapchannel.impl.octracker.ConnectionDataGroup .connect(ConnectionDataGroup.java:498) [java]     at com.ibm.ws.sib.jfapchannel.impl.octracker.OutboundConnectionT racker.connect(OutboundConnectionTracker.java:518) [java]     at com.ibm.ws.sib.jfapchannel.impl.ClientConnectionManagerImpl.c onnect(ClientConnectionManagerImpl.java:129) [java]     at com.ibm.ws.sib.comms.client.ClientSideConnection.connect(Clie ntSideConnection.java:231) [java]     ... 10 more [java] Caused by: java.net.ConnectException: Connection refused: connect [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352) [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav a:214) [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:201) [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377) [java]     at java.net.Socket.connect(Socket.java:530) [java]     at com.ibm.ws.sib.jfapchannel.framework.impl.SocketNetworkConnec tion.connectAsynch(SocketNetworkConnection.java:111) [java]     at com.ibm.ws.sib.jfapchannel.impl.octracker.ConnectionDataGroup .connect(ConnectionDataGroup.java:472) [java]     ... 13 more   BUILD SUCCESSFUL
    


    Infact, 10.0.0.97 is the ip address of the server

    Thanks
  • SJC
    SJC
    157 Posts

    Re: JMS-MDB in WAS 7

    ‏2009-10-15T14:24:14Z  
    • bazzouz
    • ‏2009-10-15T13:22:32Z
    Thank you for reply,

    I has changed my jms client to the following :

    <pre class="jive-pre"> import java.util.Hashtable; import javax.jms.JMSException; import javax.naming.Context; import javax.naming.*; import javax.jms.*; import com.ibm.websphere.sib.api.jms.*; public class Main { public static void main(String[] args) throws JMSException, Exception { String messageID = null; String outString = null; String cfName = "QueueConnectionFactory"; String qnameIn = "java:comp/env/jms/Q1"; String qnameOut = "queue/testQueue"; boolean verbose = false; Session session = null; Connection connection = null; ConnectionFactory cf = null; MessageProducer mp = null; Destination destination = null; try { Hashtable env = new Hashtable(); env.put(Context.PROVIDER_URL, "iiop://10.0.0.97:2809"); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory"); env.put( "java.naming.corba.orb",org.omg.CORBA.ORB.init((String[])null, null)); InitialContext initialContext = new InitialContext(env); System.out.println( "Getting Queue factory"); cf= (ConnectionFactory)initialContext.lookup( cfName ); System.out.println( "Getting Queue"); destination =(Destination)initialContext.lookup(qnameOut); System.out.println( "Getting Connection for Queue"); connection = cf.createConnection(); System.out.println( "staring the connection"); connection.start(); System.out.println( "creating session"); session = connection.createSession(false, 1); System.out.println( "creating messageProducer"); mp = session.createProducer(destination); System.out.println( "creating TextMessage"); TextMessage outMessage = session.createTextMessage( "this is test application"); System.out.println( "sending Message"); mp.send(outMessage); mp.close(); session.close(); connection.close(); } catch (Exception e) { e.printStackTrace(); } } } </pre>

    But, I have that stack trace :
    <pre class="jive-pre"> Buildfile: build.xml compile: [javac] Compiling 1 source file to C:\Downloads\MDB\HelloWorldMDB\jms publis her queue\build\classes [javac] Note: C:\Downloads\MDB\HelloWorldMDB\jms publisher queue\src\Main.ja va uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. jms-hello-queue: [java] Getting Queue factory [java] Getting Queue [java] Getting Connection for Queue [java] javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ib m.websphere.sib.exception.SIResourceException: CWSIT0006E: It was not possible t o contact any of the specified bootstrap servers. Please see the linked exceptio n for further details. Bootstrap connections were attempted to: [localhost:7276: BootstrapBasicMessaging]. [java] at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.c reateConnection(JmsManagedConnectionFactoryImpl.java:195) [java] at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.c reateConnection(JmsManagedConnectionFactoryImpl.java:135) [java] at Main.main(Main.java:49) [java] Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSI T0006E: It was not possible to contact any of the specified bootstrap servers. P lease see the linked exception for further details. Bootstrap connections were a ttempted to: [localhost:7276:BootstrapBasicMessaging] [java] at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.gene rateException(TrmSICoreConnectionFactoryImpl.java:931) [java] at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remo teBootstrap(TrmSICoreConnectionFactoryImpl.java:640) [java] at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.crea teConnection(TrmSICoreConnectionFactoryImpl.java:301) [java] at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.crea teConnection(TrmSICoreConnectionFactoryImpl.java:216) [java] at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.cre ateCoreConnection(JmsJcaConnectionFactoryImpl.java:677) [java] at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.cre ateCoreConnection(JmsJcaConnectionFactoryImpl.java:613) [java] at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.cre ateConnection(JmsJcaConnectionFactoryImpl.java:358) [java] at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.c reateConnection(JmsManagedConnectionFactoryImpl.java:162) [java] ... 2 more [java] Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSI T0007W: It is not possible to contact the bootstrap server at localhost:7276:Boo tstrapBasicMessaging because of exception: com.ibm.websphere.sib.exception.SIRes ourceException: CWSIC1001E: A client attempted to connect with a remote messagin g engine (localhost:7276 - BootstrapBasicMessaging) but the connection cannot be completed. Ensure the messaging engine is started: exception com.ibm.ws.sib.jfa pchannel.JFapConnectFailedException: CWSIJ0063E: A network connection to host na me 127.0.0.1, port 7276 cannot be established... [java] at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.cont actBootstrapService(TrmSICoreConnectionFactoryImpl.java:755) [java] at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remo teBootstrap(TrmSICoreConnectionFactoryImpl.java:583) [java] ... 8 more [java] Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSI C1001E: A client attempted to connect with a remote messaging engine (localhost: 7276 - BootstrapBasicMessaging) but the connection cannot be completed. Ensure t he messaging engine is started: exception com.ibm.ws.sib.jfapchannel.JFapConnect FailedException: CWSIJ0063E: A network connection to host name 127.0.0.1, port 7 276 cannot be established.. [java] at com.ibm.ws.sib.comms.client.ClientSideConnection.connect(Clie ntSideConnection.java:362) [java] at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.cont actBootstrapService(TrmSICoreConnectionFactoryImpl.java:685) [java] ... 9 more [java] Caused by: com.ibm.ws.sib.jfapchannel.JFapConnectFailedException: CW SIJ0063E: A network connection to host name 127.0.0.1, port 7276 cannot be estab lished. [java] at com.ibm.ws.sib.jfapchannel.impl.octracker.ConnectionDataGroup .connect(ConnectionDataGroup.java:498) [java] at com.ibm.ws.sib.jfapchannel.impl.octracker.OutboundConnectionT racker.connect(OutboundConnectionTracker.java:518) [java] at com.ibm.ws.sib.jfapchannel.impl.ClientConnectionManagerImpl.c onnect(ClientConnectionManagerImpl.java:129) [java] at com.ibm.ws.sib.comms.client.ClientSideConnection.connect(Clie ntSideConnection.java:231) [java] ... 10 more [java] Caused by: java.net.ConnectException: Connection refused: connect [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav a:214) [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:201) [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377) [java] at java.net.Socket.connect(Socket.java:530) [java] at com.ibm.ws.sib.jfapchannel.framework.impl.SocketNetworkConnec tion.connectAsynch(SocketNetworkConnection.java:111) [java] at com.ibm.ws.sib.jfapchannel.impl.octracker.ConnectionDataGroup .connect(ConnectionDataGroup.java:472) [java] ... 13 more BUILD SUCCESSFUL </pre>

    Infact, 10.0.0.97 is the ip address of the server

    Thanks
    To be usable from a remote client you need to specify provider endpoints when configuring the Queue Connection Factory.

    See Step 6 (and the related information from the Information Center)...

    http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.pmc.doc/tasks/tjn0021_.html

    The default configuration will try to access localhost:7276.. which results in the exception here.

    //Stephen
  • bazzouz
    bazzouz
    42 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-11T13:21:23Z  
    In my case, i have only one server that enclose my Message-Driven to invoke through an remote JMS client(java class), how can i do that ?

    THANKS
  • bazzouz
    bazzouz
    42 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-11T13:41:00Z  
    I'm working with WAS V6.1, that's the stacktrace when invoking the JMS client above :

    java javax.naming.NamingException: Error getting WsnNameService propertie
    s [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccess
    ible vmcid: 0x4942f000 minor code: 3591 completed: No]
    java at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties
    (WsnInitCtxFactory.java:1439)
    java at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromSe
    rver(WsnInitCtxFactory.java:946)
    java at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(W
    snInitCtxFactory.java:865)
    java at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInt
    ernal(WsnInitCtxFactory.java:545)
    java at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:
    123)
    java at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx
    .java:798)
    java at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)

    java at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)

    java at javax.naming.InitialContext.lookup(InitialContext.java:351)
    java at Main.main(Main.java:63)
    java Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inacce
    ssible vmcid: 0x4942f000 minor code: 3591 completed: No
    java at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate
    .java:1250)
    java at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegat
    e.java:1321)
    java at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate
    .java:1146)
    java at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegat
    e.java:1287)
    java at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:
    1853)
    java at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java
    :1243)
    java at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:43
    1)
    java at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNa
    meServiceStub.java:38)
    java at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties
    (WsnInitCtxFactory.java:1436)
    java ... 9 more

    BUILD SUCCESSFUL
    Total time: 7 seconds
    Please , help
  • bazzouz
    bazzouz
    42 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-12T16:05:16Z  
    I has successfully executed my jms client throught remote system after setting the java_home of websphere
    and configuring the hosts file of windows, but, My MDB is not invoked :-(

    That's the stack trace :

    12/01/10 16:53:17:171 CET 0000000a WSChannelFram A CHFW0019I: Le service Transport Channel Service a démarré la chaîne SOAPAcceptorChain3.
    12/01/10 16:53:17:203 CET 0000000a WSChannelFram A CHFW0019I: Le service Transport Channel Service a démarré la chaîne SOAPAcceptorChain4.
    12/01/10 16:53:17:218 CET 0000001e SchedulerServ I SCHD0077I: Le service Scheduler démarre les planificateurs.
    12/01/10 16:53:17:218 CET 0000001e SchedulerServ I SCHD0078I: Le service Scheduler a terminé le démarrage des planificateurs.
    12/01/10 16:53:17:562 CET 0000000a RMIConnectorC A ADMC0026I: Le connecteur RMI est disponible sur le port 2809
    12/01/10 16:53:17:812 CET 00000024 WorkSpaceMana A WKSP0500I: La vérification de la cohérence de la configuration de l'espace de travail est false.
    12/01/10 16:53:18:328 CET 0000000a WsServerImpl A WSVR0001I: Serveur server1 prêt pour l'e-business
    12/01/10 16:53:50:609 CET 0000002c ActionServlet I org.apache.struts.action.ActionServlet init inside init....
    12/01/10 16:53:54:265 CET 0000002c ServiceManage I ServiceManager init() ServiceManager.init()>>All Services initialized successfully
    12/01/10 16:53:54:312 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] action : L'initialisation a abouti.
    12/01/10 16:53:54:781 CET 0000002c SessionListen I SessionListener sessionCreated(HttpSessionEvent event) session with session ID=mDowR4rtn5ryeBu6O_WYYr_getting created
    12/01/10 16:53:54:875 CET 0000002c TilesRequestP I org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping Tiles definition factory found for request processor ''.
    12/01/10 16:53:57:156 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/master.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:375 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/head.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:546 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/login.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:562 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/banner.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:593 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/loginConflict.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:703 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/footer.jsp] : L'initialisation a abouti.
    12/01/10 16:54:08:921 CET 0000002f ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/frameset.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:015 CET 0000002f ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/bannerframe.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:031 CET 00000030 NavigationAct I NavigationAction execute wpageid=com.ibm.isclite.welcomeportlet.layoutElement.A pageid=null moduleRef=com.ibm.isclite.ISCAdminPortlet redisplay=null
    12/01/10 16:54:09:187 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/iscnavigatorLayout.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:234 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/content.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:250 CET 0000002f ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/menubar.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:562 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/html/isclite/RowContainer.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:671 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/html/isclite/ColumnContainer.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:765 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/html/isclite/Content.jsp] : L'initialisation a abouti.
    12/01/10 16:54:10:078 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] WelcomePortlet : L'initialisation a abouti.
    12/01/10 16:54:10:218 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] [/welcome.jsp] : L'initialisation a abouti.
    12/01/10 16:54:10:281 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] ISCProductDetails : L'initialisation a abouti.
    12/01/10 16:54:10:296 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] [/about.jsp] : L'initialisation a abouti.

    Please, I need help
  • djcurrie
    djcurrie
    21 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-13T09:36:37Z  
    • bazzouz
    • ‏2010-01-12T16:05:16Z
    I has successfully executed my jms client throught remote system after setting the java_home of websphere
    and configuring the hosts file of windows, but, My MDB is not invoked :-(

    That's the stack trace :

    12/01/10 16:53:17:171 CET 0000000a WSChannelFram A CHFW0019I: Le service Transport Channel Service a démarré la chaîne SOAPAcceptorChain3.
    12/01/10 16:53:17:203 CET 0000000a WSChannelFram A CHFW0019I: Le service Transport Channel Service a démarré la chaîne SOAPAcceptorChain4.
    12/01/10 16:53:17:218 CET 0000001e SchedulerServ I SCHD0077I: Le service Scheduler démarre les planificateurs.
    12/01/10 16:53:17:218 CET 0000001e SchedulerServ I SCHD0078I: Le service Scheduler a terminé le démarrage des planificateurs.
    12/01/10 16:53:17:562 CET 0000000a RMIConnectorC A ADMC0026I: Le connecteur RMI est disponible sur le port 2809
    12/01/10 16:53:17:812 CET 00000024 WorkSpaceMana A WKSP0500I: La vérification de la cohérence de la configuration de l'espace de travail est false.
    12/01/10 16:53:18:328 CET 0000000a WsServerImpl A WSVR0001I: Serveur server1 prêt pour l'e-business
    12/01/10 16:53:50:609 CET 0000002c ActionServlet I org.apache.struts.action.ActionServlet init inside init....
    12/01/10 16:53:54:265 CET 0000002c ServiceManage I ServiceManager init() ServiceManager.init()>>All Services initialized successfully
    12/01/10 16:53:54:312 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] action : L'initialisation a abouti.
    12/01/10 16:53:54:781 CET 0000002c SessionListen I SessionListener sessionCreated(HttpSessionEvent event) session with session ID=mDowR4rtn5ryeBu6O_WYYr_getting created
    12/01/10 16:53:54:875 CET 0000002c TilesRequestP I org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping Tiles definition factory found for request processor ''.
    12/01/10 16:53:57:156 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/master.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:375 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/head.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:546 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/login.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:562 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/banner.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:593 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/loginConflict.jsp] : L'initialisation a abouti.
    12/01/10 16:53:57:703 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/footer.jsp] : L'initialisation a abouti.
    12/01/10 16:54:08:921 CET 0000002f ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/frameset.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:015 CET 0000002f ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/bannerframe.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:031 CET 00000030 NavigationAct I NavigationAction execute wpageid=com.ibm.isclite.welcomeportlet.layoutElement.A pageid=null moduleRef=com.ibm.isclite.ISCAdminPortlet redisplay=null
    12/01/10 16:54:09:187 CET 0000002c ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/iscnavigatorLayout.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:234 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/content.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:250 CET 0000002f ServletWrappe I SRVE0242I: isclite [/ibm/console] [/secure/isclite/tiles/menubar.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:562 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/html/isclite/RowContainer.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:671 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/html/isclite/ColumnContainer.jsp] : L'initialisation a abouti.
    12/01/10 16:54:09:765 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ibm/console] [/html/isclite/Content.jsp] : L'initialisation a abouti.
    12/01/10 16:54:10:078 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] WelcomePortlet : L'initialisation a abouti.
    12/01/10 16:54:10:218 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] [/welcome.jsp] : L'initialisation a abouti.
    12/01/10 16:54:10:281 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] ISCProductDetails : L'initialisation a abouti.
    12/01/10 16:54:10:296 CET 00000030 ServletWrappe I SRVE0242I: isclite [/ISCAdminPortlet] [/about.jsp] : L'initialisation a abouti.

    Please, I need help
    Does the MDB application start successfully? Also, if you view the queue point via the administrative console, do you see the sent message there?

    Regards,
    David
  • bazzouz
    bazzouz
    42 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-13T10:02:32Z  
    Yes, the MDB is started successfully, but, how can I retrieve the queue point to see whether the message is sent or not.

    I have opened the jms queue throught the administration console, but, i did'nt find how to access to the messages sent.

    Thanks
  • djcurrie
    djcurrie
    21 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-13T10:17:56Z  
    • bazzouz
    • ‏2010-01-13T10:02:32Z
    Yes, the MDB is started successfully, but, how can I retrieve the queue point to see whether the message is sent or not.

    I have opened the jms queue throught the administration console, but, i did'nt find how to access to the messages sent.

    Thanks
    You need to navigate via the bus destination rather than the JMS destination. See the InfoCenter for more details:
    http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.pmc.nd.multiplatform.doc/tasks/tjo0013_.html

    Regards,
    David
  • bazzouz
    bazzouz
    42 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-13T10:30:52Z  
    I didn't see the message sent their, even when invoking the local jms client , the content of messages of the queue point

    is empty
  • djcurrie
    djcurrie
    21 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-13T10:43:15Z  
    • bazzouz
    • ‏2010-01-13T10:30:52Z
    I didn't see the message sent their, even when invoking the local jms client , the content of messages of the queue point

    is empty
    Mysterious. Some other thoughts:
    • What quality of service are you using for messages? Persistent or non-persistent? And which of the underlying SIB qualities of service are these mapped to e.g. best effort non-persistent etc.
    • Has the time to live for message been set to something very small either in the client or on the SIB destination?
    • Have you checked the exception destination for the messaging engine to see if the message has ended up there?
    • Try turning on the following trace to track the message from sending to receipt: SIBMessageTrace=all
    • Take a look at the SIB problem determination guide: http://www.redbooks.ibm.com/redpapers/pdfs/redp4076.pdf

    Regards,
    David
  • bazzouz
    bazzouz
    42 Posts

    Re: JMS-MDB in WAS 7

    ‏2010-01-13T13:41:59Z  
    I have found the log file where the messages sent are saved
    in that path : ${USER_INSTALL_ROOT}/filestores/com.ibm.ws.sib/MorsiNode01.server1-mybus-ECF25A4EDABD4BB7/log

    when invoking throught jms local client, the messages is saved but remotely is not
  • Mukesh Nair
    Mukesh Nair
    1 Post

    Re: JMS-MDB in WAS 7

    ‏2010-02-18T16:22:59Z  
    I have a similar grinder-jython script where I want to put a jms message. The code works perfectly with Weblogic JMS. But with WAS 7.0.0.1 I get the following error.
    Can anyone tell me what am I doing wrong here. my grinder-jython scripts is attached.

    Caused by: javax.naming.NamingException: Error getting WsnNameService properties Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1439)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:946)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:865)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:545)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:455)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: JMS-MDB in WAS 7

    ‏2011-04-01T06:43:26Z  
    I have a similar grinder-jython script where I want to put a jms message. The code works perfectly with Weblogic JMS. But with WAS 7.0.0.1 I get the following error.
    Can anyone tell me what am I doing wrong here. my grinder-jython scripts is attached.

    Caused by: javax.naming.NamingException: Error getting WsnNameService properties Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1439)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:946)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:865)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:545)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:455)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
    Hi,
    Iam trying communicate two standalone JMS programs, where in Client side i have configured MQ Explorer7.0 and WAS 7.0 and able to run Client JMS code succesfully(intended to send messages into Queue), but Server JMS Code(intended to retrieve messages from Queue)is throwing this exception...

    javax.naming.NamingException: Error getting WsnNameService properties Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: 0x4942f000 minor code: 3591 completed: No

    Any help can be appreciated.

    Thanks in Advance,
    Ashok B.
  • WesleyMenezes
    WesleyMenezes
    1 Post

    Re: JMS-MDB in WAS 7

    ‏2013-09-26T21:01:52Z  
    Hi,
    Iam trying communicate two standalone JMS programs, where in Client side i have configured MQ Explorer7.0 and WAS 7.0 and able to run Client JMS code succesfully(intended to send messages into Queue), but Server JMS Code(intended to retrieve messages from Queue)is throwing this exception...

    javax.naming.NamingException: Error getting WsnNameService properties Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: 0x4942f000 minor code: 3591 completed: No

    Any help can be appreciated.

    Thanks in Advance,
    Ashok B.

    Ashok,

    I'd like to know if you remember what was the cause of this error "Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: 0x4942f000 minor code: 3591 completed: No".

    I had the same problem and cannot configure out what is this, nor find any clue in Google and IBM Developer Works...

    Thanks in advance

    Regards

    Wesley

    Updated on 2013-09-26T21:04:11Z at 2013-09-26T21:04:11Z by WesleyMenezes