Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-07 Thread Charles Moulliard
Hi Kevin, I don't see any bundles concerning MySQL or Hibernate. Can you send me what you have in the log for the last bundles 108 - 113 ? I see that some of them are in status "Resolved". So information of the log will help us [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: co

Re: Camel in existing webapp

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 4:35 AM, Ole Jørgensen wrote: > > Im new to Camel and wonder if I can use it for what Im doing. Welcome on the ride. > > I have a existing spring webapplication with a servlet context. > > jdk1.6.0_11 > tomcat-6.0.18 > spring-framework-2.5.6 > > Part of its job is to take us

Re: Error using Transacted with Camel 2.0

2009-07-07 Thread Charles Moulliard
Hi, I don't know If I'm wrong or not but I try to configure only spring/hibernate with Geronimo Transaction Manager in Apache Felix Karaf but it does not work. Here is the config. 1) Hibernate / Spring / Geronimo A) Hibernate / Spring config classpath*:META-INF/com

Re: CamelContext No Longer Auto-Wires Via Package Element?

2009-07-07 Thread Claus Ibsen
Hi Can you try SNAPSHOT as we have fixed an issue with RouteBuilders not being fully post processed by Spring. See CAMEL-1663. On Mon, Jul 6, 2009 at 11:26 PM, tfredrich wrote: > > We recently upgraded from Camel-M1 to Camel-M2.  Using Spring XML to > configure the context using the package elem

Re: JMS correlation ID

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 2:03 AM, rogster wrote: > > Hi, > > I'm trying to do something simple, but can't seem to get it to work.  I have > a route like this: > > > > > > I turned on tracing and I see the that a message was successfully recieved > from the my service listening on activemq:myqueue,

Re: Cross-context "direct" component?

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 12:41 AM, Christopher Hammack wrote: > > Hi > > Are there any plans to add a "direct" component that works across camel > contexts (e.g. similiar to vm:// vs seda://)? You can use the vm for that in 2.0m2+ as it will wait for reply, eg being synchronous when needed. > >

Apache Felix Karaf must be restarted to remove lock on a file consumed in a camel route

2009-07-07 Thread Charles Moulliard
Hi, If for any reason, the message (= file) consumed from a File endpoint cannot be processed (e.g transaction not committed from a bean), than the lock on the file is not removed even if I stop the bundle and Apache Karaf must be restarted to remove/delete the lock Regards, Charles Moulliard Se

Re: JMS correlation ID

2009-07-07 Thread Willem Jiang
HI, You can set the Message Exchange Pattern from the JBI endpoint URI. such as "jbi:service:urn:com.myservice:ServiceA?mep=in-out" "jbi:service:urn:com.myservice:ServiceA?mep=in“ Willem Claus Ibsen wrote: On Tue, Jul 7, 2009 at 2:03 AM, rogster wrote: Hi, I'm trying to do something simple,

Re: Still problems with InOut JMS

2009-07-07 Thread Claus Ibsen
Hi When you take charge of listening for the JMSReplyTo queue and sending back a response then you should *not* use InOut So change .inOut to .inOnly This works on my laptop public void configure() throws Exception { from("activemq:queue:hello")

Re: Still problems with InOut JMS

2009-07-07 Thread Claus Ibsen
I'm adding your unit test to camel-jms with the modification about inonly. On Tue, Jul 7, 2009 at 11:30 AM, Claus Ibsen wrote: > Hi > > When you take charge of listening for the JMSReplyTo queue and sending > back a response then you should *not* use InOut > > So change .inOut to .inOnly > > This

Re: Best Way Of Sending Messages To A Camel Context

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 6:14 AM, Carlo Camerino wrote: > Hi, > > I was just wondering on what is the best way to approach this. I have two > applications. One is a web application and another one is an application > running a camel context. > Given this, I want my web application to commuinicate to

id() in Java dsl

2009-07-07 Thread siva naresh
Hi all, I am trying to set ids on every endpoint in the following way. But this seems to set ids on the entire route and not on the endpoint. from("file://C:/Debug/from").id("File_0").to("file://C:/test").id("File_1"); How do I set ids on every point in Java dsl? The same is achieved in

Re: id() in Java dsl

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 12:58 PM, siva naresh wrote: > > Hi all, > >      I am trying to set ids on every endpoint in the following way. >  But this seems to set ids on the entire route and not on the endpoint. > > from("file://C:/Debug/from").id("File_0").to("file://C:/test").id("File_1"); > > How

Re: id() in Java dsl

2009-07-07 Thread siva naresh
I tried using both 1.5 and 1.6. The result is the same. Claus Ibsen-2 wrote: > > On Tue, Jul 7, 2009 at 12:58 PM, siva naresh wrote: >> >> Hi all, >> >>      I am trying to set ids on every endpoint in the following way. >>  But this seems to set ids on the entire route and not on the endpoint.

Re: Apache Felix Karaf must be restarted to remove lock on a file consumed in a camel route

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 10:10 AM, Charles Moulliard wrote: > Hi, > > If for any reason, the message (= file) consumed from a File endpoint cannot > be processed (e.g transaction not committed from a bean), than the lock on > the file is not removed even if I stop the bundle and Apache Karaf must be

Re: JMS correlation ID

2009-07-07 Thread rogster
Sorry about the lack of detail. I've tried the example on version 1.5 and 1.6 with the same results. The message exchange pattern is inout (the jbi client should block until it receives a response, also the call to activemq is synchrounous). Claus Ibsen-2 wrote: > > On Tue, Jul 7, 2009 at

Re: id() in Java dsl

2009-07-07 Thread James Strachan
2009/7/7 siva naresh : > > Hi all, > >      I am trying to set ids on every endpoint in the following way. >  But this seems to set ids on the entire route and not on the endpoint. BTW you had me confused a bit there. At first read I thought you wanted to do the XML equivalent of i.e. really to

Re: id() in Java dsl

2009-07-07 Thread siva naresh
The ids are important to identify the endpoint to a front end tooling system. Using the camel naming system. we get null ids for all the endpoints in the multicast case for example from("file://C:/Debug/from").multicast().to("file://C:/from","file://C:/from1","file://C:/from2"); Same is the c

Re: id() in Java dsl

2009-07-07 Thread Oisin Hurley
>>> from("file://C:/Debug/from").id("File_0").to("file://C:/test").id("File_1"); This is a pretty cumbersome usage and it kind of clutters up the Java for the route - but having ids on the various bits of the pipeline is really very useful if you are debugging, or if you are visualizing the overal

Re: id() in Java dsl

2009-07-07 Thread James Strachan
2009/7/7 Oisin Hurley : from("file://C:/Debug/from").id("File_0").to("file://C:/test").id("File_1"); > > This is a pretty cumbersome usage and it kind of clutters up the Java > for the route - but having ids on the various bits of the pipeline is really > very useful if you are debugging, or i

Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-07 Thread Kevin.Zhang
Hi Charles, I just uploaded the log file. Please take a look and let me know if you need more information. Thanks a lot, Kevin cmoulliard wrote: > > Hi Kevin, > > I don't see any bundles concerning MySQL or Hibernate. > > Can you send me what you have in the log for the last bundles 108 -

Re: id() in Java dsl

2009-07-07 Thread James Strachan
2009/7/7 siva naresh : > > The ids are important to identify the endpoint to a front end tooling system. > > Using the camel naming system. we get null  ids for all the endpoints in the > multicast case for example. An even easier fix then, replace the code which does someNode.getId() with some

Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-07 Thread Charles Moulliard
Hi, I see in the log that some important bundles have not been installed : 1) Hibernate is not installed 09:21:20,016 | ERROR | Thread-5 | FeaturesServiceImpl | s.internal.FeaturesServiceImpl$1 380 | Error installing boot feature reportincident org.osgi.framework.BundleExce

Re: Cross-context "direct" component?

2009-07-07 Thread Christopher Hammack
How does it determine whether synchronous or asynchronous is appropriate? Example, given these routes: The behavior I want is that barBean is executed, then in the same thread, synchronously, I want fooBean to be executed. Essentially "stage2"

Re: Apache Felix Karaf must be restarted to remove lock on a file consumed in a camel route

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 10:10 AM, Charles Moulliard wrote: > Hi, > > If for any reason, the message (= file) consumed from a File endpoint cannot > be processed (e.g transaction not committed from a bean), than the lock on > the file is not removed even if I stop the bundle and Apache Karaf must be

Re: Apache Felix Karaf must be restarted to remove lock on a file consumed in a camel route

2009-07-07 Thread Claus Ibsen
Hi Charles I am fixing it now. See CAMEL-1808 https://issues.apache.org/activemq/browse/CAMEL-1808 Then the default settings for file will not use java FileLock anymore. On Tue, Jul 7, 2009 at 10:10 AM, Charles Moulliard wrote: > Hi, > > If for any reason, the message (= file) consumed from a Fi

Re: Cross-context "direct" component?

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 4:30 PM, Christopher Hammack wrote: > > How does it determine whether synchronous or asynchronous is appropriate? > > Example, given these routes: > > >         >         > > > >         >         >         > > > The behavior I want is that barBean is executed, then in th

Re: id() in Java dsl

2009-07-07 Thread siva naresh
someNode.getId() is called during debug interceptor call and it should be returning whatever was set for that node during initialization of camelcontext. Siva Naresh. James.Strachan wrote: > > 2009/7/7 siva naresh : >> >> The ids are important to identify the endpoint to a front end too

Re: id() in Java dsl

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 4:47 PM, siva naresh wrote: > > someNode.getId() is called during debug interceptor call and it should be > returning whatever was set for that node during initialization of > camelcontext. > Hi Let me add an unit test in the Java DSL that sets some custom ids. And see if I

Re: Apache Felix Karaf must be restarted to remove lock on a file consumed in a camel route

2009-07-07 Thread Claus Ibsen
Hi Charles if you have the time. Can you try reproduce the bug/issue with the latest code from SVN? I have committed a fix for this. On Tue, Jul 7, 2009 at 4:43 PM, Claus Ibsen wrote: > Hi > > Charles I am fixing it now. See CAMEL-1808 > https://issues.apache.org/activemq/browse/CAMEL-1808 > >

Re: id() in Java dsl

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 4:53 PM, Claus Ibsen wrote: > On Tue, Jul 7, 2009 at 4:47 PM, siva naresh wrote: >> >> someNode.getId() is called during debug interceptor call and it should be >> returning whatever was set for that node during initialization of >> camelcontext. >> > Hi > > Let me add an uni

Re: id() in Java dsl

2009-07-07 Thread James Strachan
2009/7/7 siva naresh : > > someNode.getId() is called during debug interceptor call and it should be > returning whatever was set for that node during initialization of > camelcontext. We can just change that to use someNode.idOrCreate() which will only associate a new ID if there was not one expl

Re: JMS correlation ID

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 3:17 PM, rogster wrote: > > Sorry about the lack of detail.  I've tried the example on version 1.5 and > 1.6 with the same results.  The message exchange pattern is inout (the jbi > client should block until it receives a response, also the call to activemq > is synchrounous)

Re: Have anybody here tried the tutorial-osgi-camel-part2?

2009-07-07 Thread Kevin.Zhang
Hi Charles, I downloaded dom4j and ran "mvn" command. It seems that it's still not working. Below is the repository list for dom4j. C:\Documents and Settings\chzhang\.m2\repository>dir /s *dom4j* Volume in drive C has no label. Volume Serial Number is D051-6A60 Directory of C:\Documents an

Re: Cross-context "direct" component?

2009-07-07 Thread Christopher Hammack
Hi Claus, Thanks for taking the time to reply. I just took a look at the code on the trunk. Unfortunately, the seda with waitForTaskToComplete is not equivalent to what I described earlier. The seda endpoint is still performing polling, acting on a separate thread for the second route. The o

Re: CamelContext No Longer Auto-Wires Via Package Element?

2009-07-07 Thread tfredrich
Hi Claus, Thanks for your reply. I downloaded and tried with the snapshot dated Tue Jul 07 17:52:26 GMT+00:00 2009. I got no love... :-( The SpringInjector is still attempting to instantiate the route builders using the default constructor instead of auto-wiring using the constructor that take

Re: Still problems with InOut JMS

2009-07-07 Thread Eric Bouer
OK Claus, here is what I've got after trying against revision 791824 I'm using this unit test: http://pastebin.com/m1138eec9 http://pastebin.com/m1138eec9 The mock is satisfied BUT I get this exception right before the test ends: JmsProducer:235 - Future timed out: java.util.concurrent.TimeoutEx

classNotFoundException when invoking listener to weblogic jms Q

2009-07-07 Thread vvchoy
Hi, This is my first project in camel where I set up a very simple route from a weblogic jms Q to a file. My RouteBuilder.java file has the following entry: from("webLogicQ:queue:PaJmsInboundSever/com.mdsi.port.paJms.defaultCISO.Req1Queue?CacheLevelName=CACHE_NONE") .to("file://soiTest

Re: classNotFoundException when invoking listener to weblogic jms Q

2009-07-07 Thread Willem Jiang
Hi, Can you just start stand alone camel context without servicemix ? From the stack trace , I don't know why it will throw a CORBA related exception. Willem vvchoy wrote: Hi, This is my first project in camel where I set up a very simple route from a weblogic jms Q to a file. My RouteBuild

Re: id() in Java dsl

2009-07-07 Thread siva naresh
from("direct:start").id("A") .to("log:foo").id("B") .to("mock:result").id("C"); shows a compile error : Method to(String) is undefined for the type OperationalIdentifiedType . I am not sure how you were able to run it. Claus Ibsen-2 wrote: > > On Tue, J

Re: CamelContext No Longer Auto-Wires Via Package Element?

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 11:58 PM, tfredrich wrote: > > Hi Claus, > > Thanks for your reply.  I downloaded and tried with the snapshot dated Tue > Jul 07 17:52:26 GMT+00:00 2009.  I got no love... :-( > > The SpringInjector is still attempting to instantiate the route builders > using the default con

Re: id() in Java dsl

2009-07-07 Thread Claus Ibsen
On Wed, Jul 8, 2009 at 7:28 AM, siva naresh wrote: > > from("direct:start").id("A") >                    .to("log:foo").id("B") >                    .to("mock:result").id("C"); > > shows a compile error : Method to(String) is undefined for the type > OperationalIdentifiedType . > I am not sure how

Re: Cross-context "direct" component?

2009-07-07 Thread Claus Ibsen
On Tue, Jul 7, 2009 at 6:00 PM, Christopher Hammack wrote: > > Hi Claus, > > Thanks for taking the time to reply. Hi Feel free to create a JIRA ticket for your request. And as you know we love contributions so if you got the skills to look into the code you got the skills to try attempt a patch wi