Hi
Below is the detailed description about my issue
we are using websphere 6.1 application server and weblogic 10 application server. We have to post JMS messages from websphere 6.1 application server to weblogic 10 application server. Our QueConnectionFactory and Queue are created in weblogic 10 application server.
I am able to post the JMS messages from websphere 6.1 to weblogic 10 application server using t3 protoco l and weblogics initial ContextFactory (weblogic.jndi.WLInitialContextFactory)
But we have to use any one of the following approaches
Approach 1:
we have to post JMS messages to the Queue created in weblogic10 application server using websphere initial context factory (com.ibm.websphere.naming. WsnInitial ContextFactory) and IIOP protocol to post the JMS messages which means to lookup the QueConnectionFactory and Queue we have to use IIOP protocol and the com.ibm.websphere.naming.WsnInitialContextFactory.
Approach 2:
We have to use weblogics initial ContextFactory (weblogic.jndi.WLInitialContextFactory) and IIOP protocol I tried to post the JMS messages to weblogic 10 Application server from Websphere 6.1 application server as my web application is deployed in websphere application server . But in this approach weblogic classes depends on SUN JRE which is not available in websphere application server. and failed to post the messages.
We are able to post the JMS Messages using t3 protocol and weblogic InitailContext Factory.
Here the issue is IIOP protocol and weblogic server.
(we dont have websphere MQ server)
This is our requirement.
Could you please assist me in this regard.
Sample program===>
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory
env.put(Context.PROVIDER_URL, "iiop://172.16.3.52:10090");
env.put(Context.SECURITY_CREDENTIALS,new
String("JMPTR"));
env.put(Context.SECURITY_PRINCIPAL, new String("admin"));
InitialContext ctx = new InitialContext(env);
System.out.println("Context Object Created: "+ ctx);
qConnectionFactory = (QueueConnectionFactory)ctx.lookup("jms/CWSQFOREXEMAILCF");
qConnection = qConnectionFactory.createQueueConnection();
qConnection.start();
qSession = qConnection.createQueueSession(false,javax.jms.Session.AUTO_ACKNOWLEDGE);
Queue queue = (Queue)ctx.lookup("jms/RemoteQ");
qSender = qSession.createSender(queue);
ObjectMessage objMsg = qSession.createObjectMessage();
//System.out.println("Sending HashMap=" + msgObj);
objMsg.setObject("12311241 sudhakar");
qSender.send(objMsg);