You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Laci Gaspar <la...@gmail.com> on 2014/01/30 13:15:28 UTC
karaf camel activemq
Hi
I'm just starting, please excuse silly questions.
I'm having problems writing an example that uses camel, activemq, karaf.
As a basis I used the Camel Example camel-example-jms-file.
Then I adapted the pom file, so that it builds a bundle. So far so good.
After installing it in karaf nothing happened, the route didn't start.
Then I looked in other examples (jms2rest in the karaf tutorials ) and
so I added a blueprint.xml file to the project.
<bean id="jms2FileRoute"
class="org.apache.camel.example.jmstofile.Jms2FileRoute">
</bean>
<camelContext id="jms2file"
xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="jms2FileRoute" />
</camelContext>
<bean id="connectionFactory" class="javax.jms.ConnectionFactory" />
<bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
<property name="connectionFactory" ref="connectionFactory"/>
</bean>
<bean id="jms-test"
class="org.apache.camel.component.jms.JmsComponent">
<argument ref="jmsConfig"/>
</bean>
<bean id="activemqConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://0.0.0.0:61616" />
</bean>
<bean id="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="maxConnections" value="8" />
<property name="connectionFactory"
ref="activemqConnectionFactory" />
</bean>
In my main class i do:
CamelContext context = new DefaultCamelContext();
JmsConfiguration jmsConfig = new JmsConfiguration(new
ActiveMQConnectionFactory("tcp://localhost:61616"));
context.addComponent("jms-test", new JmsComponent(jmsConfig ));
After installing the bundle in karaf, i get the log message:
2014-01-30 13:09:38,145 | INFO | l Console Thread |
BlueprintContainerImpl | container.BlueprintContainerImpl 360
| 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle
org.apache.camel.example.jmstofile.camel-example-jms-file is waiting for
dependencies
[(&(component=test-jms)(objectClass=org.apache.camel.spi.ComponentResolver))]
It seems that something is wrong with my ActiveMQConnectionFactory, but
I can't figure out what.
Any advice would be most helpful as well as a working up to date example
that involves AMQ, camel and karaf.
Thanks a lot,
Laci
Re: karaf camel activemq
Posted by Laci Gaspar <la...@gmail.com>.
Thanks for your answer.
It's very strange, I tried the same at home now where I have a linux
environment (at work it's Windows) and now it works.
My blueprint.xml looks like this now:
<bean id="activemqConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
<bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
<property name="connectionFactory"
ref="activemqConnectionFactory" />
<property name="transacted" value="true" />
</bean>
<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="configuration" ref="jmsConfig" />
</bean>
And in my main class I do:
CamelContext context = new DefaultCamelContext();
JmsConfiguration jmsConfig = new JmsConfiguration(new
ActiveMQConnectionFactory("tcp://localhost:61616"));
context.addComponent("activemq", new JmsComponent(jmsConfig ));
context.setTracing(true);
context.addRoutes(new Jms2RestRoute());
I "think" I had the same in my Windows installation, I'm going to
compare that on Monday. In my Windows installation I always got that error:
2014-01-30 16:53:47,531 | INFO | l Console Thread |
BlueprintContainerImpl | container.BlueprintContainerImpl 344
| 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle
org.apache.camel.example.jmstofile.camel-example-jms-file is waiting for
dependencies [(objectClass=javax.jms.ConnectionFactory)]
Anyway under Linux it's working and I hope I can find a difference in my
setup to my Windows installation.
Thanks,
Laci
On 30.01.2014 18:54, Johan Edstrom wrote:
> Right now you are doing both, configuring camel via code as well as in Blueprint.
> You want to pick one, you could let Blueprint instantiate a bean for you
> via the init-method and there setup Camel or you could declare the components
> and the CamelContext in Blueprint and just add a RouteBuilder.
>
> The latter is the most common.
>
> It looks like you haven't installed camel - you need to add a features url
> and do a features:install camel-jms
>
>
> On Jan 30, 2014, at 6:51 AM, Laci Gaspar <la...@gmail.com> wrote:
>
>> Hi JB
>> This is my MANIFEST file:
>> Import-Package: javax.jms,org.apache.activemq,org.apache.activemq.camel.
>> component,org.apache.camel;version="[2.12,3)",org.apache.camel.builder;
>> version="[2.12,3)",org.apache.camel.component.jms;version="[2.12,3)",or
>> g.apache.camel.impl;version="[2.12,3)",org.apache.camel.model;version="
>> [2.12,3)",org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
>>
>>
>> What I am confused about is:
>> In the examples I am supposed to configure the connectionFactory in the broker configuration of AMQ.
>> But I want to do this in Java.
>>
>> Any ideas?
>> Best,
>> Laci
>>
>> On 30.01.2014 13:29, Jean-Baptiste Onofré wrote:
>>> Hi Laci,
>>>
>>> do you import org.apache.camel package in your bundle ?
>>>
>>> Regards
>>> JB
>>>
>>> On 01/30/2014 01:15 PM, Laci Gaspar wrote:
>>>> Hi
>>>> I'm just starting, please excuse silly questions.
>>>>
>>>> I'm having problems writing an example that uses camel, activemq, karaf.
>>>> As a basis I used the Camel Example camel-example-jms-file.
>>>>
>>>> Then I adapted the pom file, so that it builds a bundle. So far so good.
>>>> After installing it in karaf nothing happened, the route didn't start.
>>>>
>>>> Then I looked in other examples (jms2rest in the karaf tutorials ) and
>>>> so I added a blueprint.xml file to the project.
>>>> <bean id="jms2FileRoute"
>>>> class="org.apache.camel.example.jmstofile.Jms2FileRoute">
>>>> </bean>
>>>> <camelContext id="jms2file"
>>>> xmlns="http://camel.apache.org/schema/blueprint">
>>>> <routeBuilder ref="jms2FileRoute" />
>>>> </camelContext>
>>>> <bean id="connectionFactory" class="javax.jms.ConnectionFactory" />
>>>> <bean id="jmsConfig"
>>>> class="org.apache.camel.component.jms.JmsConfiguration">
>>>> <property name="connectionFactory" ref="connectionFactory"/>
>>>> </bean>
>>>> <bean id="jms-test"
>>>> class="org.apache.camel.component.jms.JmsComponent">
>>>> <argument ref="jmsConfig"/>
>>>> </bean>
>>>> <bean id="activemqConnectionFactory"
>>>> class="org.apache.activemq.ActiveMQConnectionFactory">
>>>> <property name="brokerURL" value="tcp://0.0.0.0:61616" />
>>>> </bean>
>>>> <bean id="pooledConnectionFactory"
>>>> class="org.apache.activemq.pool.PooledConnectionFactory">
>>>> <property name="maxConnections" value="8" />
>>>> <property name="connectionFactory"
>>>> ref="activemqConnectionFactory" />
>>>> </bean>
>>>>
>>>> In my main class i do:
>>>> CamelContext context = new DefaultCamelContext();
>>>> JmsConfiguration jmsConfig = new JmsConfiguration(new
>>>> ActiveMQConnectionFactory("tcp://localhost:61616"));
>>>> context.addComponent("jms-test", new JmsComponent(jmsConfig ));
>>>>
>>>>
>>>> After installing the bundle in karaf, i get the log message:
>>>> 2014-01-30 13:09:38,145 | INFO | l Console Thread |
>>>> BlueprintContainerImpl | container.BlueprintContainerImpl 360
>>>> | 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle
>>>> org.apache.camel.example.jmstofile.camel-example-jms-file is waiting for
>>>> dependencies
>>>> [(&(component=test-jms)(objectClass=org.apache.camel.spi.ComponentResolver))]
>>>>
>>>>
>>>> It seems that something is wrong with my ActiveMQConnectionFactory, but
>>>> I can't figure out what.
>>>>
>>>> Any advice would be most helpful as well as a working up to date example
>>>> that involves AMQ, camel and karaf.
>>>>
>>>> Thanks a lot,
>>>> Laci
>>>>
Re: karaf camel activemq
Posted by Johan Edstrom <se...@gmail.com>.
Right now you are doing both, configuring camel via code as well as in Blueprint.
You want to pick one, you could let Blueprint instantiate a bean for you
via the init-method and there setup Camel or you could declare the components
and the CamelContext in Blueprint and just add a RouteBuilder.
The latter is the most common.
It looks like you haven't installed camel - you need to add a features url
and do a features:install camel-jms
On Jan 30, 2014, at 6:51 AM, Laci Gaspar <la...@gmail.com> wrote:
> Hi JB
> This is my MANIFEST file:
> Import-Package: javax.jms,org.apache.activemq,org.apache.activemq.camel.
> component,org.apache.camel;version="[2.12,3)",org.apache.camel.builder;
> version="[2.12,3)",org.apache.camel.component.jms;version="[2.12,3)",or
> g.apache.camel.impl;version="[2.12,3)",org.apache.camel.model;version="
> [2.12,3)",org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
>
>
> What I am confused about is:
> In the examples I am supposed to configure the connectionFactory in the broker configuration of AMQ.
> But I want to do this in Java.
>
> Any ideas?
> Best,
> Laci
>
> On 30.01.2014 13:29, Jean-Baptiste Onofré wrote:
>> Hi Laci,
>>
>> do you import org.apache.camel package in your bundle ?
>>
>> Regards
>> JB
>>
>> On 01/30/2014 01:15 PM, Laci Gaspar wrote:
>>> Hi
>>> I'm just starting, please excuse silly questions.
>>>
>>> I'm having problems writing an example that uses camel, activemq, karaf.
>>> As a basis I used the Camel Example camel-example-jms-file.
>>>
>>> Then I adapted the pom file, so that it builds a bundle. So far so good.
>>> After installing it in karaf nothing happened, the route didn't start.
>>>
>>> Then I looked in other examples (jms2rest in the karaf tutorials ) and
>>> so I added a blueprint.xml file to the project.
>>> <bean id="jms2FileRoute"
>>> class="org.apache.camel.example.jmstofile.Jms2FileRoute">
>>> </bean>
>>> <camelContext id="jms2file"
>>> xmlns="http://camel.apache.org/schema/blueprint">
>>> <routeBuilder ref="jms2FileRoute" />
>>> </camelContext>
>>> <bean id="connectionFactory" class="javax.jms.ConnectionFactory" />
>>> <bean id="jmsConfig"
>>> class="org.apache.camel.component.jms.JmsConfiguration">
>>> <property name="connectionFactory" ref="connectionFactory"/>
>>> </bean>
>>> <bean id="jms-test"
>>> class="org.apache.camel.component.jms.JmsComponent">
>>> <argument ref="jmsConfig"/>
>>> </bean>
>>> <bean id="activemqConnectionFactory"
>>> class="org.apache.activemq.ActiveMQConnectionFactory">
>>> <property name="brokerURL" value="tcp://0.0.0.0:61616" />
>>> </bean>
>>> <bean id="pooledConnectionFactory"
>>> class="org.apache.activemq.pool.PooledConnectionFactory">
>>> <property name="maxConnections" value="8" />
>>> <property name="connectionFactory"
>>> ref="activemqConnectionFactory" />
>>> </bean>
>>>
>>> In my main class i do:
>>> CamelContext context = new DefaultCamelContext();
>>> JmsConfiguration jmsConfig = new JmsConfiguration(new
>>> ActiveMQConnectionFactory("tcp://localhost:61616"));
>>> context.addComponent("jms-test", new JmsComponent(jmsConfig ));
>>>
>>>
>>> After installing the bundle in karaf, i get the log message:
>>> 2014-01-30 13:09:38,145 | INFO | l Console Thread |
>>> BlueprintContainerImpl | container.BlueprintContainerImpl 360
>>> | 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle
>>> org.apache.camel.example.jmstofile.camel-example-jms-file is waiting for
>>> dependencies
>>> [(&(component=test-jms)(objectClass=org.apache.camel.spi.ComponentResolver))]
>>>
>>>
>>> It seems that something is wrong with my ActiveMQConnectionFactory, but
>>> I can't figure out what.
>>>
>>> Any advice would be most helpful as well as a working up to date example
>>> that involves AMQ, camel and karaf.
>>>
>>> Thanks a lot,
>>> Laci
>>>
>>
>
Re: karaf camel activemq
Posted by Laci Gaspar <la...@gmail.com>.
Hi JB
This is my MANIFEST file:
Import-Package: javax.jms,org.apache.activemq,org.apache.activemq.camel.
component,org.apache.camel;version="[2.12,3)",org.apache.camel.builder;
version="[2.12,3)",org.apache.camel.component.jms;version="[2.12,3)",or
g.apache.camel.impl;version="[2.12,3)",org.apache.camel.model;version="
[2.12,3)",org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
What I am confused about is:
In the examples I am supposed to configure the connectionFactory in the
broker configuration of AMQ.
But I want to do this in Java.
Any ideas?
Best,
Laci
On 30.01.2014 13:29, Jean-Baptiste Onofré wrote:
> Hi Laci,
>
> do you import org.apache.camel package in your bundle ?
>
> Regards
> JB
>
> On 01/30/2014 01:15 PM, Laci Gaspar wrote:
>> Hi
>> I'm just starting, please excuse silly questions.
>>
>> I'm having problems writing an example that uses camel, activemq, karaf.
>> As a basis I used the Camel Example camel-example-jms-file.
>>
>> Then I adapted the pom file, so that it builds a bundle. So far so good.
>> After installing it in karaf nothing happened, the route didn't start.
>>
>> Then I looked in other examples (jms2rest in the karaf tutorials ) and
>> so I added a blueprint.xml file to the project.
>> <bean id="jms2FileRoute"
>> class="org.apache.camel.example.jmstofile.Jms2FileRoute">
>> </bean>
>> <camelContext id="jms2file"
>> xmlns="http://camel.apache.org/schema/blueprint">
>> <routeBuilder ref="jms2FileRoute" />
>> </camelContext>
>> <bean id="connectionFactory"
>> class="javax.jms.ConnectionFactory" />
>> <bean id="jmsConfig"
>> class="org.apache.camel.component.jms.JmsConfiguration">
>> <property name="connectionFactory" ref="connectionFactory"/>
>> </bean>
>> <bean id="jms-test"
>> class="org.apache.camel.component.jms.JmsComponent">
>> <argument ref="jmsConfig"/>
>> </bean>
>> <bean id="activemqConnectionFactory"
>> class="org.apache.activemq.ActiveMQConnectionFactory">
>> <property name="brokerURL" value="tcp://0.0.0.0:61616" />
>> </bean>
>> <bean id="pooledConnectionFactory"
>> class="org.apache.activemq.pool.PooledConnectionFactory">
>> <property name="maxConnections" value="8" />
>> <property name="connectionFactory"
>> ref="activemqConnectionFactory" />
>> </bean>
>>
>> In my main class i do:
>> CamelContext context = new DefaultCamelContext();
>> JmsConfiguration jmsConfig = new JmsConfiguration(new
>> ActiveMQConnectionFactory("tcp://localhost:61616"));
>> context.addComponent("jms-test", new JmsComponent(jmsConfig ));
>>
>>
>> After installing the bundle in karaf, i get the log message:
>> 2014-01-30 13:09:38,145 | INFO | l Console Thread |
>> BlueprintContainerImpl | container.BlueprintContainerImpl 360
>> | 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle
>> org.apache.camel.example.jmstofile.camel-example-jms-file is waiting for
>> dependencies
>> [(&(component=test-jms)(objectClass=org.apache.camel.spi.ComponentResolver))]
>>
>>
>>
>> It seems that something is wrong with my ActiveMQConnectionFactory, but
>> I can't figure out what.
>>
>> Any advice would be most helpful as well as a working up to date example
>> that involves AMQ, camel and karaf.
>>
>> Thanks a lot,
>> Laci
>>
>
Re: karaf camel activemq
Posted by cbiava <ch...@gmail.com>.
Hi,
for information and re-use, i succeeded in authentificating users from
groups the way bellow :
- etc/system.properties :
karaf.admin.role=org.apache.karaf.jaas.boot.principal.RolePrincipal:group_to_be_allowed
user.base.dn=OU=Users,[...]
user.filter=(&(objectClass=user)(sAMAccountName=%u))
role.base.dn=OU=Groups,[...]
role.name.attribute=cn
role.filter=(member=CN=%u,OU=Users,[...]
role.search.subtree=true
role.policy=group
authentication=simple
the role base search returns a list of groups and the user is auth if one of
his roles match with the one defined in system.properties.
Christophe.
--
View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031512.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf camel activemq
Posted by cbiava <ch...@gmail.com>.
Like the code described in user manual :
LoginContext ctx = new LoginContext("karaf", handler);
ctx.login();
authenticated = true;
subject = ctx.getSubject();
for (Principal p : subject.getPrincipals()) {
if ((p instanceof Group) && ("ROLES".equalsIgnoreCase(p.getName()))) {
Group g = (Group) p;
Enumeration<? extends Principal> members = g.members();
while (members.hasMoreElements()) {
Principal member = members.nextElement();
roles.add(member.getName());
}
}
}
Is this somewhere in jaas ? =)
--
View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031456.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf camel activemq
Posted by cbiava <ch...@gmail.com>.
Thank you JB.
I arrived to that conclusion.
But my LDAP returns a list of "member" containing the admin group placed in
karaf.admin.role.
Thus, I dont know how to set karaf so it iterates on members found till the
admin role is found.
Is there a way to auth like this ?
--
View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031455.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf camel activemq
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Christophe,
the karaf.admin.role defines the name of the roles acting as admin. So,
in your case, if the LDAP search returns foo,bar, if
karaf.admin.role=bar, the user will be consider as an admin.
Regards
JB
On 01/31/2014 03:53 PM, cbiava wrote:
> Actually, the LDAP search returns a list of group names. I would like to
> match the admin role to one of this groups:
> In system.properties there is a karaf.admin.role prop, is it useful in this
> case ?
>
> Sorry if I ask many questions =)
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031450.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf camel activemq
Posted by cbiava <ch...@gmail.com>.
Actually, the LDAP search returns a list of group names. I would like to
match the admin role to one of this groups:
In system.properties there is a karaf.admin.role prop, is it useful in this
case ?
Sorry if I ask many questions =)
--
View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031450.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf camel activemq
Posted by cbiava <ch...@gmail.com>.
for instance yes
--
View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031453.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf camel activemq
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You mean retrieve role "foobar" from your backend (let say LDAP) and say
to Karaf "foobar == admin" ?
On 01/31/2014 03:48 PM, cbiava wrote:
> And can I map another user to admin features ?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031449.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf camel activemq
Posted by cbiava <ch...@gmail.com>.
And can I map another user to admin features ?
--
View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031449.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf camel activemq
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Christophe,
you can, but on Karaf 2.x, only admin is really known and used ;)
So, if you use a different role name, you won't be able to do a lot with
it ;)
Regards
JB
On 01/31/2014 03:25 PM, cbiava wrote:
> Hi Jean Baptiste,
>
> if I am able to get something usual as a role in LDAP server, can I change
> the 'name' from admin to another one ? like a group name or something like
> that ? I so a conf in system.properties but did not suceed in changing from
> admin to group name.
>
> Christophe
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031445.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf camel activemq
Posted by cbiava <ch...@gmail.com>.
Hi Jean Baptiste,
if I am able to get something usual as a role in LDAP server, can I change
the 'name' from admin to another one ? like a group name or something like
that ? I so a conf in system.properties but did not suceed in changing from
admin to group name.
Christophe
--
View this message in context: http://karaf.922171.n3.nabble.com/Jaas-realm-problem-tp4031391p4031445.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf camel activemq
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Laci,
do you import org.apache.camel package in your bundle ?
Regards
JB
On 01/30/2014 01:15 PM, Laci Gaspar wrote:
> Hi
> I'm just starting, please excuse silly questions.
>
> I'm having problems writing an example that uses camel, activemq, karaf.
> As a basis I used the Camel Example camel-example-jms-file.
>
> Then I adapted the pom file, so that it builds a bundle. So far so good.
> After installing it in karaf nothing happened, the route didn't start.
>
> Then I looked in other examples (jms2rest in the karaf tutorials ) and
> so I added a blueprint.xml file to the project.
> <bean id="jms2FileRoute"
> class="org.apache.camel.example.jmstofile.Jms2FileRoute">
> </bean>
> <camelContext id="jms2file"
> xmlns="http://camel.apache.org/schema/blueprint">
> <routeBuilder ref="jms2FileRoute" />
> </camelContext>
> <bean id="connectionFactory" class="javax.jms.ConnectionFactory" />
> <bean id="jmsConfig"
> class="org.apache.camel.component.jms.JmsConfiguration">
> <property name="connectionFactory" ref="connectionFactory"/>
> </bean>
> <bean id="jms-test"
> class="org.apache.camel.component.jms.JmsComponent">
> <argument ref="jmsConfig"/>
> </bean>
> <bean id="activemqConnectionFactory"
> class="org.apache.activemq.ActiveMQConnectionFactory">
> <property name="brokerURL" value="tcp://0.0.0.0:61616" />
> </bean>
> <bean id="pooledConnectionFactory"
> class="org.apache.activemq.pool.PooledConnectionFactory">
> <property name="maxConnections" value="8" />
> <property name="connectionFactory"
> ref="activemqConnectionFactory" />
> </bean>
>
> In my main class i do:
> CamelContext context = new DefaultCamelContext();
> JmsConfiguration jmsConfig = new JmsConfiguration(new
> ActiveMQConnectionFactory("tcp://localhost:61616"));
> context.addComponent("jms-test", new JmsComponent(jmsConfig ));
>
>
> After installing the bundle in karaf, i get the log message:
> 2014-01-30 13:09:38,145 | INFO | l Console Thread |
> BlueprintContainerImpl | container.BlueprintContainerImpl 360
> | 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle
> org.apache.camel.example.jmstofile.camel-example-jms-file is waiting for
> dependencies
> [(&(component=test-jms)(objectClass=org.apache.camel.spi.ComponentResolver))]
>
>
> It seems that something is wrong with my ActiveMQConnectionFactory, but
> I can't figure out what.
>
> Any advice would be most helpful as well as a working up to date example
> that involves AMQ, camel and karaf.
>
> Thanks a lot,
> Laci
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com