Re: When are @Consumed methods called by the JPA component?

2013-03-21 Thread Claus Ibsen
On Wed, Mar 20, 2013 at 8:20 PM, moxximus wrote: > I've ran into a bit of odd behavior from the JPA component. I've configured a > JPA consumption route as follows: > > from("jpa:com.models.MyRecord?consumeDelete=false&consumer.query=select r > from com.models.MyRecord r where r.batchID = NULL").t

Re: Processing "Simple" expressions in a Component Endpoint URL

2013-03-21 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Thu, Mar 21, 2013 at 3:59 AM, Bazzer wrote: > Hi, > > I'm writing my own component and I wondered if it was possible for the > Endpoint URL to be able to contain a Simple expression. > > For example: > > > > or > >

Re: Camel-Spring Application Start and Stop

2013-03-21 Thread Claus Ibsen
Hi Can you provide more detail. What server do you use? And how do you deploy the application. If its a web application (WAR) then see here http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html On Wed, Mar 20, 2013 at 10:40 PM, wrote: > Hi, > Have got a basic question. >

Re: Configure clientConnectionManager endpoint option in camel hhtp4

2013-03-21 Thread Claus Ibsen
Hi Make sure you use #XXX eg the # indiciate a reference lookup in the registry. On Wed, Mar 20, 2013 at 7:08 PM, Guillermo wrote: > Hi, > > I'm writting because I'm trying to configure the clientConnectionManager > httpEndpoint Option using camel-http4 but I'm having some problems. > > In my

Route starts when deployed with a cxf endpoint

2013-03-21 Thread dkum003
Hello, I have a simple route which pushes the output to a web service endpoint.Hence my to endpoint is a cxf endpoint. I have a cron schedule to start this route and my autostartup is false in camel context. But when i deploy this route the moment it is deployed the route starts and pushes th

Re: dynamic properties

2013-03-21 Thread Claus Ibsen
On Tue, Mar 19, 2013 at 7:29 AM, jinaLu wrote: > I use camel 2.8 according my serviceMix server. > In cfg I have: > message=My message ${property.type} is for user ${property.user} > messageSubject.invoice=Invoice message > You need a newer release of Camel like 2.9 onwards to do this. For exampl

Re: Camel velocity template internationalization

2013-03-21 Thread Claus Ibsen
On Wed, Mar 20, 2013 at 11:13 PM, paramjyotsingh wrote: > I have a scenario where I need to pick velocity based on locale. I have two > problems for this. > > Do we any option in velocity endpoint to provide locale information? if not, > do we have option in camel to set some header property in Ex

Re: Camel-Spring Application Start and Stop

2013-03-21 Thread Bilgin Ibryam
When the app is running in a container as war or kar the container will stop the Camel application gracefully. But in my case I run the camel application as stand alone app with: java -jar camel-app.jar ... How do I stop in this case the camel app gracefully? One thing that comes into mind is to h

Doc about camel, cxf and WS-Discovery

2013-03-21 Thread Thibault Cassan
Hi all, Do you know where I can find a documentation about using WS-Discovery with camel-cxf ? I read there (http://cxf.apache.org/docs/ws-discovery.html) that I only had to add two jars to enable WS-Discovery. I think I could only put those jars in karaf, have them automatically wrapped, to have

Re: Camel-Spring Application Start and Stop

2013-03-21 Thread Maruan Sahyoun
Hi, maybe these examples will help? http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html http://blog.nanthrax.net/2011/08/use-camel-cxf-and-karaf-to-implement-batches/ Kind regards Maruan Sahyoun Am 21.03.2013 um 11:41 schrieb Bilgin Ibryam : > When the app is running in a contai

Cannot read inbound mesage from CXF webservice

2013-03-21 Thread Heiko
Hi, I have a problem while calling a webservice from a camel route. The inbound message is set, like this prompt tells me, but I any attempt to read that leads to a nullpointer exeption, since the body in suddenly null. Can anybody tell me, what I´m doing wrong or how to access webservice result?

Permanent Suspension of Routes

2013-03-21 Thread sushil_vsk5
Hello: I have been able to successfully suspend and resume routes using the relevant JMX operations. However, when the container [app server] is restarted, the routes again start up which I do not want. I want that whatever routes have been suspended should remain so even after server restarts till

Re: When are @Consumed methods called by the JPA component?

2013-03-21 Thread moxximus
Is there a reason it can't be called before the message is routed, even if its not guaranteed to finish before the message is routed? Executing @Consumed functions is part of the stated functionality of the JPA component. It seems logical that the work occurs while the message is still at such a n

Re: When are @Consumed methods called by the JPA component?

2013-03-21 Thread Claus Ibsen
You can just call a method on your bean as the 1st thing in the Camel route. But yeah we can also add support for a @PreConsumed annotation. Fell free to log a JIRA ticket. And as always contributions is welcome http://camel.apache.org/contributing.html On Thu, Mar 21, 2013 at 2:28 PM, moxximus

inflight and pending exchanges during shutdown in a test

2013-03-21 Thread scottj
hello list, I am trying to test a Router using the CamelSpringTestSupport with Camel 2.10.4 and ActiveMQ 5.8.0. My route is configured as follows from("activemq:queue:incoming").multicast().to("direct:multicast"); from("direct:multicast") .shutdownRoute(ShutdownRoute.Defer) .shutdownRunningTask(S

Re: Processing "Simple" expressions in a Component Endpoint URL

2013-03-21 Thread Bazzer
Awesome! So it isn't so much getting my component to process the expression in the URL, as it is getting Camel to process the expression in the URL before the Endpoint gets created. Thank you! -- View this message in context: http://camel.465427.n5.nabble.com/Processing-Simple-expressions-in-

Re: Doc about camel, cxf and WS-Discovery

2013-03-21 Thread Willem jiang
Hi, As the WS-Discovery works as a service, I think you just need to make sure the two jars are wrapped rightly. Please let us know if you find anything wrong, I'd like to spend some time to get all WS-Discovery things work :) -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Re: Camel FTP is not consuming large files

2013-03-21 Thread Christian Posta
Also *note* with camel 2.11 (when it's released :) ) you have the option to stream the download directly from the ftp site without storing to local disk: https://issues.apache.org/jira/browse/CAMEL-6090 On Wed, Mar 20, 2013 at 8:55 AM, akcameluser wrote: > Hi Claus > > Many thanks for your sugg

Re: Cannot read inbound mesage from CXF webservice

2013-03-21 Thread Heiko
Some more hints: I added an enrich pattern to my route to inspect all bodies and enabled stream-caching. Same result as a custom / System.out command line output: oldExchange.getIn(): here the input appears, which triggers my file component endpoint oldExchange.getOut(): null newExchange.getIn():

NullPointerException with Camel WebSphere 7

2013-03-21 Thread Tim.Alkemade
I'm having trouble with Camel on WebSphere 7, specifically service pack 7.0.0.27. When starting up a web application, I get a NullPointerException in the attached the stacktrace inconsistently. About half the time it fails, half the time it succeeds. I played around with adding and removing differe

Re: Stream Caching Kills my Routes

2013-03-21 Thread rouble
Hi Claus, Can you please send me the JIRA ticket id so I can track it. Appreciate it. Cheers Rouble On Wed, Mar 20, 2013 at 11:13 AM, Claus Ibsen wrote: > On Wed, Mar 20, 2013 at 2:10 PM, rouble wrote: >> Camel aficionados, >> >> I have a simple http proxy route in Camel 2.8: >> from("ser

Re: Stream Caching Kills my Routes

2013-03-21 Thread Claus Ibsen
On Thu, Mar 21, 2013 at 5:16 PM, rouble wrote: > Hi Claus, > > Can you please send me the JIRA ticket id so I can track it. > > Appreciate it. > > Cheers > Rouble > https://issues.apache.org/jira/browse/CAMEL-6190 -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of Red Hat

Stream Caching 101

2013-03-21 Thread rouble
Camel-o-philes, Can someone give me a quick understanding of what it means if I enable stream caching? Does it mean that in a single processor I can read the IN or OUT message as many times as I like? It does not seem to be this way. I can easily recreate a situation if I try to read a message the

Re: inflight and pending exchanges during shutdown in a test

2013-03-21 Thread PJ Walstroem
I think your solution, since you are using 2.10.4, is to use the mockEndpointsAndSkip available in Camel 2.10 and onwards. When you mock endpoints in previous versions, the original enpoints are still active; i.e. both your mocks and your unmocked endpoints will receive the messages. I guess that i

Re: Stream Caching 101

2013-03-21 Thread Christian Müller
We documented this feature here: http://camel.apache.org/stream-caching.html Best, Christian On Thu, Mar 21, 2013 at 5:23 PM, rouble wrote: > Camel-o-philes, > > Can someone give me a quick understanding of what it means if I enable > stream caching? Does it mean that in a single processor I ca

Re: Cannot read inbound mesage from CXF webservice

2013-03-21 Thread Christian Müller
You should not call: exchange.getOut() in "setTemisWebServiceTokenToHeader". This will create an empty out message which is afterwards send to the next processor... Best, Christian On Thu, Mar 21, 2013 at 2:15 PM, Heiko wrote: > Hi, > I have a problem while calling a webservice from a camel rou

Re: Permanent Suspension of Routes

2013-03-21 Thread Christian Müller
Camel doesn't persist the state of a route right now. You can only configure whether a route should be start if the context is started or not. Best, Christian On Thu, Mar 21, 2013 at 2:20 PM, sushil_vsk5 wrote: > Hello: > I have been able to successfully suspend and resume routes using the > rel

Re: Route starts when deployed with a cxf endpoint

2013-03-21 Thread Christian Müller
Can you share your route with us? And which version of Camel do you use? Best, Christian On Thu, Mar 21, 2013 at 8:47 AM, dkum003 wrote: > Hello, > > I have a simple route which pushes the output to a web service > endpoint.Hence my to endpoint is a cxf endpoint. > > I have a cron schedule to st

Re: camel smpp integration

2013-03-21 Thread Christian Müller
You can find the camel-smpp tests at: https://svn.apache.org/repos/asf/camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/ Here you will see you should use: smpp://smppclient1@localhost :2775?password=password&enquireLinkTimer=1&transactionTimer=5000&systemType=prod

how to do a registry of type: javax.sql.DataSource

2013-03-21 Thread takidean
hi everybody this is my apache camel code: public class Cntx { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { // TODO Auto-generated method stub CamelContext context = n

Re: Cannot read inbound mesage from CXF webservice

2013-03-21 Thread Claus Ibsen
On Thu, Mar 21, 2013 at 2:15 PM, Heiko wrote: > Hi, > I have a problem while calling a webservice from a camel route. The inbound > message is set, like this prompt tells me, but I any attempt to read that > leads to a nullpointer exeption, since the body in suddenly null. > See this FAQ http://c

How to gave version to camel context file ?

2013-03-21 Thread sarfaraj
Hi I have camel context file with some route logic. I have deployed that on servicemix but I see it has 0.0.0 version by default. (see below) Can I add version (like 1.0.0) to that camel context file ? I have only camel file no

Re: Permanent Suspension of Routes

2013-03-21 Thread Claus Ibsen
On Thu, Mar 21, 2013 at 2:20 PM, sushil_vsk5 wrote: > Hello: > I have been able to successfully suspend and resume routes using the > relevant JMX operations. However, when the container [app server] is > restarted, the routes again start up which I do not want. I want that > whatever routes have

Re: how to do a registry of type: javax.sql.DataSource

2013-03-21 Thread Claus Ibsen
Hi You can use the simple registry http://camel.apache.org/registry.html And put the sql data source on the registry with a given name. Its just a Map And then pass that registry in the DefaultCamelContext constructor. On Fri, Mar 22, 2013 at 12:31 AM, takidean wrote: > hi everybody this is