hi,

this is my code snippet. Am i to close the QueueConnection also?

navjot

try{

QueueConnection qc = qcf.createQueueConnection();
QueueSession qs = qc.createQueueSession(true,QueueSession.AUTO_ACKNOWLEDGE);

QueueSender qsender = qs.createSender(q);
MapMessage msg = qs.createMapMessage();

msg.setString("TO","");
msg.setString("SUBJECT", "Order Confirmation");
msg.setString("DATA"," Thx for placing the order with us.");
                    
qsender.send(msg);
qsender.close();
}
catch(..)




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

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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to