I am running a number of Spring XML routes on a JEE server. I would like to
configure parts of the uri:s used in the routes via ENC entries in my
application (war). In my web.xml I have a number of env-entry declarations
that holds the values to be injected into the uri:s of my routes.
Is there
Just reporting that it is now a total success :)
I added a doStop method in my component and in that method I just call
destroy() on the CachingConnectionFactory object.
Thanks for pointing out the solution
/Lasse
--
View this message in context:
I am using JMS endpoints in a camel-servletlistener based application.
In order to get better performance I use the Spring CachingConnectionFactory
on my endpoints.
An effect of this is that when I undeploy my application the active (cached)
connections do not get destroyed (the seem to survive
Hi Claus,
in order to stop it, I need to know when it is time to stop it. What would
be an appropriate way to do this? Currently I create/start the pool as part
of a custom camel component. Can I register something that gets executed
when the camel context stops, or could I have a destructor on
Would something like this work ?
In my custom camel component I will create and start the pool in the
createEndpoint method. Further I would add an eventnotifier for
CamelContextStoppedEvent to the context. In the eventnotifier I would then
stop the pool.
The thinking from my side is to have a
I use camel-servlet together with camel-servlet-listener in a web application
and it works fine for routes that are in the camel context created by the
camel-servlet-listener.
Now I want to have servlet consumer endpoints in other camel contexts. These
other contexts are created dynamically by my
It seems like camel-servlet bypasses web filters in my container. Is this
correct? Anything that could be done to have the requests to the
camel-servlet pass a web filter prior to hitting the camel-servlet?
/Lasse
--
View this message in context:
Hi Sergey,
I am not sure what you mean by side-effects, but this is what I see (or
really: NOT see) :
I have a web application (WAR) that have a Web Filter and a Camel Servlet.
This filter is used throughout a number of applications and is configured to
be activated by all requests (/*) to the
The servlet has a name parameter.
But if id had not have a name, would that have made any difference?
/Lasse
--
View this message in context:
http://camel.465427.n5.nabble.com/Web-filter-and-camel-servlet-tp5746054p5746093.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Is it possible to do schema validation while unmarshalling SOAP XML messages
using the camel-soap dataformat?
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-soap-schema-validation-tp5742850.html
Sent from the Camel - Users mailing list archive at Nabble.com.
When I use a camel proxy, e.g. via a ProxyBuilder, I have not found any way
that my proxy client could inject additional (properties or message headers)
to the Exchange that will be used. The things I would like to inject is only
available at the client so it cant't be injected further down the
Hi Claus and thanks for the info.
I will probably do as you suggest, I just wanted to make sure that there was
no out-of-the-box way provided by Camel before I went ahead :).
Thanks
Lasse
--
View this message in context:
I intend to consume a fairly big CSV type file using camel-bindy. The file do
have a fixed amount of lines at the start of the file before the actual CSV
data starts. What would be the best/easiest way to remove these initial
lines. I guess that I somehow need to strip them off before the data
iPhone
22 apr 2013 kl. 10:45 skrev Claus Ibsen claus.ib...@gmail.com:
Hi
CamelExecutionException is usually thrown if you use the producer template
api.
On Sun, Apr 21, 2013 at 3:08 PM, helander leh...@gmail.com wrote:
I would appreciate some assistance regarding how to handle
I would appreciate some assistance regarding how to handle received Soap
Faults when using the camel-soap component.
I am using SoapJaxbDataFormat and ServiceInterfaceStrategy. When the
received response is a Soap:Fault message I get an exception when it is
unmarshalled, however the exception is
I did deploy an application that uses camel-cdi (2.11-SNAPSHOT) on Weblogic,
and it failed to start. The same application works fine on JBoss. I then
built the camel-example-cdi war and deployed it on Weblogic and it failed to
start with the same reason as my own application.
The Weblogic server
I have tried to use the new camel-cdi from 2.11 with camel-cxf ( and the
CXFNonSpringServlet) and get the following problem:
I need to make sure that the CXF servlet is initialized prior to the
creation of the routes/context that will use the servlet. However the CDI
container initializeds my CDI
Since I got no feedback on this, I wonder if I might have better luck with
posting this on the CXF User list?
Anyone that has successfully used the CXF non-spring servlet in combination
with Camel CXF consumers and that are willing to share how you made it to
work?
Thanks
Lars
--
View this
I am using trying too use the non-Spring CXF servlet (JBoss web container)
@WebServlet(value=/mycxf/*, name=MyCxfServlet)
public class CxfServlet extends CXFNonSpringServlet {
public void init(ServletConfig sc) throws ServletException {
setBus(BusFactory.getDefaultBus());
://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
(English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Tuesday, March 19, 2013 at 4:15 AM, helander wrote:
In a route I would like to fill the message with a BeanInvocation
...
Best,
Christian
On Sun, Mar 17, 2013 at 6:37 PM, helander leh...@gmail.com wrote:
Thanks Christian,
I guess that there is no documentation available yet?
I scanned thru the example in 2.11-SNAPSHOT but it does not seem to cover
all aspects indicated by the JIRA (and the 2.11 sources
is bound
to route, but that it is bound to Exchange makes more sense :).
Thanks
Lars
Skickat från min iPhone
18 mar 2013 kl. 09:26 skrev Claus Ibsen claus.ib...@gmail.com:
On Sun, Mar 17, 2013 at 11:19 AM, helander leh...@gmail.com wrote:
Can someone clarify the following:
When an exhange
In a route I would like to fill the message with a BeanInvocation, the same
way as when using .bean(), but I do not want the bean method to be
called. Is there some easy way to do this (preferably using similar syntax
as when using .bean() ) ?
Thanks
Lars
--
View this message in context:
Can someone clarify the following:
When an exhange is passed between routes, e.g. using direct or
direct-vm, is then a new exhange created or is it the same exhange that
will be used in the target route?
If it is the latter, will the context bound to the exhange be updated or
will it retain its
The page at http://camel.apache.org/camel-2110-release.html mentions that a
lot of new features will be available in relation to CDI. Is there some
place where more information about the upcoming features is available?
Thanks
Lars
--
View this message in context:
Thanks Christian,
I guess that there is no documentation available yet?
I scanned thru the example in 2.11-SNAPSHOT but it does not seem to cover
all aspects indicated by the JIRA (and the 2.11 sources).
Are there any planned features for CDI in 2.11 that is not yet in the
SNAPSHOT code?
Is this
Ok, thanks for the clarifcation and the hint about the composite registry.
Lars
Skickat från min iPhone
12 mar 2013 kl. 13:12 skrev Claus Ibsen claus.ib...@gmail.com:
On Tue, Mar 12, 2013 at 10:26 AM, helander leh...@gmail.com wrote:
Fom Java code I would like to register beans
Fom Java code I would like to register beans in the context registry. I need
to do this in code that will deployed in various containers (Spring, JEE web
applications).
Is there some method that works in all these environments (hiding from my
code the current registry implementation) or do I have
I have a route that starts with
from(cxf:bean:foo )i.e. Java DSL
I need to create/register the bean foo from Java, is that possible?
Where can I find a working example?
Thanks
Lars
--
View this message in context:
Thanks Claus,
since I am not using Spring what class shall I use for the bean?
CxfEndpoint?
Thanks
Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Create-CXFEndpoint-using-Java-tp5728570p5728573.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I have a web application that creates a couple of camel contexts. I was
surprised to see that when I redeployed my application, the camel contexts
created by the old application instance was still visible via jconsole
after having redeployed the application (along with the set of contexts
created
JBoss AS 7 (version 7.1.1 Final)
I do not use any Spring.
Context#1:
Singleton EJB. The bean class extends DefaultCamelContext
Context#2:
SessionScoped CDI bean. The bean class extends DefaultCamelContext
All deployed by a single WAR.
Thanks
Lars
--
View this message in context:
I did suspect that, especially sine the contexts disappeared from jconsole
once i stopped them (using jconsole). I will add proper desctruction code on
my beans and hopefully the problem will go away.
Thanks
Lars
--
View this message in context:
Just confirming that stopping the contexts in my bean destructors (@PreDestroy)
fixed the problem ;)
Thanks
Lars
Skickat från min iPhone
4 mar 2013 kl. 15:37 skrev helander leh...@gmail.com:
I did suspect that, especially sine the contexts disappeared from jconsole
once i stopped them
Ok, thanks for the info
Skickat från min iPhone
4 feb 2013 kl. 09:19 skrev Claus Ibsen claus.ib...@gmail.com:
On Sun, Feb 3, 2013 at 4:17 PM, helander leh...@gmail.com wrote:
I have a route that creates Soap requests/responses using camel-soap.
The route should handle arbitrary soap
Christian,
thank you very much, it helped
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Reading-a-file-tp5726376p5726852.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I have a route that creates Soap requests/responses using camel-soap.
The route should handle arbitrary soap services which means that I can not
define the dataFormat when the route is built. As of now, I create the
dataFormat in a processor and put it into an exchange property. My idea
was to be
...@gmail.com:
Don't understand. You have to do something else BEFORE you can read the
file? Or AFTER reading the file and BEFORE you transform the content?
Sent from a mobile device
Am 27.01.2013 20:47 schrieb helander leh...@gmail.com:
Hi Christian,
sounds simple :)
However before
Hi Claus,
I got it to work.
Thanks
Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Dynamically-building-endpoint-tp5726286p5726370.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I am trying to find a way to do:
From a Producer Template send a request to a route, and in the route I would
like to read the contents of a file, transform the contents and return back
to the producer template.
Location and name of file is fixed and the file should not be moved/removed
by the
Hi Christian,
sounds simple :)
However before the consumer can consume the contents of the file, it needs
to be processed by some additonal (route)-steps, how would I do that?
Thanks
Lars
--
View this message in context:
I have a bean, lets call it b and a property P on the exchange. I want to
send the exchange to an endpoint with the URI:
foo: + b.getSomeValue(getProperty(P)) + :bar: +
b.getSomeOtherValue(getProperty(P)) + :suffix
Is it possible to do this using to(...) or toF(...) ?
If so, what would the
Given the following scenario, what would the best solution be.
Given is:
- A remote SOAP service is available over a JMS transport.
- The service is described by a WSDL.
- I generate an interface class (wsdl port type) from the wsdl using
wsdl2java (cxf-codegen-plugin)
- Applications that
I have now changed my client to be a JaxWS Proxy and this works fine, however
the cxf client proxy injects XML messages into the route (sends to the camel
context over a cxf bus). Can I somehow have the client send it as POJOs
instead, so that I can process the POJOs in the route before sending
Hi Willem,
that helped a lot. I am now getting the request message to the route that
receives the request from the cxf client. It is of type java.IO.InputStream,
how do I make it into a structure where I can read the xml elements, i.e.
similar to PAYLOAD format? Can I convert it back to POJO (not
Do you mean something like this:
from(cxf:bean:nameofendpointbean).to(..
What address do I put on the endpoint bean ?
What adress do I specify in the cxf client ?
Thanks
Lars
--
View this message in context:
Willem, thanks for the clarification.
Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Producing-consuming-SOAP-messages-to-from-POJOs-using-camel-cxf-tp5724949p5725028.html
Sent from the Camel - Users mailing list archive at Nabble.com.
The camel-apns component provides ability to send messages to iOS devices.
Are there any similar component, as part of camel or provided elsewhere,
that could be used in a camel route to send messages to Android devices via
Google Cloud Messaging (GCM)?
Thanks
Lars
--
View this message in
Claus,
thanks for the feedback. GAE is an application server and not a GCM server,
so I do not think it is the tool I need. A quick look into the GAE did
not expose any GCM API:s. Even if it would provide a GCM API within GAE, I
would need a GCM API available in an arbitrary standard Java
Aki, thanks for the feedback.
At the moment I am only using request/response (InOut).
If the service (called by the end of the route) returns a SOAP Fault, will
then the cxf-endpoint make sure that the http status code returned to the
caller becomes 500?
Do the cxf-endpoint force the return of
I provided an example application using jolokia on the camel user list a couple
of months ago. If you search the mailing list for jolokia you will probably
find it. In case you want to get it and don't find it, let me know.
Thanks
Lars
Skickat från min iPhone
21 nov 2012 kl. 12:36 skrev Claus
(http://willemjiang.blogspot.com/)
(English)
http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: willemjiang
On Sunday, October 14, 2012 at 9:10 PM, helander wrote:
In a route that starts with a cxf-endpoint and ends with a jms-endpoint, I
In a route that starts with a cxf-endpoint and ends with a jms-endpoint, I
would like to extract the jms destination from a port in the wsdl configured
on the cxf-endpoint. The port in the wsdl contains the jms-uri of the
destination to be used by the jms-endpoint. I know how to dynamically set
I have come up with a workaround to the NPE problem with Qpid.
The root of the problem is that Qpid is not able to correctly compare two
destinations that has not been fully qualified in their definitions. In
other parts of the Qpid API, assumptions are made on how to interpret
destinations that
I discovered that the most interestinf info was lost in my previous post (was
using the raw tag in Nabble, and that seemed to be filtered by e-mail
systems). So here it comes again:
I have come up with a workaround to the NPE problem with Qpid.
The root of the problem is that Qpid is not able
Hi Claus,
I will take a stab at updating the page. As you suggest I will file an ICLA.
Thanks for providing the details about editing pages.
/Lasse
--
View this message in context:
http://camel.465427.n5.nabble.com/Connection-pooling-with-camel-amqp-tp5716936p5717837.html
Sent from the
I experienced a similar thing the other day. Things did not work as expected
and console outprints related to some XML parsing problems. After some
googling i found that the problem might relate to IBM J9. I checked my system
and found out that it had bern started with the IBM JVM. When
code or something?
On Tue, Aug 14, 2012 at 10:24 PM, helander leh...@gmail.com wrote:
Hi,
I would like to share with anyone interested a prototype I have made for a
Web interface to Camel.
It is based on Jolokia (http://jolikia.org) which is a JMX agent that
provides access via http. Along
Hi,
I would like to share with anyone interested a prototype I have made for a
Web interface to Camel.
It is based on Jolokia (http://jolikia.org) which is a JMX agent that
provides access via http. Along with jolokia comes client interface
libraries for Javascript and Java. The Jolokia agent is
Claus Ibsen-2 wrote
We love contributions, however I wonder how easy it would be to setup
a syntax for specifying which JMX attributes you want to poll? That
may get message pretty quickly, if you need to configure this in a
from uri style.
To some extent I think you can compare this
Sergey,
I have added a comment to QPID-3760.
As for your list (thank you btw):
1) tcp_nodelay is default (since 0.14) OK
2) no transacted session OK
3) non-persistent messages OK
4) cachingLevel = 3 OK
5) cachingLevel = 3
Hi Michal,
before I try that, I think I will try to investigate why they are null.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Connection-pooling-with-camel-amqp-tp5716936p5716980.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Christian,
I found this JIRA earlier today, and most likely it is the same problem.
The equals() function does not seem to deal with all possible varaints of
destination definitions.
I am in the process of trying out a fix, but I have not yet been able to
build a new qpid-client. Will
I have tested the fix in org.apache.qpid.client.AMQDestination.equals(), and
now it works.
I just made sure that no null valued references were used.
Hopefully the qpid project will fix this soon. For my case, the fix I made
helps, but I do not know if there may be situations where it could
Hi Henryk,
thank you very much for the provided example.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Access-to-LDAP-search-results-tp5716883p5716914.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I have tried to get a working solution for connection pooling/caching with
camel-amqp.
I found some examples that used the Spring CachingConnectionFactory, but
when using that it get an NPE.
The first time I do a write to a queue, it works, but subsequent writes
causes an NPE.
It looks like the
This is part of an OSGi blueprint xml file.
bean id=myConnectionFactory
class=org.apache.qpid.client.AMQConnectionFactory
argument
value=amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'
/
/bean
bean
Michal,
my stack trace is more or less identical (java source line numbers are not
identical).
Do you have any idea how to work around this, patch qpid code or other
solution? Creation of new connection and destination validation on each
operation introduces significant overhead. I turned on
Thanks,
I found the information that the syntax had changed (now with the Camel
prefix).
I also found discussions about being able specify these things in the
cache: uri, but did that ever make its way into any release?
/Lars
--
View this message in context:
Maybe I have misunderstood things. I am trying to provide configuration for
the http server using the following feature definition:
feature name=httpserver-config version=1.0.0
config name=org.ops4j.pax.web
org.osgi.service.http.port = 8181
Sorry, I sent this to the wrong list. Will resubmit it to the proper list.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/http-server-config-from-feature-tp5716876p5716878.html
Sent from the Camel - Users mailing list archive at Nabble.com.
The result from an LDAP search (using camel-ldap) is of type
ArrayListjavax.naming.directory.SearchResult. Is it possible to explore
the result, without using Java, e.g. access via simple or some other
script language?
Thanks
Lars
--
View this message in context:
Thanks Christian.
Especially the hint about looking at test cases.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Use-camel-cache-constants-in-Blueprint-DSL-tp5716843p5716889.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Is it possible to retrieve the HttpServletRequest associated with exchanges
on a CXF Endpoint?
I would like to access the client certificate associated with an HTTPS
request using:
request.getAttribute(javax.servlet.request.X509Certificate)
Now, I do this using the following procedure,
Thanks,
I got it to work:
Message cxfMessage =
exchange.getIn().getHeader(CxfConstants.CAMEL_CXF_MESSAGE, Message.class);
HttpServletRequest request =
(HttpServletRequest)cxfMessage.get(HTTP.REQUEST);
X509Certificate[] certs = (X509Certificate[])
How do I use camel-cache constants, e.g. CacheConstants.CACHE_OPERATION, in
Blueprint DSL?
Short example would be nice.
Thanks
Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Use-camel-cache-constants-in-Blueprint-DSL-tp5716843.html
Sent from the Camel - Users
Christian,
thank you very much. The provided link was very helpful.
Thanks
Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-cache-questions-tp5716755p5716823.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
first of all, I guess that a cache instance is accessable from components
in the same VM, i.e. not bounded to a specific camel context or route?
By big question is related to the following scenario:
I have a set of CXF Endpoints and associated routes. At the end of the
routes, a
Hi,
does the LDAP component cache any lookups, in order to limit interactions
with the LDAP server, or does each request result in an interaction with the
server?
If it's not caching, is there any way you could use some Camel component to
create a cache?
Thanks
Lars
--
View this message in
Hi,
thank you very much for the information.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Caching-LDAP-results-tp5716714p5716724.html
Sent from the Camel - Users mailing list archive at Nabble.com.
When reading about the vm component it is described to be asynchronous, so
it would not fit the request/reply case. Unless you build two separate
paths, one for request and one for reply. Or did I miss something?
/Lars
--
View this message in context:
Ok, thanks.
The description of *vm* does not state anything about being able to use in
an osgi container, while the *direct-vm* page is very explicit about this.
My interpretation was that *vm* did not support crossing bundle boundaries.
Whatever the capability is for *vm*, maybe it woul be nice
Where can I find a version of the *camel-nmr* component that works with camel
*2.10*?
I need to communicate between contexts in different osgi bundles (using
Karaf). I tried to use the *camel-context* component, but it does not seem
that it works between contexts in different bundles, correct?
Thanks Christian,
I need InOut and I do want to avoid serialization/deserialization (for
performance reasons), and then the only option left is NMR, if I have
understood things correctly.
I will try to use camel-nmr from servicemix 4.4.2, and hope that it works
with camel 2.10.0 and Karaf 2.2.8
I got camel-nmr to work, but performance was not very good.
WS Client - HTTP Service - CXF Endpoint - NMR send - NMR receive (and
back to WS Client)
this takes about 100 ms
WS Client - HTTP Service - CXF Endpoint (and back to WS Client)
this takes about 10 ms
So crossing the bundle
Hi Sully and thanks for the input.
Now I think I know how it works, but I have an additional question:
Both entries in the config file specifies http://localhost:8181;, is it
possible do something like:
http://localhost:8181/system/console; on one and
http://localhost:8181/cxf; on the other
Hi Claus,
thanks for the suggestions. This will help a lot.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Forced-termination-of-the-current-exchange-and-returning-appropriate-response-code-tp5716235p5716306.html
Sent from the Camel - Users mailing list archive at
Willem, thanks for the clarification regarding the registration of the cxf
servlet.
May I propose to add a configuration parameter to cxf that defines a service
lookup filter to be used when cxf finds the http service. This should be
fairly simple to introduce, if the filter config is defined then
I just realized from your description that CXF does not explicitly register
with the http services, but rely on the Pax Web Whiteboard extender to
perfom the registration. This means that it would not be possible to use a
service filter between CXF and the http service (the whiteboard extender
Hi Scott,
I need to look more into your suggested solutions. Can I find more detailed
information about them somewhere?
Could you elaborate a bit more on what this means?
locking Karaf's HTTP Service to local host
Thanks
Lars
--
View this message in context:
Hi Scott, and thank you very much for the information you provided so far.
I am looking forward for the additional details you so kindly intended to
provide.
However at this point I do not understand how this will going to solve my
requirements, but maybe that will be totally clear when you
I am using cxfEndpoints with Pax Web in a Karaf container (and Camel routes
consuming from these endpoints).
I like the way that I only have to specificy the address relative to the
http://cxf context in my endpoints, but I would like to limit the available
transport for the endpoint to https.
Hi Christian,
I am using Karaf 2.2.8.
I wanted to create a setup where I had two separate web servers (two Pax Web
instances) each with its own set of configuration parameters (port numbers,
security settings etc). Access to my cxf endpoints should only be possible
via one of these web servers.
I like the commands provided by the camel karaf component, but for my current
case I need a GUI.
As you point out, I would need access to camel objects from arbitrary
bundles.
/Lars
--
View this message in context:
I tried camelwatch and got it to work when I deployed in tomcat, connecting
to camel running in karaf.
I also tried to deploy the camelwatch WAR to karaf, but I get some spring
related exception.
For now I am satisfied with being able to use camelwatch from outside my
karaf container, but I in the
Thanks, I will take a look at it and see if I could get something to work.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Web-Console-and-OSGi-tp5715906p5715946.html
Sent from the Camel - Users mailing list archive at Nabble.com.
What is the current state regarding running the Camel Web Console in OSGi?
Is someone working on this or is it already available ?
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Web-Console-and-OSGi-tp5715906.html
Sent from the Camel - Users mailing list archive
97 matches
Mail list logo