Thanks a lot for your reply. But it still gives me the same error message
when it executes "connection.start()". The connection is like:

ActiveMQConnection
{id=ID:LAF-PC12880-1648-1183679501304-1:0,clientId=null,started=false}

Any possible other reasons? Thank you very much!!


bsnyder wrote:
> 
> On 7/5/07, smilingsky <[EMAIL PROTECTED]> wrote:
> 
> ...
>> Then my JMS client code is like:
>>
>> ActiveMQConnectionFactory factory = new
>> ActiveMQConnectionFactory("tcp://localhost:61616");
>> ActiveMQTopic pubTopic = new ActiveMQTopic("demo.org.servicemix.source");
>> ActiveMQTopic subTopic = new ActiveMQTopic("demo.org.servicemix.result");
>>
>> Connection connection = factory.createConnection();
>> //here is where the exception is raised
>> Session session = connection.createSession(false,
>> Session.AUTO_ACKNOWLEDGE);
>> ...
>>
>> It seems the connection cannot be set up. Could any of you give me some
>> hints on how to solve the problem? Thanks a lot!!
> 
> The configuration for the servicemix-jms component looks good but it
> appears that you forgot to call the connection.start() method to
> actually establish a connection. Try this instead:
> 
> ...
> Connection connection = factory.createConnection();
> connection.start();
> Session session = connection.createSession(false,
> Session.AUTO_ACKNOWLEDGE);
> ...
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JMS-Binding-Problem-tf4032760s12049.html#a11456699
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to