Hi guyug,
here is my code that works fine in my client....

  |     private void deleteQueueEntry(String jmsMessageID) throws 
JMSException,NamingException {
  |             QueueConnection 
qc=de.intermoves.pbseasyzds.admin.Session.getJMSQueueConnection();
  |             Queue 
jmsq=de.intermoves.pbseasyzds.admin.Session.getJMSQueue((String)this.queue.getSelectedKey());
  |             QueueSession session = 
qc.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
  |             QueueReceiver recv = 
session.createReceiver(jmsq,"JMSMessageID='"+jmsMessageID+"'");
  |             session.setMessageListener(new MessageListener() {
  |                     public void onMessage(Message msg) {
  |                             if(log4j.isDebugEnabled()) log4j.debug("Loesche JMS 
Message "+msg);
  |                     }
  |             });
  |             qc.start();
  |             recv.receive(1000);     // Message aus der Queue lesen wenn noch 
vorhanden
  |             qc.stop();
  |             session.close();
  |             qc.close();
  |     }
  | 

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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to