Problem with JMS context.
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, sorry for the preovious message and please excuese me for my english:) I have a problem with the context created for JMS. After creating the context the virtual machine in wich tomcat runs can not be stoped normaly. It has to be terminate by force ( ctrl + c for example ). This is the code i use for init and destroy methods. init() Hashtable props = new Hashtable(); props.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory"); props.put(Context.PROVIDER_URL,"tcp://localhost:3035/"); mContext = new InitialContext(props); destroy() mContext.close(); If i comment the line props.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory"); the virtual machine can be terminated normaly. Any sugestions? 10x in advice. ----------------------------- мЪЙНХ DVD Б якнм.ац: Ї Star Wars еОХГНД III: нРЛЗЫЕМХЕРН МЮ яХРХРЕ Ї мЕАЕЯМН ЖЮПЯРБН Ї оНКЪПЕМ еЙЯОПЕЯ http://www.slon.bg ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click