activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eagle2009 <jsw...@163.com>
Subject Catch exceptions when creating an embedded broker in a java application.
Date Wed, 23 Sep 2009 01:07:14 GMT

Hi all,
 
When i try to create an embeded broker in my java application the following
exception caught:

org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized
xbean namespace mapping: http://mortbay.com/schemas/jetty/1.0

Could anyone can help me on the problem? The follows are my java codes:
       try {

           URI uri = new
URI("xbean:D:/AAMQ_ENV/apache-activemq-5.2.0/conf/activemq.xml");

           System.out.println(uri.getScheme());

           System.setProperty("activemq.base",
"D:/AAMQ_ENV/apache-activemq-5.2.0");

           BrokerService broker = BrokerFactory.createBroker(uri);

             broker.start();

           System.in.read();

           broker.stop();

       } catch (Exception e) {

           // TODO Auto-generated catch block

           e.printStackTrace();

       }

It would be much appreciated if any suggestion!

Best regards,
Eagle
-- 
View this message in context: http://www.nabble.com/Catch-exceptions-when-creating-an-embedded-broker-in-a-java-application.-tp25530952p25530952.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message