// Create a Connection
qConnection = factory.createQueueConnection(username,password);
// The client identifier is ignored for point to point connections. Since
// we are using point to point connections, there is no need to set the ClientID.
qConnection.setClientID( CLIENTID );
qConnection.start();