Re: log4j.properties in camel

2011-08-22 Thread bvahdat
Hi Willem, thanks for your feedback. Imagine your are working on a patch and there you do some LOGGER.trace() , debug(), info() etc. Wouldn't you prefer to see your *new* log statements directly in your IDE while unit-testing *your* changes to verify if the patch's log entries seem as you expect

Re: Teach a man to fish ..

2011-08-22 Thread julian+activ...@dotr.com
we have (limited) success !! Thanks very much - I can now receive plain text emails from google. 1) I had to download the springsource framework and put all of the .jar files into the "optional" directory as well 2) some of the demo parameters have changed since camel 2.0. These include "deleteP

Re: log4j.properties in camel

2011-08-22 Thread Willem Jiang
Hi I'm only care about the log when there are some thing is wrong or the test is failed. So I'm OK to store the log in the file. If you are working on the application code which use camel as a lib, you can always override the log4j.properties in your application. Willem On 8/23/11 2:17 PM, b

Re: i use wsdl file and payload dataFormat, but IllegalArgumentException

2011-08-22 Thread xiangqiuzhao
thanks, i had make mistake with the namespace, so i debug it in cxf endpoint with the exception. and my code like: DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); Document doc = factory.newDocumentBuilder().parse("D:/

Re: log4j.properties in camel

2011-08-22 Thread bvahdat
Hi Ben, thanks for your reply. To make it concrete, the pluginManagment entry in [1] would be something like: ... ... org.apache.maven.plugins maven-surefire-plugin true true ... ... And for example in the case of camel-core, the change in [2] would be *out

Re: Trying to set fixed length bindy type data formatter in RouteBuilder.

2011-08-22 Thread Claus Ibsen
Hi On Tue, Aug 23, 2011 at 5:05 AM, deloughry wrote: > Is there a way to indicate a fixed length bindy type in > RouteBuilder.configure? Similar to - > >        public void configure() throws Exception { > >                from("file://target/inbox2") >                                .unmarshal()

Re: MBean Runtime Exception in getRoutePolicyList

2011-08-22 Thread Claus Ibsen
On Mon, Aug 22, 2011 at 10:40 PM, Karthz wrote: > Also, does anybody know what the actual issue was and if there are any > implications to it, if we do not upgrade to the latest version? > > We haven't seen any message failures due to this issue though. > There is absolutely no problem with that.

Re: log4j.properties in camel

2011-08-22 Thread boday
I haven't tried your approach myself, but I agree that being able to see the output in the IDE console is ideal. I just modify the log4j.properties file locally (and ignore it from SVN) to do this...but would be nice to avoid doing this if possible... bvahdat wrote: > > Hi, > > while running t

cxfrs response headers

2011-08-22 Thread bird bird
Hi all. How do I set response headers when implementing REST using the CXFRS component. I am new and learning camel by developing a small bundle for my own use. I have developed services which return XML (from the exchange body) when the requests cannot be serviced I use the class javax.ws.rs.co

Using a drools server in a route?

2011-08-22 Thread dunnlow
First, I'm pretty new to camel (and drools) and this question teeters between the two. I've combed the Drools forum for an answer to this question, but the discussions there relate more to using camel within drools - they are not camel centric. So, my question: I'm trying to find out the best be

Re: CXF can't set the holder object into the message content list of the out message

2011-08-22 Thread Willem Jiang
Hi, It looks like your route doesn't consume the parameter of the message body from the camel-cxf consumer, and the CXF HolderOutInterceptor complains about it. You may need to set the response message in the MappingProcessor or add another processor after the wrieTap(INPUT_TAP). On 8/23/1

Re: MBean Runtime Exception in getRoutePolicyList

2011-08-22 Thread Karthz
Also, does anybody know what the actual issue was and if there are any implications to it, if we do not upgrade to the latest version? We haven't seen any message failures due to this issue though. Thanks. - - Karthz -- View this message in context: http://camel.465427.n5.nabble.com/MBean-R

Re: MBean Runtime Exception in getRoutePolicyList

2011-08-22 Thread Karthz
We are using v2.7.1. Do you remember in which version this was fixed? Thanks. - - Karthz -- View this message in context: http://camel.465427.n5.nabble.com/MBean-Runtime-Exception-in-getRoutePolicyList-tp4717413p4724530.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Transaction performance - use of batches?

2011-08-22 Thread Viju
Thanks for the direction , Travis. I was pretty much using the same configuration you mentioned except the cache_connection option. Still, the worry is the considerable difference between transactional clients and non transactional clients, in my case, non transactional are 5 times faster than tran

Re: Camel Transaction performance - use of batches?

2011-08-22 Thread Viju
Thanks for the direction , Travis. I was pretty much using the same configuration you mentioned except the cache_connection option. Still, the worry is the considerable difference between transactional clients and non transactional clients, in my case, non transactional are 5 times faster than tran

Re: Multicast Aggregation Exception Handling

2011-08-22 Thread kcostilow
Answering my own question #2, because I found a workaround: Setting exception to null in aggreate() passes the unit test: public Exchange aggregate(Exchange oldExchange, Exchange newExchange) { Throwable t = newExchange.getProperty(Exchange.EXCEPTION_CAUGHT, Throwable.class);

Multicast Aggregation Exception Handling

2011-08-22 Thread kcostilow
I'm trying to catch exceptions in each of my multicast processors, log it, and continue on. I've learned from this forum that onException() is not the way to go, because it applies to the entire route and not just to the multicast portion, fine. So from the camel docs I discovered I could impleme

CXF can't set the holder object into the message content list of the out message

2011-08-22 Thread Mick Knutson
I am trying to modify the cxf example in the camel source to write the contents of the incoming CXF request object to a file: public static final String INPUT_TAP = "seda:tap"; public static final String WRITE_TO_FILE = "direct:writeToFile"; public static final String PROCESSED_FILE_DIR =

RE: JMS Websphere MQ Error - MQJE001: Completion Code 2, Reason 2027

2011-08-22 Thread Mathieu Lalonde
Hi, I've run into a similar problem before: We were receiving MQ request messages (meant for InOut exchanges) even though we were disabling the replyTo and expected MQ datagram messages (InOnly). The incoming JMS headers had an IBM-specific header set to indicate the message type and we were

Re: Camel Runtime Management : Exchange Load

2011-08-22 Thread Claus Ibsen
On Mon, Aug 22, 2011 at 3:56 PM, christian.ohr wrote: > Claus, in fact I agree with your concern. I would e.g. never keep historic > data, calculate trends etc. within Camel, or more generally, observing > runtime data and derive "higher-order" information from it. > The load statistic I have in m

Re: Camel Transaction performance - use of batches?

2011-08-22 Thread Travis Klotz
I haven't worked with batches, but I did just spend a bunch of time working with setting up Local JMS Transactions with ActiveMQ and Camel. The big things I found were: * Make sure you turn the prefetch policy down to zero if you are consuming messages across different machines. You can do this

log4j.properties in camel

2011-08-22 Thread bvahdat
Hi, while running the camel's own test cases one can't see the logs directly in his IDE as always the 'org.apache.log4j.FileAppender' is used/active in log4j.properties under camel-xyz/src/test/resources/log4j.properties. So you always have to switch from your IDE to the redirected outputs in targ

Re: Choice always return turn in first test [SOLVED]

2011-08-22 Thread garrydias
Yeah.. it works.. thank you so much.. but I tryed to access the map with [key] and did not work.. so, I think it worked fine but I didn´t pay attention... sorry spend your time.. at least, now I know that I can use the quotes in 2.9 ;) thanks -- View this message in context: http://camel.4654

Re: Corba component

2011-08-22 Thread diwakar
Hi, Thanks for the comments. We will check cxf component. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Corba-component-tp4722230p4723426.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Runtime Management : Exchange Load

2011-08-22 Thread christian.ohr
Claus, in fact I agree with your concern. I would e.g. never keep historic data, calculate trends etc. within Camel, or more generally, observing runtime data and derive "higher-order" information from it. The load statistic I have in mind is pretty basic, fast to calculate (thousands of updates in

Re: camel-testng: Start debugger with CamelSpringTestSupport

2011-08-22 Thread Claus Ibsen
Hi Thanks for digging into this. Feel free to create a JIRA ticket and attach your sample project etc. On Mon, Aug 22, 2011 at 10:36 AM, Andreas Kuhtz wrote: > Hi Claus, > > It's not working with JUnit4 either but I found the problem: The camel > context is started too early. > > The system pr

Re: Choice always return turn in first test

2011-08-22 Thread Claus Ibsen
On Mon, Aug 22, 2011 at 8:44 AM, Claus Ibsen wrote: > On Sat, Aug 20, 2011 at 11:39 PM, garrydias wrote: >> In my code, setters n getterns are ommited... I already have getProperty >> method =/ >> >> >> i havn´t tried this: >> ${in.body.property.get[key]} >> >> can it works?? >> > Hi I just add

Re: Injecting "file:" filter via Guice

2011-08-22 Thread Willem Jiang
You can find my unit test here[1] [1]http://svn.apache.org/viewvc?rev=1160189&view=rev On 8/22/11 9:21 PM, darkAR wrote: I'll give it a whirl - thanks for your reply!!! -- View this message in context: http://camel.465427.n5.nabble.com/Injecting-file-filter-via-Guice-tp4705927p4723397.html Se

Re: Injecting "file:" filter via Guice

2011-08-22 Thread darkAR
I'll give it a whirl - thanks for your reply!!! -- View this message in context: http://camel.465427.n5.nabble.com/Injecting-file-filter-via-Guice-tp4705927p4723397.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: two way communication with TCP server using Netty

2011-08-22 Thread Namaste Reid
I do not believe the port is already taken as I am able to connect and communicate at this address and on this port using java.net.Socket. I have worked around this issue by implement a custom Camel component that uses java.net.Socket and bypasses Netty completely. I believe this is a limitation of

Re: two way communication with TCP server using Netty

2011-08-22 Thread Ashwin Karpe
Hi, Based on the error, it seems that the port in question is already taken by the another process and hence you cannot seem to set up a netty tcp consumer against the given port. Can you try another port. Cheers, Ashwin... - - Ashwin

Re: Injecting "file:" filter via Guice

2011-08-22 Thread Willem Jiang
Hi, I just wrote a simple test to reproduce the error, and found out current GuiceCamelContext doesn't take JndiBind as a part of registry element itself. You have to create the jndi context yourself like this[1]. [1]http://code.google.com/p/guiceyfruit/wiki/JNDI On 8/17/11 5:42 AM, darkAR w

Re: Camel Transaction performance - use of batches?

2011-08-22 Thread Viju
Can someone please help or provide pointers ? The documentation indeed talks about batches but cant see how is it feasible using camel batching? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Transaction-performance-use-of-batches-tp4720389p4723156.html Sent from the C

Re: inProgressRepository not cleaned in GenericFileEndpoint ?

2011-08-22 Thread aurelienmasse
I'm using 2.8.0 -- View this message in context: http://camel.465427.n5.nabble.com/inProgressRepository-not-cleaned-in-GenericFileEndpoint-tp4722713p4723151.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: inProgressRepository not cleaned in GenericFileEndpoint ?

2011-08-22 Thread Claus Ibsen
On Mon, Aug 22, 2011 at 2:03 PM, aurelienmasse wrote: > Hello Claus ! > > thanks for the quick answer. > > I've changed the code to use a consumerTemplate instead of a > pollingConsumer, so as to use the doneUoW method. So the changed code is : > > String uri = buildFullUri(baseUrl, fileName); > >

Re: inProgressRepository not cleaned in GenericFileEndpoint ?

2011-08-22 Thread aurelienmasse
Hello Claus ! thanks for the quick answer. I've changed the code to use a consumerTemplate instead of a pollingConsumer, so as to use the doneUoW method. So the changed code is : String uri = buildFullUri(baseUrl, fileName); ConsumerTemplate template = exchange.getContext().createConsumerTempla

Re: Scheduling the file component to only process at specific intervals

2011-08-22 Thread Ashwin Karpe
Hi, Have you checked out the SceduleRoutePolicy in Camel. http://camel.apache.org/simplescheduledroutepolicy.html http://camel.apache.org/simplescheduledroutepolicy.html http://camel.apache.org/cronscheduledroutepolicy.html http://camel.apache.org/cronscheduledroutepolicy.html This should all

Re: Scheduling the file component to only process at specific intervals

2011-08-22 Thread Claus Ibsen
On Mon, Aug 22, 2011 at 11:38 AM, Gert Villemos wrote: > I'm using an omnipotent file component to read through a potentially very > large directory structure (days of processing). > > To limit the load of the system and not interfere with existing systems, I > would like to limit the time that th

Re: inProgressRepository not cleaned in GenericFileEndpoint ?

2011-08-22 Thread Claus Ibsen
Ah read the javadoc of the consumer template, the doneUoW http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ConsumerTemplate.html We should actually add same details to the PollingConsumer API javadoc. Since you return an Exchange you need to manually done its UoW when you

Re: inProgressRepository not cleaned in GenericFileEndpoint ?

2011-08-22 Thread aurelienmasse
I'm using the released version 2.8.0 Below is a code snippet of what i'm currently doing : String uri = buildFullUri(baseUrl, fileName); GenericFileEndpoint endpoint = (GenericFileEndpoint) exchange.getContext().getEndpoint(uri); PollingConsumer consumer = endpoint.createPollingConsumer(); co

Re: inProgressRepository not cleaned in GenericFileEndpoint ?

2011-08-22 Thread Claus Ibsen
On Mon, Aug 22, 2011 at 11:22 AM, aurelienmasse wrote: > Hi > > I've got a use case where i need to enrich a message by polling a FTP server > so as to get files like "request_1.xml", "request_2.xml", etc. > This FTP server acts as a resource provider, and i want to be able to get > the appropriat

Re: Corba component

2011-08-22 Thread M.Ismail
Hi, This is a good idea. I'll probably start working on this component next month. Regards, On Mon, Aug 22, 2011 at 12:32 PM, Willem.Jiang [via Camel] < ml-node+4722741-936085955-45...@n5.nabble.com> wrote: > We love contribution, and I cannot say no if you have a plan to > implement a new came

Scheduling the file component to only process at specific intervals

2011-08-22 Thread Gert Villemos
I'm using an omnipotent file component to read through a potentially very large directory structure (days of processing). To limit the load of the system and not interfere with existing systems, I would like to limit the time that the file component runs, for example to be from 22.00 until 06.00 t

Re: Corba component

2011-08-22 Thread Willem Jiang
We love contribution, and I cannot say no if you have a plan to implement a new camel-corba component. You may take a look at the camel-rmi component if you want to start to implement a new one :) On 8/22/11 2:54 PM, M.Ismail wrote: Hi, Although, it is not documented, you can still use the C

inProgressRepository not cleaned in GenericFileEndpoint ?

2011-08-22 Thread aurelienmasse
Hi I've got a use case where i need to enrich a message by polling a FTP server so as to get files like "request_1.xml", "request_2.xml", etc. This FTP server acts as a resource provider, and i want to be able to get the appropriate file every time a message is handled (the request number is held

Re: Configuring property locations dynamically at runtime

2011-08-22 Thread Willem Jiang
Hi, I suggest you to create the CamelContext yourself instead of using the Main from camel. It could be more handy for you to inject the customer properties component. On Tue Aug 16 22:15:09 2011, jason.parr wrote: I want to configure the camel context's list of property file locations dynam

Re: Teach a man to fish ..

2011-08-22 Thread Claus Ibsen
On Mon, Aug 22, 2011 at 10:41 AM, julian+activ...@dotr.com wrote: > Claus, thanks for the pointers ! > > However, I still don't know where to get camel-mail.jar from. Is there a > components download area that I am just not seeing ? > You can download it from maven central http://repo2.maven.org/

Re: Teach a man to fish ..

2011-08-22 Thread julian+activ...@dotr.com
Claus, thanks for the pointers ! However, I still don't know where to get camel-mail.jar from. Is there a components download area that I am just not seeing ? I am running the standalone activemq server, with the built-in camel. The maven dependecy xml should be put into ./webapps/camel/META-I

Re: camel-testng: Start debugger with CamelSpringTestSupport

2011-08-22 Thread Andreas Kuhtz
Hi Claus, It's not working with JUnit4 either but I found the problem: The camel context is started too early. The system property maybeStartCamelContext is set to true and this causes the SpringCamelContext to be started in maybeStart(). If you set the maybeStartCamelContext to false the debugge

Re: Camel Runtime Management : Exchange Load

2011-08-22 Thread Claus Ibsen
On Sun, Aug 21, 2011 at 10:26 PM, christian.ohr wrote: > Hi, > > I consider runtime monitoring and manageability as one of the key features > for any real-world usage of "headless" integration solutions. Camel has good > JMX support (and improving), but the exposed attributes may not always be as

Re: cxf uri can't use wsdlURL=classpath:file.wsdl?

2011-08-22 Thread Willem Jiang
Yes, CXF will try to load the WSDL from the classpath. On 8/20/11 5:45 PM, xiangqiuzhao wrote: what's the mean that uri set by "wsdlURL=classpath:IWSService.wsdl" ? it's can find IWSService.wsdl file in the whole classpath? -- View this message in context: http://camel.465427.n5.nabble.com/cx

Re: Teach a man to fish ..

2011-08-22 Thread Claus Ibsen
Hi On Mon, Aug 22, 2011 at 9:04 AM, julian+activ...@dotr.com wrote: > I have been trying all weekend now to achieve what I thought would be a > simple task. > > I want to poll my gmail account, retrieve any unread messages (leaving them > on the account) and send the message to an ActiveMQ queue.

Re: Camel Runtime Management : Exchange Load

2011-08-22 Thread Willem Jiang
It sounds good. We can make this load calculation strategy be plug able, then it could be easy to replaced :) On 8/22/11 4:26 AM, christian.ohr wrote: Hi, I consider runtime monitoring and manageability as one of the key features for any real-world usage of "headless" integration solutions. C

Teach a man to fish ..

2011-08-22 Thread julian+activ...@dotr.com
I have been trying all weekend now to achieve what I thought would be a simple task. I want to poll my gmail account, retrieve any unread messages (leaving them on the account) and send the message to an ActiveMQ queue. I have got so far as to get camel to attempt to load the smtps "thing", but t