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.
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.
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);
InitialContext ic = new InitialContext();
Queue que = (Queue)ic.lookup("newq");
Destination replyTo = (Queue)que;
MessageProducer producer = session.createProducer(replyTo);
System.out.println("Aft crt prod");
TextMessage reply = session.createTextMessage(result);