You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by lionceau <fl...@gmail.Com> on 2014/06/15 12:24:11 UTC
Re: Karaf 3.0.0 and JMS , No JMS connection factory found
I can't test it .. I don't know what's going on because now I can't create
connectionfactory-default.xml with jms:create -t activemq -u
tcp://localhost:61616 default
when i do jms:create --help , it's like i can't use the option u , why ?
karaf@root()> feature:install jms
karaf@root()> feature:install activemq-broker
karaf@root()> jms:create --help
DESCRIPTION
jms:create
Create a JMS connection factory.
SYNTAX
jms:create [options] name
ARGUMENTS
name
The JMS connection factory name
OPTIONS
-t, --type
The JMS connection factory type (ActiveMQ or WebsphereMQ)
(defaults to ActiveMQ)
--help
Display this help message
--url
URL of the JMS broker. For WebsphereMQ type, the URL is
hostname/port/queuemanager/channel
(defaults to tcp://localhost:61616)
karaf@root()> jms:create -t activemq -u tcp://localhost:61616 default
Error executing command jms:create: undefined option -u
Try <command> --help' for more information.
karaf@root()>
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-0-and-JMS-No-JMS-connection-factory-found-tp4033503p4033505.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf 3.0.0 and JMS , No JMS connection factory found
Posted by lionceau <fl...@gmail.Com>.
Hi ,
Thank you for your answer,
My error was , I need to add "org.apache.karaf.jms.command-3.0.0.jar" in the
deploy folder.
now I can send a JMS but "jms:browse /jms/default MyQueue" and "jms:queues
/jms/default" don't work.Why ?
karaf@root()> jms:connectionfactories
JMS Connection Factory
----------------------
jms/default
karaf@root()> jms:info jms/default
Property | Value
-------------------
product | ActiveMQ
version | 5.9.0
karaf@root()> jms:send jms/default MyQueue "Hello World"
karaf@root()> jms:send jms/default MyQueue "Hello Lionceau"
karaf@root()> jms:count jms/default MyQueue
Messages Count
--------------
3
karaf@root()> jms:queues jms/default
Error executing command: org/apache/activemq/pool/PooledConnection
karaf@root()> jms:queues /jms/default
Error executing command: No JMS connection factory found for /jms/default
karaf@root()> jms:browse /jms/default MyQueue
Error executing command: No JMS connection factory found for /jms/default
Thank you,
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-0-and-JMS-No-JMS-connection-factory-found-tp4033503p4033506.html
Sent from the Karaf - User mailing list archive at Nabble.com.