Re: camel-cxf endpoint in CXF Dispatch mode

2011-03-11 Thread Aki Yoshida
Hi William, Yes. I initialy tried out that approach. And in fact, as you saw, I am using this dummy class internally and programatically adding its operations to the endpoint. I needed to add the operations because DummyImpl does not specifiy any information and if there is no operaiton associated

Re: How can I disable stack traces from GenericFileOnCompletion's LoggingExceptionHandler?

2011-03-11 Thread Claus Ibsen
Hi There is a JIRA ticket to improve Camel so you can refer to a custom ExceptionHandler (not part of ErrroHandler per see) in the EIPs and consumers which may leverage such. However we haven't implemented that. By default they will use the LoggingExceptionHandler which just logs the exception.

Re: how can I hand the webservice error when starting the camel

2011-03-11 Thread Tarun Ramakrishna
Do you have a wsdlUrl resolvable without contacting the CXF server ? > My cxf endpoint configuration is not wrong. > when my order is :  start cxf server --> start camel server , it is normal. > > but I want : start camel server --> start cxf server , it is throws > FailedToCreateProducerExceptio

Bridging from JMS to Websphere

2011-03-11 Thread John McDonald
I am attempting to use the Camel JMS component to deliver messages to a Websphere queue. Whilst the message delivery seems fine it is being wrapped in what I understand to be a JMS wrapper which the consuming client isnt expecting. As a result the message is not being processed correctly. I d

Re: Dropping support for Java1.5

2011-03-11 Thread Tarun Ramakrishna
Hi, Why would any commercial environment still use Java 5 for current development considering it has passed its end of service life (with all the associated legal ramifications) ? -Tarun

File2 Component : How to access dotted files ?

2011-03-11 Thread Pierre-yves Baloche
Hi all, First, a big thumb up to the Camel team for putting up this wonderful technical solution. I've discovered it not so long ago and I'm simply amazed of its capabilities now I just need time to use it to replace existing "smoky factory-type" codes (.. and I'm not talking about a patt

Re: camel-cxf endpoint in CXF Dispatch mode

2011-03-11 Thread William Tam
Thanks Aki. I'll take a closer look at the problem and commit it as appropriate over the weekend. On 03/11/2011 04:09 AM, Aki Yoshida wrote: Hi William, Yes. I initialy tried out that approach. And in fact, as you saw, I am using this dummy class internally and programatically adding its opera

java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint

2011-03-11 Thread Marco Crivellaro
in some circumstances interceptSendToEndpoint in conjunction with recipientList and parallel processing is running in exception. this seems to be the case when and http endpoint is sent in the recipient list after having processed and ftp in the previous exchange attached test case shows the expec

Re: File2 Component : How to access dotted files ?

2011-03-11 Thread Claus Ibsen
Hi Welcome to the community. On Fri, Mar 11, 2011 at 2:11 PM, Pierre-yves Baloche wrote: > Hi all, > > First, a big thumb up to the Camel team for putting up this wonderful > technical solution. > I've discovered it not so long ago and I'm simply amazed of its > capabilities > now I just nee

Re: File2 Component : How to access dotted files ?

2011-03-11 Thread Pierre-yves Baloche
Hi Claus , Hi Welcome to the community. Thanks ;-).. quite lively in here ! I am afraid not as skipping dot files is hardcoded into the component, as its supposed to skip hidden files. We could of course add some option to the component, but we should also avoid "adding to many features" i

Re: File2 Component : How to access dotted files ?

2011-03-11 Thread Claus Ibsen
On Fri, Mar 11, 2011 at 4:23 PM, Pierre-yves Baloche wrote: >  Hi Claus , >> >> Hi >> >> Welcome to the community. > > Thanks ;-).. quite lively in here ! > >> I am afraid not as skipping dot files is hardcoded into the component, >> as its supposed to skip hidden files. >> >> We could of course a

Re: Bridging from JMS to Websphere

2011-03-11 Thread waterback
Hi John, well i think i haven't understand all of your post... But i use sending to Websphere MQ queues from Camel in multiple examples... >From my experience the following in your definition: " .setHeader("CamelJmsDestinationName", constant("queue:///MY_QUEUE?targetClient=1")) " is actually n

Shutting down camel from a test!

2011-03-11 Thread kanmisc
Hi All I have a requirement of monitoring my system and it is implemented with the help of camel sending messages often to different ports and checks for system status. When i developed, i used mvn camel:run command and executed the camel routes to send messages. But now i have to automate it by

Re: Posting to Camel Servlet endpoint brings up file download dialog

2011-03-11 Thread gsilverman
Thanks for the tip. So...how else does one submit? -- View this message in context: http://camel.465427.n5.nabble.com/Posting-to-Camel-Servlet-endpoint-brings-up-file-download-dialog-tp3424535p3425276.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File2 Component : How to access dotted files ?

2011-03-11 Thread Pierre-yves Baloche
Yeah you can extend the FileEndpoint and return a custom FileConsumer in the createConsumer. And in your custom consume you can override the isMatched method. And then use your custom endpoint in the route. Its not super simple but its doable. from(myCustomEndpoint) Alright, thanks for t

Re: Bridging from JMS to Websphere

2011-03-11 Thread John McDonald
Thanks Martin No need to apologise - if my post is unclear thats on me - I appreciate you responding. The error is in attempting to set that value but I am unclear why it should be. I can post messages to the queue without error without this addition - its just that when I do the raw message

Re: Bridging from JMS to Websphere

2011-03-11 Thread Tarun Ramakrishna
> The error is in attempting to set that value but I am unclear why it should > be. Well..I can explain the reason if not how to solve this problem specifically for the camel jms component. I probably will run into your problem in the future since we have need to post and reply using native messag

Re: Bridging from JMS to Websphere

2011-03-11 Thread John McDonald
Thanks for that Tarun I would classify my level of Camel expertise to be just about the same - perhaps 'enthusiast' too - I'm pretty impressed! Camel JMS doesnt know about it because its a WMQ feature is something I have read on several occasions now and this is consistent with your account - w

Re: Shutting down camel from a test!

2011-03-11 Thread Jon Anstey
If you just want to start a simple Camel app and then shutdown, there is no requirement to use a test case - you can just use a standard main method like in the jms-file example: http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmst

Re: Bridging from JMS to Websphere

2011-03-11 Thread Jon Anstey
FYI when I was successfully using that targetClient option mentioned in the wiki, it was connecting to WMQ with the new OSGi client libs (ex com.ibm.mq.osgi.directip_7.0.1.1.jar, com.ibm.msg.client.osgi*_7.0.1.1.jar). Not sure if that makes any different here. Cheers, Jon On Fri, Mar 11, 2011 at

Dynamic URI in Java DSL

2011-03-11 Thread stephanisworking
Hi all, I'm new to Camel and already searched the mailling list for this issue but couldn't find a solution for JavaDSL. I'd like to build a "to" URI dynamically from a value coming from the body. More concrete: I'd like to load a FreeMarker template depending on a body value. I've tried this:

context component

2011-03-11 Thread Tim
The text of http://camel.apache.org/context.html says: "You can append query options to the URI in the following format, ?option=value&option=value&..." However, it doesn't explain how to get to those parameter's from your context. Looking through the code, I don't even see it passing those param

Issue with JMS Temp Queues (Tibco EMS)

2011-03-11 Thread enalposi
Hi, we don't seem to be receiving messages on temp queues. The underlying transport is Tibco EMS (JMS). Below are snippets from the log regarding listener and publisher starting up... It looks all fine (to my eye..) besides the 'real' temp queue only being mentioned on the sender side (Queue[$TMP$.

Re: Dynamic URI in Java DSL

2011-03-11 Thread Jon Anstey
>From the compoment page http://camel.apache.org/freemarker.html you can use the CamelFreemarkerResourceUri header for this: from("direct:in"). setHeader("CamelFreemarkerResourceUri").constant("path/to/my/template.ftl"). to("freemarker:dummy"); Just use a simple expression instead of constant

Camel 2.4 Done File Error Handling

2011-03-11 Thread Craig Taylor
Before I reinvent the wheel, for Camel 2.4 I'm attempting to check for the following error conditions for done file handling: 1) Done file w/o corresponding regular file 2) Regular file w/o done file after period of time (say 5 minutes). I'm currently using a GenericFileExclusiveReadLockStrategy

Re: How can I disable stack traces from GenericFileOnCompletion's LoggingExceptionHandler?

2011-03-11 Thread Mike D
Hi Claus, Thanks for your response. Your short-term proposal would work well for me (in fact I log stack traces as DEBUG in many parts of my own code). I don't know if the other camel users would find this an inconvenience though. I do appreciate you giving it some consideration. Regards, Mike

Re: Issue with JMS Temp Queues (Tibco EMS)

2011-03-11 Thread Christian Schneider
Hi, typically temp queues are only used for reply messages and are transparently created by camel. In your case you seem to define the temp queue directly in the endpoint. I don´t think that will work. Can you send the configuration of the routes? Christian Am 11.03.2011 21:05, schrieb enal

Re: how can I hand the webservice error when starting the camel

2011-03-11 Thread Bill
Hi, Ramakrishna-2 , thanks your reply. I resovled it. Because I defined the route information with WebURL like <*** wsdlURL="http://localhost:9000/order?wsdl";>, and I store the wsdl file to my classpath in ws.wsdl , change the wsdlURL="ws.wsdl" . It is done. -- View this message in context: http

Re: camel-cxf endpoint in CXF Dispatch mode

2011-03-11 Thread Willem Jiang
I just have a quick look at the patch and has few comments for it. 1. Just a quick question of the Dispatch mode, this dispatch is not like what we use the JAXWS Dispatch API. What the difference between this Dispatch and JAXWS Dispatch API ? We need to write some document to clarify this in ca

Re: context component

2011-03-11 Thread Ashwin Karpe
Hi, The options are related to the "direct" or "seda" endpoint options that you are invoking using the context component. The options are not for specialization of the context component itself. Hope this helps. Cheers, Ashwin... - - A

Re: Problem setting Authentification using HttpProducer and dynamic URIs

2011-03-11 Thread Ashwin Karpe
Hi, You might want to use a bean with a Producer Template instead of the http endpoint directly. Then you can get the exchange and use your settings to send the request to the HTTP endpoint using template.sendbody(...). For more details check out the section "URI Parameters from the Message" at t

Re: java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint

2011-03-11 Thread Ashwin Karpe
Hi, Camel uses an ExecutorService with a set of threads that are used as thread pool to process incoming requests. In addition there is a backing blockingQueue of a fixed capacity associated with the pools for requests that cannot be immediately picked up for processing. When threads are fully ut

Re: PGP encryption inside a camel route

2011-03-11 Thread Ashwin Karpe
Hi, There are a couple of different data formats that can do this in camel including - Crypto http://camel.apache.org/crypto.html http://camel.apache.org/crypto.html - Xml Security http://camel.apache.org/xmlsecurity-dataformat.html http://camel.apache.org/xmlsecurity-dataformat.html Hop

Re: How can I disable stack traces from GenericFileOnCompletion's LoggingExceptionHandler?

2011-03-11 Thread Claus Ibsen
Hi Mike On Fri, Mar 11, 2011 at 10:13 PM, Mike D wrote: > Hi Claus, > > Thanks for your response.  Your short-term proposal would work well for me > (in fact I log stack traces as DEBUG in many parts of my own code).  I don't > know if the other camel users would find this an inconvenience though

Re: Shutting down camel from a test!

2011-03-11 Thread Claus Ibsen
On Fri, Mar 11, 2011 at 4:44 PM, kanmisc wrote: > Hi All > > I have a requirement of monitoring my system and it is implemented with the > help of camel sending messages often to different ports and checks for > system status. When i developed, i used mvn camel:run command and executed > the camel

Re: Posting to Camel Servlet endpoint brings up file download dialog

2011-03-11 Thread Claus Ibsen
On Fri, Mar 11, 2011 at 4:48 PM, gsilverman wrote: > Thanks for the tip. So...how else does one submit? > Click the subscribe link from this page at the Camel User list http://camel.apache.org/mailing-lists.html > -- > View this message in context: > http://camel.465427.n5.nabble.com/Posting-

Re: Dynamic URI in Java DSL

2011-03-11 Thread Claus Ibsen
Hi Welcome to the Camel community. The EIP patterns has the recipient list as the solution for "dynamic to" http://camel.apache.org/recipient-list.html Then you can use any Camel expression to compute the dynamic uri such as the Simple language http://camel.apache.org/simple .recipientList(simp

Re: Dynamic URI in Java DSL

2011-03-11 Thread Stephan
Hi Jon, thanks for your reply. Yes, I already found the "CamelFreemarkerResourceUri", but I'm more interested in, where the expression language can be used in general. I couldn't find any meaningful rule for that. Claus Ibsen gave an good example in his book (p 464), on how to use the simple synt