Re: Using EJB 3.1 @Startup to start Camel

2012-06-13 Thread Charles Moulliard
As JBoss AS7 uses Weld (CDI injection), you should not have any issues On Wed, Jun 13, 2012 at 8:39 PM, Bruno Borges wrote: > We will probably put the application under JBoss AS 7, because the Ops team > is already skilled and manages JBoss v5.1 instances around here. > > Is there something I sho

RE: Split, filter, aggregate zero messages

2012-06-13 Thread Gordienko, Max
Hi Claus, > In the aggregation strategy you can decide whatever you want and how you want to join the pieces together. > If some of those pieces should not, due to a filter, then just skip that, and return the old exchange. This approach works, thank you! But dont you think we are asking Aggrega

Re: dynamic property keys

2012-06-13 Thread Claus Ibsen
On Wed, Jun 13, 2012 at 7:29 PM, paramjyotsingh wrote: > I am trying to read a property with dynamic property key > > i have property like > > 1234_host= > 1234_port= > > where "1234" is group code, and it it dynamic, i will extract it from input > file i receive and consume service running at thi

Re: testing: intercept route and process() *after* its completion?

2012-06-13 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 2:54 AM, twelve17 wrote: > Hello, > > I've been diving into Camel testing lately, which, I'm not gonna lie, has > been quite fun. Thanks to the Camel book for assistance. :) > > I did run into one hangup in which I am not sure what the best > pattern/practice is. > > For

Re: [Discuss] Camel routes - java based needs maximumredeliveries configurable @ runtime

2012-06-13 Thread Claus Ibsen
Hi Yes the Camel error handlers is enlisted in JMX, where you can change their settings at runtime. On Wed, Jun 13, 2012 at 8:02 PM, appleongo wrote: > Camel version 2.8.3 > > Routes - java based > > Request for info: > Are there any options for making maximumredeliveries# configurable @ run >

Re: Camel IMAP

2012-06-13 Thread Claus Ibsen
Hi If you use Camel to send the email, you can use interceptors to do some work before sending. http://camel.apache.org/intercept This requires you are using Camel routes, to let the interceptors be able to kick-in. On Wed, Jun 13, 2012 at 9:23 PM, Dokkana wrote: > can i intercept using Camel

Re: Camel Lifecycle question

2012-06-13 Thread Claus Ibsen
Hi See this page http://camel.apache.org/lifecycle.html When Camel starts a route, it starts the components/endpoints/producers/services first. And the route consumer itself afterwards. So that is why you see that given order. But a person can manually create a consumer from the endpoint, and st

testing: intercept route and process() *after* its completion?

2012-06-13 Thread twelve17
Hello, I've been diving into Camel testing lately, which, I'm not gonna lie, has been quite fun. Thanks to the Camel book for assistance. :) I did run into one hangup in which I am not sure what the best pattern/practice is. For my integration testing, I am using adviceWith() to "inject" proc

[Discuss] Camel routes - java based needs maximumredeliveries configurable @ runtime

2012-06-13 Thread appleongo
Camel version 2.8.3 Routes - java based Request for info: Are there any options for making maximumredeliveries# configurable @ run Time through jMX or external properties file without restarting the camelContext? Only option i have seen so far is using only retrywhile -> bean set the @Header(R

Re: Camel Component - Consumer Threading Question

2012-06-13 Thread Claus Ibsen
On Wed, Jun 13, 2012 at 9:21 PM, gilboy wrote: > Thanks for your input on this thread Claus. > > Just to confirm I understand you correctly, the Consumer would look > something like: > > /class CustomConsumer extends DefaultConsumer implements Runnable{ > > ExecutorService service; > > Custom

Camel IMAP

2012-06-13 Thread Dokkana
can i intercept using Camel between the mail client and mail server. in a case that when the client send smtp i change message contenet apply some rules to define the (TO,CC) before go's to the smtp server also when the client request emails through IMAP or POP3 i can change the mail Continent befo

dynamic property keys

2012-06-13 Thread paramjyotsingh
I am trying to read a property with dynamic property key i have property like 1234_host= 1234_port= where "1234" is group code, and it it dynamic, i will extract it from input file i receive and consume service running at this host i have configuration like {{${in.header.gro

Re: XPath Filter not working

2012-06-13 Thread paramjyotsingh
I am getting this email from external source, Is there any other way to resolve this issue. Other wise i have to make some code tweaks/ or have to come up with some logic in bean it self. -- View this message in context: http://camel.465427.n5.nabble.com/XPath-Filter-not-working-tp5714310p5714448

HTTP4 component cannot resolve DNS

2012-06-13 Thread Diyko
I have HTTP4 endpoint which works fine for all addresses except one (throw Exhausted after delivery attempt: 1 caught: java.lang.IllegalArgumentException: Invalid uri: http://weburl.net:8080/handler.jsp) For this one endpoint works only URL contains IP not domain name Similar behavior for http(thr

Camel Lifecycle question

2012-06-13 Thread gilboy
Hi I have a custom endpoint which has both a consumer and a producer. When a new instance of the endpoint and its producer and consumer is created I want to perform a particular action. I am trying to determine if there is any callback method on the endpoint, consumer and producer which might i

Re: Using EJB 3.1 @Startup to start Camel

2012-06-13 Thread Bruno Borges
We will probably put the application under JBoss AS 7, because the Ops team is already skilled and manages JBoss v5.1 instances around here. Is there something I should be aware of? *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Wed, Jun 13, 2012 at 1:20 PM, Charles Moulliard wrote: >

Re: Camel Component - Consumer Threading Question

2012-06-13 Thread gilboy
Thanks for your input on this thread Claus. Just to confirm I understand you correctly, the Consumer would look something like: /class CustomConsumer extends DefaultConsumer implements Runnable{ ExecutorService service; CustomConsumer(EndPoint endPoint, Processor processor){ super(e

Re: Using EJB 3.1 @Startup to start Camel

2012-06-13 Thread Charles Moulliard
Project runs in Glassfish + Weld. In which J2EE App Server do you plan to deploy camel - cdi ? On Wed, Jun 13, 2012 at 6:14 PM, Bruno Borges wrote: > Awesome! Thanks! > > *Bruno Borges* > (21) 7672-7099 > *www.brunoborges.com* > > > > On Wed, Jun 13, 2012 at 12:59 PM, Charles Moulliard >wrote:

Re: Using EJB 3.1 @Startup to start Camel

2012-06-13 Thread Bruno Borges
Awesome! Thanks! *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Wed, Jun 13, 2012 at 12:59 PM, Charles Moulliard wrote: > Hi Bruno, > > You can find an example here : > https://github.com/cmoulliard/cdi-camel-example/ > > Regards, > > Charles Moulliard > > Apache Committer > > Blog : h

Re: Using EJB 3.1 @Startup to start Camel

2012-06-13 Thread Charles Moulliard
Hi Bruno, You can find an example here : https://github.com/cmoulliard/cdi-camel-example/ Regards, Charles Moulliard Apache Committer Blog : http://cmoulliard.blogspot.com Twitter : http://twitter.com/cmoulliard Linkedin : http://www.linkedin.com/in/charlesmoulliard Skype: cmoulliard On Wed,

KeepAlive for HttpComponent

2012-06-13 Thread Diyko
Is it possible set keepAlive=false fro http request I have to close connection immediately after sending it -- View this message in context: http://camel.465427.n5.nabble.com/KeepAlive-for-HttpComponent-tp5714436.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Adding Dependencies in pom.xml

2012-06-13 Thread Christian Schneider
You have to add the ojdbc jar to your local maven repo: mvn install:install-file -Dfile="C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib\ojdbc6.jar" -DgroupId=ojdbc -DartifactId=ojdbc -Dversion=11.2.0.2.0 -Dpackaging=jar Christian Am 13.06.2012 14:27, schrieb Subhanjan: I am creatin

Re: classloading in jboss and activemq component

2012-06-13 Thread Claus Ibsen
On Wed, Jun 13, 2012 at 3:43 PM, anoordover wrote: > Can you explain how the cache level is shared among several war's? > I can not find any static fields that contain this level. > In what class can I find this? > > You can set it on the JmsComponent, so you need to set that in each WAR. But the

Re: classloading in jboss and activemq component

2012-06-13 Thread anoordover
Can you explain how the cache level is shared among several war's? I can not find any static fields that contain this level. In what class can I find this? -- View this message in context: http://camel.465427.n5.nabble.com/classloading-in-jboss-and-activemq-component-tp5714418p5714433.html Sent

Re: Camel annotations broken under JDK7?

2012-06-13 Thread Claus Ibsen
On Wed, Jun 13, 2012 at 3:07 PM, Emil wrote: > Hi Claus, > > Thanks for the quick reply! > > I took the latest snapshot of 2.10 and tested with that, and everything > seems to work as expected under JDK7. I must've missed the snapshot > availability, but I'll stick with that one. > > Camel 2.10 i

Re: Camel annotations broken under JDK7?

2012-06-13 Thread Emil
Hi Claus, Thanks for the quick reply! I took the latest snapshot of 2.10 and tested with that, and everything seems to work as expected under JDK7. I must've missed the snapshot availability, but I'll stick with that one. Thanks again, Emil -- View this message in context: http://camel.46542

Re: Camel annotations broken under JDK7?

2012-06-13 Thread Claus Ibsen
You need to use 2.10 to have JDK7 supported. So what version of Camel do you use? The annotations works fine for us, all the unit tests passes. As well the examples works. On Wed, Jun 13, 2012 at 2:36 PM, Emil wrote: > Hi Camel Users, > > In a proof of concept I was setting up on JDK7, I was h

Re: classloading in jboss and activemq component

2012-06-13 Thread Claus Ibsen
On Wed, Jun 13, 2012 at 12:58 PM, anoordover wrote: > I recall that allthough the classloading in camel 2.8 is resolved in camel > for JBoss that in that version of activemq there still remained an issue > with classloading in the activemq component. > I recall that there was an jira issue create

Camel annotations broken under JDK7?

2012-06-13 Thread Emil
Hi Camel Users, In a proof of concept I was setting up on JDK7, I was having major issues trying to get things to work under JDK7 (using Camel & Gigaspaces). I assumed at first that something was wrong with my routes, my annotations, my config etc, but after seeing the following on the Camel Jira;

Re: How to tirgger camel after inserting a row into a database?

2012-06-13 Thread James Carman
You can poll the database using the jpa component On Jun 13, 2012 7:54 AM, "semecamel" wrote: > I would like to know how I can trigger my route after inserting a row. My > situation is that I need to listen for insert after I need to generate hl7 > message. > > Any idea how to trigger route after

Re: Adding Dependencies in pom.xml

2012-06-13 Thread Achim Nierbeck
well, it's not really camel related, but do you have a maven artefact for the oracle driver, cause there is no official released oracle driver available on maven repositories (AFAIK) regards, Achim 2012/6/13 Subhanjan : > > > > I am creating a project which will have database at its back end. For

Adding Dependencies in pom.xml

2012-06-13 Thread Subhanjan
I am creating a project which will have database at its back end. For that I need ojdbc.jar. The problem is whenever I add ojdbc14.jar dependency and save in pom.xml (I use m2eclipse plugin) it gives me a weird error 'Missing artifact com.oracle:ojdbc14:jar:10.2.0.3.0:compile'. whenever I remove

How to tirgger camel after inserting a row into a database?

2012-06-13 Thread semecamel
I would like to know how I can trigger my route after inserting a row. My situation is that I need to listen for insert after I need to generate hl7 message. Any idea how to trigger route after database insert? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-tirgger-cam

Re: No hit during Multicast

2012-06-13 Thread kenhans
this is turning into a farce and I might end up being the stupidest kid on earth :-) Anyway, when aggregating, I do not seem to be able to fetch relevant data from neither the oldExchange nor the newExchange. I am not able to see any Exchange.TO_ENPOINT, and all headers I set within the bean or fi

classloading in jboss and activemq component

2012-06-13 Thread anoordover
I recall that allthough the classloading in camel 2.8 is resolved in camel for JBoss that in that version of activemq there still remained an issue with classloading in the activemq component. I recall that there was an jira issue created. Can anybody help me to find it. This issue is a blocker for

Re: No hit during Multicast

2012-06-13 Thread Claus Ibsen
On Wed, Jun 13, 2012 at 10:32 AM, kenhans wrote: > great, thanks. Would the AggreagtionStrategy work if I add > parallelProcessing > to the MulticastDefinition as well? Like this > > MulticastDefinition multicastDefinition = > route.multicast().*parallelProcessing().timeout(1).*onPrepare(new

Re: Split, filter, aggregate zero messages

2012-06-13 Thread Claus Ibsen
On Wed, Jun 13, 2012 at 9:52 AM, Gordienko, Max wrote: > Thank you Claus, > > > See the example with only splitter, where you dont need the aggregator > EIP > > I tried to do as you suggested > >from("direct:from") >.split(body().tokenize("\n"), new > ListAg

Re: No hit during Multicast

2012-06-13 Thread kenhans
great, thanks. Would the AggreagtionStrategy work if I add parallelProcessing to the MulticastDefinition as well? Like this MulticastDefinition multicastDefinition = route.multicast().*parallelProcessing().timeout(1).*onPrepare(new DocumentDeepClone()); -- View this message in context: htt

RE: Split, filter, aggregate zero messages

2012-06-13 Thread Gordienko, Max
Thank you Claus, > See the example with only splitter, where you dont need the aggregator EIP I tried to do as you suggested from("direct:from") .split(body().tokenize("\n"), new ListAggregationStrategy()) .filter(body().isNotEqualT