-
-
2. Re: jboss MQ to websphere MQ Mapping
indrakshi Mar 1, 2007 6:06 PM (in response to indrakshi)Thank you!!
I did start with this link. It talks about how to connect MQSeries from jboss AS.
What I want to do is to write to jboss queue from session beans and jboss queue would somehow transfer them to MQSeries queue. Don't know if that is feasible.
The link talks about a separate process that reads jboss queue and writes the messages to mqseries. Is that the only way. -
3. Re: jboss MQ to websphere MQ Mapping
weston.price Mar 1, 2007 6:08 PM (in response to indrakshi)The use case you describe is listed in the documentation. Whether you want to produce or consume from either JBoss or WASMQ, the concepts are the same.
-
4. Re: jboss MQ to websphere MQ Mapping
srikanth_vals Jun 26, 2007 8:38 AM (in response to indrakshi)Hi ,
I have written a sample MDB ,please find code below and i could receive message from MQ Queue but could not put in queue.
I have followed the steps in http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingWebSphereMQSeriesWithJBossASPart4
I need it very urgently, please help
TextMessage tm = (TextMessage)m;
String text = tm.getText();
System.out.println("message " + text + " received");
String result = process(text);
System.out.println("message processed, result: " + result);
conn = getConnection();
session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
System.out.println("Bef ic");
InitialContext ic = new InitialContext();
Queue que = (Queue)ic.lookup("newq");
System.out.println("Aft ic");
Destination replyTo = (Queue)que;
System.out.println(replyTo.toString());
MessageProducer producer = session.createProducer(replyTo);
System.out.println("Aft crt prod");
TextMessage reply = session.createTextMessage(result);
producer.send(reply);
producer.close();