Hi adrian,

Thanks for pointing out the error that I gave in the XML data in here. But this 
was actually a typo in the XML file that I had given here...I have rechecked, 
and the queue name IS actually Amit_Queue instead of Amitz_Queue.

Still my problem isn't solved...

I am also attaching the code from my Stateless Ses Bean, which I am using to 
send a message to be eventually caught by the MDB...

This code is written in setSessionContext() method:

qcFact = (QueueConnectionFactory)context.lookup("ConnectionFactory");
  | System.out.println("Uselessly Found the queue Factory :" + 
qcFact.toString());
  |                  
  | queue = (Queue)context.lookup("queue/Amit_Queue");
  | System.out.println("Got the Queue :" + queue);
The following code (Producing a message) is written in business method of that 
SSB:

QueueConnection qCon = qcFact.createQueueConnection();
  |             QueueSession qSess = qCon.createQueueSession(true, 
Session.AUTO_ACKNOWLEDGE);
  |             QueueSender qSender = qSess.createSender(queue);
  |             
  |             String msg = "An employee with name = ** " + naam + " " + prop +
  |                 " has been created with an employee id = " + 
Integer.toString(num);
  |             TextMessage tm = qSess.createTextMessage();
  |             tm.setText(msg);
  |             
  |             qSender.send(tm);
  |             System.out.println("SENT THE MESSAGE to Test Q!");
  |             qSender.close();
  |             qCon.close();
Here are the debug statements that I am gtting from the server:

16:08:58,046 INFO  [Amit_Queue] Bound to JNDI name: queue/Amit_Queue
  | ........
  | ........
  | 16:19:17,312 INFO  [STDOUT] Uselessly Found the queue Factory :[EMAIL 
PROTECTED]
  | 16:19:17,328 INFO  [STDOUT] Got the Queue :QUEUE.Amit_Queue
  | 16:19:17,328 INFO  [STDOUT] Creating the Stateless Bean
  | 16:19:17,390 INFO  [STDOUT] SENT THE MESSAGE to Test Q!

I have put a debug statement in my MDB's setMessageDrivenContext() as well as 
at entry point of onMessage() method, but none of them show up.

Any help is gladly welcome....

Else, can anyone provide me a new and fresh setup in entirety (code, config 
files etc), in which a SSB gives a message to a Queue(a user's queue, not the 
ones delivered with JBOss), and the MBD receives it successfully....

Looking forward for help.

Thanks,
Amit.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866432#3866432

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866432


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to