Re: component couchdb

2015-09-02 Thread Hilderich
I have solved the issue:

It was an OSGi dependency resolution problem and it has nothing to do with
camel directly.

Karaf Feature camel-couchdb has a dependency to bundle lightcouch as you can
see in the feature xml file:

But lightcouch has a dependency to /org.apache.commons.logging/ with version
[1.2,2). /Pax Loggin/, standard logging bundle in Apache Karaf, however is
using and exporting /org.apache.commons.logging/ with version *1.1.1*.
Consequently the dependency for lightcouch could not be fulfilled. I have
changed the MANIFEST.MF in lightcouch so it depends on version 1.1.1 and now
it is fine.

Kind regards,
Hilderich 



--
View this message in context: 
http://camel.465427.n5.nabble.com/component-couchdb-tp5771133p5771164.html
Sent from the Camel - Users mailing list archive at Nabble.com.


component couchdb

2015-09-01 Thread Hilderich
Hello fellows,

In my camel route (Apache Camel 2.15.2) I'd like to use the component
couchdb and I have follow all instructions as here:

http://camel.apache.org/couchdb.html 

My camel route runs in Apache Karaf and when I try to start the bundle with
the camel context I get the following error:

I have commons-logging installed via

but it has not fixed the problem.

Any Ideas? 

Every hint is appreciated. Thanks!
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/component-couchdb-tp5771133.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-04 Thread Hilderich
Hello Daniel,

Unfortunately I have worked almost 4 days to incorporate a Basic
Authentication to Karaf, CXF, Camel and Blueprint but with no success. 
This Java domain, OSGi and its frameworks, is quite difficult to grasp
though I have read partly OSGi in Action and Enterprise OSGi in Action. 
How many years you think I need to get a member of these secret bond of the
known?

Seriously, I have to do it in my leisure time to shift it to Karaf 3.0.2.
However I don't know if it wil help to establish a Basic Authentication. 
I will report here next.

Kind regards,
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-jaas-authentication-to-a-cxf-endpoint-in-karaf-tp5758340p5758494.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Hilderich
Hello Christian,

I did exactly as you described above but no authentication mechanism is
triggered. I have tried your two approaches as well and no authentication
mechanism ever came into action. Maybe there is something wrong with my
versions: 

Apache Karaf 2.3.2
Apache CXF 2.7.6
Apache Camel 2.11.1

I have read this 

https://issues.apache.org/jira/browse/CXF-5863

but I am not sure if this is the reason. 

Last week I have commenced with an update to Karaf 3.0.2 but so far I am not
able to start my bundle because cxf bus in blueprint cannot initialized
(this part in bluprint.xml: httpj:engine-factory bus=cxf). Probably this
has something to do with wrong versions and missing imports. I am very
discouraged.

Kind regards,
Hilderich





--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-jaas-authentication-to-a-cxf-endpoint-in-karaf-tp5758340p5758448.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Hilderich
Hello Sergey,

Thank your for your help. I've tried as here:



In /karaf_home/etc/users.properties/ is one entry:

*karaf=karaf,admin*

I think this should be okay, isn't it?

If I understand JAAS correctly any login is referenced to users.properties
and if a match exist you are authorized. 
However so far no login is required at the moment and that is the problem at
all.

Kind regards,
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-jaas-authentication-to-a-cxf-endpoint-in-karaf-tp5758340p5758455.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Adding jaas authentication to a cxf endpoint in karaf

2014-11-03 Thread Hilderich
Hello Sergey,

First of all what you have suggested I have done as you can see above. But
this incorporation of an interceptor has no effect and no one requires a
login if I do a request to the address in my browser. 
My question about JAAS was intended to get a feedback from you if I have
grasp JAAS correctly. In Karaf the JAAS login mechanism looks into
karaf_home/etc/users.properties, isn't it? 
I don't know what you mean when you are talking about anonymous users and I
cannot find any property /allowAnonymous/. I just want to know if one entry
as stated above in users.propties is enough 
for an authorization? However this is not the point at the moment because no
one is asking for any authorization - what a shame. 

Do I have to create any web app context file for any other authentication
stuff beyond /blueprint.xml/ and /users.properties/? Do I have to configure
karaf_home/etc/org.apache.karaf.jaas.cfg ???

Kind regards,
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-jaas-authentication-to-a-cxf-endpoint-in-karaf-tp5758340p5758462.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Adding jaas authentication to a cxf endpoint in karaf

2014-10-31 Thread Hilderich
Hello Willem,

Many thanks for that crucial hint. I did as you said but no Basic
Authentication was requested. What I am not understand so far is the
keystore stuff in httpj:tlsServerParameters ...
As I interpret it correctly this has something to do with SSL/https but I
have no intentions to switch to https. As a result I have in the meantime
lt;httpj ... section in blueprint modified to:

lt;httpj:engine-factory bus=quot;cxfquot;
httpj:engine port=9000  
httpj:threadingParameters minThreads=5
maxThreads=20 /
httpj:handlers
ref component-id=securityHandler /
/httpj:handlers
/httpj:engine
/httpj:engine-factory


Do I have get something wrong? Is Basic Auth inevitably connected with
SSL/http???

Could you please help me once again to establish BASIC Auth via http and how
jetty has properly configured in blueprint.xml?

Kind regards,
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-jaas-authentication-to-a-cxf-endpoint-in-karaf-tp5758340p5758360.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Adding jaas authentication to a cxf endpoint in karaf

2014-10-30 Thread Hilderich
Dear Support Community,

We have in use Apache Karaf 2.3.2 with Apache Camel 2.11.1.

There is a bundle with a Camel Route that creates a Web Service:



This was already running smoothly with not problems. Now there was the
requirement to lock this web service via Basic Authentication. 
Therefore I have read something about it how to do it in combination with
Karaf and Jetty and I did it like here:

http://camel.465427.n5.nabble.com/camel-jetty-authentication-JAAS-td3293819.html

I have no bundle conflicts, but what I am facing now when Karaf starts is a
NullpointerException:



It looks like camel-cxf cannot read the URI *jetty:http://...*

In my point of view all requirements are installed:
karaf@root features:list | grep -i jetty
[installed  ] [2.7.6  ] cxf-http-jetty 
cxf-2.7.6
[installed  ] [2.11.1 ] camel-jetty
camel-2.11.1
[installed  ] [7.6.8.v20121106] jetty  
karaf-2.3.2 Provide Jetty engine sup
port

Any ideas?

Kind regards,
Hilderich







--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-jaas-authentication-to-a-cxf-endpoint-in-karaf-tp5758340.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: wiretap in otherwise does not work

2014-06-17 Thread Hilderich
Hello All,

In my camel route there is also a wireTab inside the otherwise section of
choice and I got the same exception as mentioned above. Is there a solution
available for that issue?

Kind Regards
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/wiretap-in-otherwise-does-not-work-tp5750955p5752407.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: wiretap in otherwise does not work

2014-06-17 Thread Hilderich
Hello Claus,

Thank you for your help. I have incorporated .endChoice() together with
.newExchangeBody(...) and now it is working. In my case
.newExchangeBody(...) was the crucial thing.

Kind Regards
Hilderich.



--
View this message in context: 
http://camel.465427.n5.nabble.com/wiretap-in-otherwise-does-not-work-tp5750955p5752412.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Access another CamelContext

2014-01-03 Thread Hilderich
Hello again,

My approach above doesn't work steadily because more than one bundle exports
a service
with the same interface org.apache.camel.CamelContext. Now I have the
situation that
sometimes the Camel-Context is from that and then later the Camel-Context
is from the other bundle.
How can I use OSGi-Service-Metadata in Blueprint to use only the
Camel-Context of
one specific bundle?

Kind Regards
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Access-another-CamelContext-tp5744744p5745478.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Access another CamelContext

2014-01-03 Thread Hilderich
Hello *,

I figured it out:

In Apache Karaf I checked the service metadata via:



The following output gave me a view to the server metadata
and I saw the key *camel.context.name*

In my blueprint I was able to write the following:



The crucial thing above is the filter attribute.

That's it.

Kind regards
Hilderich





--
View this message in context: 
http://camel.465427.n5.nabble.com/Access-another-CamelContext-tp5744744p5745480.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Access another CamelContext

2013-12-16 Thread Hilderich
Many thanks!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Access-another-CamelContext-tp5744744p5744847.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Access another CamelContext

2013-12-13 Thread Hilderich
Dear Camel Support Team,

We have about 3 bundles running in an OSGi-Container (Karaf) and each has
its own
CamelContext - we are using Aries Blueprint by the way. 
Now we have the requirement to stop a route from another CamelContext. 
Furthermore this CamelContext is defined in another bundle. Can I take
access to 
this CamelContext and stop the route?

Can this be done and what is here the best practice? I was thinking about a
OSGi-Service.

Many thanks and kind regards
Hilderich 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Access-another-CamelContext-tp5744744.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Need Help in configuring a router to run to run parallally every 30 minutes

2013-10-02 Thread Hilderich
Hello gudiseashok,

When you are willing to start the route above flexible more than once than
you should 
consider to create this route as a dynamic one:



Maybe this is what you need?

Cheers
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Need-Help-in-configuring-a-router-to-run-to-run-parallally-every-30-minutes-tp5740755p5740759.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Read a stream from telnet service

2013-09-27 Thread Hilderich
Hello,

My first thought was about the exec: component e.g.

to(exec:telnet?args=192.168.0.1 80) or on linux
to(exec:cmd?args=/C 192.168.0.1 80)

But what about the inputs received by telnet? Maybe you should
take a closer look to all components:

http://camel.apache.org/components.html

Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Read-a-stream-from-telnet-service-tp5740283p5740297.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Read a stream from telnet service

2013-09-27 Thread Hilderich
I have just read of someone with a similar problem and he got the advice to
use the netty component.

http://camel.apache.org/netty.html



--
View this message in context: 
http://camel.465427.n5.nabble.com/Read-a-stream-from-telnet-service-tp5740283p5740298.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Issue with camel el in Camel 2.12.0

2013-09-25 Thread Hilderich
Hello!

Why don't you use

simple${body}/simple

cheers
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Issue-with-camel-el-in-Camel-2-12-0-tp5740188p5740190.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Apache Camel-Lucene- I want to use Field.Store.Yes when I use TextField(String,Reader)

2013-09-19 Thread Hilderich
Hello!

IMHO your question has nothing to do with camel and is 
totally a lucene issue. 

Look at: http://lucene.472066.n3.nabble.com/

Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Apache-Camel-Lucene-I-want-to-use-Field-Store-Yes-when-I-use-TextField-String-Reader-tp5739786p5739817.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel Component for Pinging Service

2013-09-19 Thread Hilderich
Hello!

Maybe the following approach help.
Do the following within a Camel Processor or in a Bean:





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Component-for-Pinging-Service-tp5739818p5739819.html
Sent from the Camel - Users mailing list archive at Nabble.com.


onexception with option to ignore some

2013-09-13 Thread Hilderich
Hello Camel users!

Can someone tell me if the onexception dsl part within the route or context
can exclude some type of exceptions? My intention is to handle all types
of exception except of two specific ones (UserExistException,
UserNotValidException).
Because these Exception are handled by the WSDL contract and any exception
handling inside Camel put this mechanism out of force.

Cheers
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/onexception-with-option-to-ignore-some-tp5739295.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: onexception with option to ignore some

2013-09-13 Thread Hilderich
Hello again!

I have solved it as you can see next:



Cheers
Hilde



--
View this message in context: 
http://camel.465427.n5.nabble.com/onexception-with-option-to-ignore-some-tp5739295p5739296.html
Sent from the Camel - Users mailing list archive at Nabble.com.


@Handler has no effect

2013-08-30 Thread Hilderich
Hello folks!

In a Camel Route I use a node like this:


The Bean looks as follows:

But the appropriate bean method cannot be found:

Actually the annotation @Handler should show the right method. In my opinion
Camel's behaviour 
is not correct referring to its documentation. 

We are using Apache Camel 2.10.4

Cheers
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Handler-has-no-effect-tp5738317.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Logging into the bundle log file via to(log:...)

2013-08-30 Thread Hilderich
Hello Raul,

as you can see below I am using the bundle name as the sifting key:

As you have mentioned I have no hope that plain logging inside the route can
appear in
the proper bundle log file, isn't it?





--
View this message in context: 
http://camel.465427.n5.nabble.com/Logging-into-the-bundle-log-file-via-to-log-tp5738205p5738319.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Logging into the bundle log file via to(log:...)

2013-08-29 Thread Hilderich
Hello All!

We are using Apache Camel 2.10.4 within Apache Karaf 2.3.1. 

We have a Camel Route and there is a logging endpoint inside:

The logging in Apache Karaf is configured in a way that every bundle
produces its
own logfile and that Camel Route also resides in such a bundle:

My intention is to get the logging message produced inside the Camel Route
into the 
bundle log file. At the moment I can find that logging message only in
/karaf.log/ and in /org.apache.camel.camel-core.log/

What logging name or logging category has to be use or what changes in pax
logging 
configuration are essential to achieve this?

Cheers and thanks in advance
Hilderich







--
View this message in context: 
http://camel.465427.n5.nabble.com/Logging-into-the-bundle-log-file-via-to-log-tp5738205.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Logging into the bundle log file via to(log:...)

2013-08-29 Thread Hilderich
There is a workaround in order to use the bundle log file. You can reach this
by using a Camel Processor 
and from there use the logger from the class that contains the route
definition:



The endpoint to(log:...) is part of Apache Camel and therefore the log
message doesn't reach
the bundle log file but instead log file /org.apache.camel.camel-core.log/. 
The question remains what logger/loggingCategory you have to use inside the
log component. Any ideas?




--
View this message in context: 
http://camel.465427.n5.nabble.com/Logging-into-the-bundle-log-file-via-to-log-tp5738205p5738214.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Wait until the object was persisted

2013-08-12 Thread Hilderich
Sorry, my problem was a different one. It is not a problem to fetch a object
from the database after a jpa producer node. 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Wait-until-the-object-was-persisted-tp5736990p5737176.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: smtp option contentType=text/html has no effect

2013-08-08 Thread Hilderich
Thank you, Claus!



--
View this message in context: 
http://camel.465427.n5.nabble.com/smtp-option-contentType-text-html-has-no-effect-tp5736951p5736987.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Wait until the object was persisted

2013-08-08 Thread Hilderich
Hello guys!

In my camel routes as a part of it there is a jpa producer. 
When it comes to save the body to the database via 

.to(jpa:...)

I have the situation to fetch that object from the database afterwards.
However the camel route is that fast so the previously storage to database
has not been fulfilled completely. Therefore I cannot find that object
in database.
Are there any tricks/patterns, whatsoever, to handle such a
situation?

Thanks in advanced.

Hilderich

 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Wait-until-the-object-was-persisted-tp5736990.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Using camel route for parsing a csv file

2013-08-07 Thread Hilderich
sub project camel-csv has the following dependency in its POM:

*dependency
  groupIdorg.apache.servicemix.bundles/groupId
  artifactIdorg.apache.servicemix.bundles.commons-csv/artifactId
  version${commons-csv}/version
/dependency*

There you can find there the class CSVConfig.






--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-camel-route-for-parsing-a-csv-file-tp5736910p5736928.html
Sent from the Camel - Users mailing list archive at Nabble.com.


smtp option contentType=text/html has no effect

2013-08-07 Thread Hilderich
Hello folks!

We are using Camel 2.10.4. 

Before sending an email I create the html email message via Apache Velocity.
The smtp component
has the option contentType and that's why I have set it to text/html.
However this configuration
has no effect and I receive the email as plain text. 
After I have explicit changed the exchange header Exchange.CONTENT_TYPE to
text/html it is working.

Has anybody the knowledge why?

Cheers
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/smtp-option-contentType-text-html-has-no-effect-tp5736951.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel CXF Consumer Route in OSGi not available

2013-07-25 Thread Hilderich
Hello Willem!

installing self developed Bundles on Talend ESB (with Apache Karaf under the
hood) is
not supported by Talend. That's the problem.

Cheers
Hilderich



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-CXF-Consumer-Route-in-OSGi-not-available-tp5736238p5736255.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to build a nested content based router?

2013-06-04 Thread Hilderich
Thank you very much! I see!



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-build-a-nested-content-based-router-tp5733708p5733799.html
Sent from the Camel - Users mailing list archive at Nabble.com.