Hi,
we have a simple client. Here is a test case:
----------
package testing.jms;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Session;
import javax.naming.Context;
import javax.naming.InitialContext;
public class JmsSend {
public static void main( String[] args ) {
try {
final Context jndi = new InitialContext();
final ConnectionFactory factory = (ConnectionFactory) jndi.lookup( "ConnectionFactory" );
final Connection connection = factory.createConnection();
final Session session = connection.createSession( false, Session.AUTO_ACKNOWLEDGE );
connection.close();
} catch ( Exception e ) {
e.printStackTrace();
} finally {
System.exit( 0 ); // comment this out and the programm will "hang"
}
}
}
----------
I thought there already was an issue opened but I couldn't find it.
Cheers
Chris.
[Message sent by forum member 'chrjohn' (chrjohn)]
http://forums.java.net/jive/thread.jspa?messageID=361341