Hi

ActiveMQ 5.12.0 feature doesn't work with Karaf 4.0.1. We are preparing a new release including the fix.

The SAX warning that you got is not a problem.

Yes jms:create is preferred approach to create JMS connection factories. I plan to use something similar to pax-jdbc (maybe pax-resources or whatever) in the future.

You can use any kind of broker with Karaf: instead of creating ActiveMQ connection factory, you can create generic blueprint describing the connection factory of your broker.

Regards
JB

On 09/24/2015 06:02 AM, xlogger wrote:
I was trying to follow
http://blog.nanthrax.net/2013/12/coming-in-karaf-3-0-0-new-enterprise-jms-feature/
to setup JMS datasource on Karaf 4.0.1

If I run the followings:
feature:repo-add activemq 5.12.0
feature:install activemq-broker

I got Error as follows:
Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=activemq-broker; type=karaf.feature;
version="[5.13.0.SNAPSHOT,5
HOT]";
filter:="(&(osgi.identity=activemq-broker)(type=karaf.feature)(version>=5.13.0.SNAPSHOT)(version<=5.13.0.SNAPSHOT))"

Then I have another try by removing the activemq 5.12.0 repository and then:
feature:repo-add activemq
feature:install activemq-broker
jms:create -t activemq -u tcp://localhost:61616 default

This time I got activemq-broker 5.13.0.SNAPSHOT feature installed, but
received some warnings during jms:create

Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
recognized.
Compiler warnings:
   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property
'http://javax.xml.XMLConstants/property/accessExternalDTD' is not
recognized.'

I can see that the connectionfactory-default.xml file created in deploy
folder, and the JMS connection service has been created. However, the karaf
log shows warning:
2015-09-24 11:50:38,827 | WARN  | nsole user karaf | JaxbUtil
| 8 - org.apache.karaf.features.core - 4.0.1 | Old style feature file
without namespace found
(URI: mvn:org.apache.activemq/activemq-karaf/LATEST/xml/features). This
format is deprecated and support for it will soon be removed

So after all those details above...would like ask the following questions
1) Does karaf 4.0.1 only support Activemq 5.13.0-SNAPSHOT version or am I
having any mis-config when installing other versions of activemq?
2) Is jms:create still a valid way for creating JMS datasource in Karaf
4.0.1? Is there any updated approach?
3) In case I wanted to setup JMS datasource which is not natively supported
by Karaf (e.g. Tibco EMS), what extra steps should I follow in order to do
so?






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-1-JMS-Datasource-tp4042744.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to