Re: trying several parameters of FileComponent...

2011-03-25 Thread Richard Kettelerij
Have you figured this out yet? If you upgrade to Camel 2.6 or higher you should have these classes (check the fisheye link for details). -- View this message in context: http://camel.465427.n5.nabble.com/trying-several-parameters-of-FileComponent-tp4089201p4264962.html Sent from the Camel - Users

Re: 2.7.0 changes

2011-03-25 Thread Richard Kettelerij
Thanks for reporting. Logs would be helpful - especially if debug logging is enabled - as would: - platform details: JDK version, OS, name and version of your container (if applicable) - your routes and configuration -- View this message in context: http://camel.465427.n5.nabble.com/2-7-0-change

2.7.0 changes

2011-03-25 Thread Jason Chaffee
I have an application that works fine in 2.6.0 and shutdowns in 2.7.0. The apps starts up and the routes start and then I see in the logs, ShutdownHook invoked. Does anyone have any ideas about this? I can send the logs if needed. Didn't want to flood the first email with them though. Jas

Re: split() not splitting

2011-03-25 Thread grafpoo
well, i figured it out. i was sending an array, from my processor bean, to split(). what i didn't know was that camel seems to be wrapping my array in an array of it's own. so i was just splitting that, which gave me back my original array, and caused me much sanity-doubting -- View this message i

Re: restlet component GET request and query string parameters

2011-03-25 Thread William Tam
The issue with setting queries in the request URI has been resolved. Please see https://issues.apache.org/jira/browse/CAMEL-3808 Regards. On 03/18/2011 10:18 AM, mat127 wrote: Hello, I am using the camel-restlet component to build a REST client calling some 3rd party application RESTful AP

Camel JCA

2011-03-25 Thread stuplarosa
I'm writing a JCA resource adapter for a proprietary protocol. This is an inbound JCA adapter that needs to receive the proprietary protocol, decode it, and invoke methods on EJBs. For other reasons, I have a Camel component for this protocol, so it seems logical to build an adapter by pairing it

JMS Listener - Listener exception overridden by rollback exception

2011-03-25 Thread ganiv
I am getting this error when i use camel routes to convert the xml messages to java objects. I am getting thsi exception when i start the application, ANy idea guys, whats going on here? Thanks . 12:02:01,137 [Camel (camel-1) thread #12 - JmsConsumer[indivdualElementQueue]] DEBUG JmsMessageListen

Re: type converter not loading

2011-03-25 Thread Scott England-Sullivan
If a project doesn't use Spring or Blueprint how do you create a CamelContext in an OSGi container programmatically? Thanks, Scott Scott England-Sullivan C. (217) 390-3058 H. (952) 440-4568 Sent from my iPhone On Mar 25, 2011, at 1:05 PM, Claus Ibsen wrote: > On Fri, Mar 25, 2011 at 3:52 PM

Re: ProducerTemplate and cponnent camel-sql

2011-03-25 Thread Claus Ibsen
On Tue, Mar 22, 2011 at 6:36 PM, Charles Moulliard wrote: > Is there a way to configure the camel producerTemplate in a bean to > use the SQL component configured in spring XML file > Yep you can annotate the ProducerTemplate field with @Produce and then put in the endpoint uri. Then you just use

Re: InOut over JMS always leads to Timout (ExchangeTimedOutException)

2011-03-25 Thread Claus Ibsen
As always when passing messages over JMS make sure the clock is synced between the boxes. There is a timestamp plugin for AMQ which can help http://activemq.apache.org/timestampplugin.html On Mon, Mar 21, 2011 at 8:45 PM, Mike L. wrote: > All: > > I have been trying to take advantage of the In

Re: type converter not loading

2011-03-25 Thread Claus Ibsen
On Fri, Mar 25, 2011 at 3:52 PM, Donald Whytock wrote: > Okay.  Where is the OSGi version?  Is that in a different jar? > Yes camel-spring if using spring-dm camel-blueprint if using blueprint -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.co

Re: choice when check BodyType:null, Body:null

2011-03-25 Thread Claus Ibsen
On Fri, Mar 25, 2011 at 4:12 PM, Eric East wrote: > Thanks for confirming issue.   I thought it may be in my environment/test > cases. You can use .setBody(constant(null)) in the DSL which works properly. > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/choic

Re: Streaming huge EDI file with camel

2011-03-25 Thread Charles Moulliard
Hi Claus, Have you tried to split (if possible) and uses streams option afte the from(file) component from("file:target/inventory") .split(body().tokenize("\n")).streaming() Regards, Charles Moulliard Sr. Principal Solution Architect - FuseSource Apache Committer Blog : http://cmoulliard.blog

Streaming huge EDI file with camel

2011-03-25 Thread Claus Straube
Hi all. I've posted this on the smooks list, but there was nobody who could give me a hint... I'm trying to transform a huge edi file to xml. For reading the file I'm using camel. Here is my route: from("file://target/in?noop=true") .to("smooks://src/main/resources/smooks-config.xml") .to(

Re: choice when check BodyType:null, Body:null

2011-03-25 Thread Eric East
Thanks for confirming issue. I thought it may be in my environment/test cases. -- View this message in context: http://camel.465427.n5.nabble.com/choice-when-check-BodyType-null-Body-null-tp4259599p4264301.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: DSL Parser

2011-03-25 Thread Lansing, William Jeff
It looks like the answer is maybe yes. The original idea I think was to treat the (or a subset of the) Java DSL as if it were just a routing script language. But some other scripting language, or even -- as suggested -- XML could be just as effective. The use case is to dynamically set up, paus

Re: type converter not loading

2011-03-25 Thread Donald Whytock
Okay. Where is the OSGi version? Is that in a different jar? On Fri, Mar 25, 2011 at 8:45 AM, Claus Ibsen wrote: > Yeah you need to use the Osgi version of CamelContext. > > But generally is much much easier to just use Apache Karaf (or > ServiceMix) and features to use Camel with OSGi. > > > O

RE: message/exchange identification

2011-03-25 Thread BERTRAND Antoine AWL-IT
Thanks a lot. But, when the messageID is setted (maybe it's possible to use it)? -Original Message- From: Björn Bength [mailto:bjorn.ben...@gmail.com] Sent: Thursday 24 March 2011 16:14 To: users@camel.apache.org Subject: Re: message/exchange identification Hi, This is a method that ma

Re: Exchange.MAXIMUM_CACHE_POOL_SIZE is not affecting producers created by recipientList

2011-03-25 Thread Marco Crivellaro
this affects 2.7.0 release too -- View this message in context: http://camel.465427.n5.nabble.com/Exchange-MAXIMUM-CACHE-POOL-SIZE-is-not-affecting-producers-created-by-recipientList-tp4257273p4264057.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel doesn't listen to JMS channel

2011-03-25 Thread ctapobep
I've replaced Spring's CachingConnectionFactory with my own implementation that simply takes Solace implementation and triggers its method: protected Connection doCreateConnection() throws JMSException { try { return factory.createTopicConnection(); } catch (MessageC

Re: type converter not loading

2011-03-25 Thread Claus Ibsen
Yeah you need to use the Osgi version of CamelContext. But generally is much much easier to just use Apache Karaf (or ServiceMix) and features to use Camel with OSGi. On Fri, Mar 25, 2011 at 1:01 PM, Donald Whytock wrote: > Is this a recent change?  I was able to use it with > camel-core-2.4.0.

Re: message/exchange identification

2011-03-25 Thread Björn Bength
That depends on what level you want correlation and your use case, of course. For instance, we have a set of "outer" containers dispatching requests to one or more "inner containers" through jms or http. And for that, propagating headers is necessary. With that simple logic, it's easy for us to cor

Re: type converter not loading

2011-03-25 Thread Donald Whytock
Is this a recent change? I was able to use it with camel-core-2.4.0.jar. This stacktrace is a result of changing to camel-core-2.6.0.jar. The code is: import org.apache.camel.impl.DefaultCamelContext; public class ContextUtil { static org.apache.camel.CamelContext context = null; static

Re: message/exchange identification

2011-03-25 Thread Alfred Hiebl
Hi, I think you have to set your correlation Id as exchange property, not as header property to make this work. And, as far as I understand, Camel already provides the CamelExchangeId in the exchange properties. Whenever the route creates new exchange objects (e.g. after splits), the original Exc

Re: choice when check BodyType:null, Body:null

2011-03-25 Thread Claus Ibsen
On Fri, Mar 25, 2011 at 11:44 AM, Claus Ibsen wrote: > On Fri, Mar 25, 2011 at 3:42 AM, Tim wrote: >> so based on the cause of that bug, it is impossible to set the body of >> a jms message to null even if it was transformed earlier. >> So for example if you had: >> > > Its not a bug, thats how i

Re: Camel doesn't listen to JMS channel

2011-03-25 Thread Ashwin Karpe
Hi, Can you use a processor bean rather than using the JMS component. It seems from your description above (own format of messages ) that the implementation may not be fully JMS compliant. My sense is that the JMS handshake is not being complied to in this case... Can you verify that if you use

Re: Camel doesn't listen to JMS channel

2011-03-25 Thread ctapobep
Tried Apache MQ with via its VM protocol - it works.. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-doesn-t-listen-to-JMS-channel-tp4263097p4263859.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: choice when check BodyType:null, Body:null

2011-03-25 Thread Claus Ibsen
On Fri, Mar 25, 2011 at 3:42 AM, Tim wrote: > so based on the cause of that bug, it is impossible to set the body of > a jms message to null even if it was transformed earlier. > So for example if you had: > Its not a bug, thats how it was designed. Its very unusual to route null messages. You s

Re: DSL Parser

2011-03-25 Thread Claus Ibsen
On Fri, Mar 25, 2011 at 11:01 AM, wrote: > Hi, > > maybe it would be helpful to share what is your usecase for such > functionality.  I suppose you have already considered > http://camel.apache.org/dynamic-router.html and the Camel WebConsole > proposed. > > Technically speaking such parser code

Re: DSL Parser

2011-03-25 Thread mitko . kolev
Hi, maybe it would be helpful to share what is your usecase for such functionality. I suppose you have already considered http://camel.apache.org/dynamic-router.html and the Camel WebConsole proposed. Technically speaking such parser code exists for the Spring DSL[2] and for the Java DSL it

Re: Camel doesn't listen to JMS channel

2011-03-25 Thread Christian Schneider
Hi, you could also try to change the connection factory to ActiveMQ and leave the rest in place. If that works then the problem is with your jms provider. If it does not work then it must be in the camel config. Christian Am 25.03.2011 10:16, schrieb ctapobep: At last I've found some diffe

Re: Camel doesn't listen to JMS channel

2011-03-25 Thread ctapobep
At last I've found some differents in log (I've switched on TRACE). This line is always present and periodically appears again and again: 2011-03-25 11:14:28,157[][TRACE][fs/notifications][.jms.JmsMessageListenerContainer] - Consumer [Cached JMS MessageConsumer: com.solacesystems.jms.SolTopicSubscr

Re: DSL Parser

2011-03-25 Thread Willem Jiang
Camel WebConsole[1] supports to update the camel route dynamically. You may take a look at it. [1]http://camel.apache.org/web-console.html Willem On 3/25/11 6:37 AM, Lansing, William Jeff wrote: A while ago I read a suggestion to the effect that it would be nice if routes could be declared

Re: type converter not loading

2011-03-25 Thread Willem Jiang
Hi How did you start the DefaultCamelContext ? You can not use it directly in OSGi, you may consider to use CamelContextFactory instead. Willem On 3/25/11 5:59 AM, Donald Whytock wrote: Running Camel in an OSGi environment under Felix, with camel-core-2.6.0.jar as a bundle. I'm getting a st

Re: Camel doesn't listen to JMS channel

2011-03-25 Thread ctapobep
The broker is Solace firmware. It has its own format of messages, and in the same time it provides a means to use JMS API (I presume it converts its format to JMS somehow), thus I really doubt it uses Spring in any way. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-does

Re: Camel doesn't listen to JMS channel

2011-03-25 Thread Willem Jiang
Can you try to make sure the broker is working by using some JMS API or using Spring JMS to test it? It will help us to do the trouble shooting. On 3/25/11 5:31 AM, ctapobep wrote: Though after posting this I've tried couple of other times and seems like this log is always present, so it's not