Grails/Camel - pass queue message to HTTP POST?

2010-01-25 Thread kitplummer
Ok, just thinking at this point...and I don't yet understand Camel well enough. So, I need some insight. What I want to do is use Camel to facilitate some back-end business logic in my Grails app. Here's the general idea. From my Grails app I send a block of text to a Route. I want this route

Re: Camel with Jboss, Weblogic JMS

2010-01-25 Thread Claus Ibsen
On Tue, Jan 26, 2010 at 3:52 AM, Raster3 wrote: > > Hi, > > Can yuu tell me the steps needed to use camel with Jboss, Weblogic JMS. > What changes must I do to the samples. > Thanks. > For JBoss you need to use the camel-jboss component http://camel.apache.org/camel-jboss.html Which you must fet

Camel with Jboss, Weblogic JMS

2010-01-25 Thread Raster3
Hi, Can yuu tell me the steps needed to use camel with Jboss, Weblogic JMS. What changes must I do to the samples. Thanks. R -- View this message in context: http://old.nabble.com/Camel-with-Jboss%2C-Weblogic-JMS-tp27317263p27317263.html Sent from the Camel - Users mailing list archive at Nabb

Re: Embedded web console

2010-01-25 Thread mistrz
Following this pattern, when starting jetty I get this exception: [ Main Thread] ContextLoader INFO Root WebApplicationContext: initialization complet ed in 2516 ms 2010-01-25 12:24:11.456::WARN: failed Jersey Filter java.lang.IllegalStateException: class com

How does Camel work with ActiveMQ ?

2010-01-25 Thread BenXS
>From pages like http://camel.apache.org/wire-tap.html I tried to figure out on how Camel works in ActiveMQ. Say I have a running ActiveMQ installation and I want to save a copy of every JSM msg wihc arrives in the queue mytestqueue123 into a separate XML file in directory D:\testcamel How do

Re: Scanning/Splitting Large input files

2010-01-25 Thread Claus Ibsen
On Mon, Jan 25, 2010 at 7:37 PM, Kevin Jackson wrote: > Hi, > >> How do you want to split your file. Can you split it on some sort of >> token, which is required by the Scanner? > > I need to split on '**' > > I wrote a simple POJO with a splitBody() method that returns a > List based on this usin

Re: Scanning/Splitting Large input files

2010-01-25 Thread Kevin Jackson
Hi, > How do you want to split your file. Can you split it on some sort of > token, which is required by the Scanner? I need to split on '**' I wrote a simple POJO with a splitBody() method that returns a List based on this using a Scanner within the method > You can use POJO to return a String

Re: Importing the source into eclipse

2010-01-25 Thread Stephen Gargan
Be sure to add a -DdownloadSources=true as it will grab and attach the sources for Camel's dependencies too. Admittedly this might take a while, but it is well worth it. If its just taking too long you can run this on individual components and projects to cherry pick the ones you're most interested

Re: Scanning/Splitting Large input files

2010-01-25 Thread Claus Ibsen
On Mon, Jan 25, 2010 at 4:22 PM, Kevin Jackson wrote: > Hi, > >> The JDK offers a java.util.Scanner which allows you to split a stream >> on-the-fly. Camel leverages this scanner under the covers as well. >> >> For example suppose you want to split a 700mb file pr line then you >> can use the Came

Re: FileConsumer move a file to wrong destination.

2010-01-25 Thread ariablu
Thank you for reply. Workaround for this problem, route: fileConsumer -> some components -> processor(SetOriginalMessageProcess) public class SetOriginalMessageProcess implements Processor{ public vo

Re: Importing the source into eclipse

2010-01-25 Thread Stan Lewis
Use "mvn eclipse:eclipse" first and then import everything into eclipse, shouldn't take nearly as long. On Mon, Jan 25, 2010 at 10:29 AM, James Carr wrote: > Hi, > > I checked the source out from svn and would like to poke around in it > to understand camel better, but trying to import all the mo

Importing the source into eclipse

2010-01-25 Thread James Carr
Hi, I checked the source out from svn and would like to poke around in it to understand camel better, but trying to import all the modules into eclipse using m2eclipse takes eternity (and after 2 hours, I'm still not in a compilable state). Aside from being forced to switch to a different IDE, is

Re: Scanning/Splitting Large input files

2010-01-25 Thread Kevin Jackson
Hi, > The JDK offers a java.util.Scanner which allows you to split a stream > on-the-fly. Camel leverages this scanner under the covers as well. > > For example suppose you want to split a 700mb file pr line then you > can use the Camel splitter and have it tokenized using \n, which > should lever

Re: recipientList + AggregationStrategy

2010-01-25 Thread Claus Ibsen
Hi Interesting use case you got. I got to go over this again at another time. I am at a business convention in the US which means I am on a 9h timezone difference which makes me a bit dizzy at this moment. However just wanted to pitch in that JMX stores performance stats for nearly all processors

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-25 Thread Claus Ibsen
On Sat, Jan 23, 2010 at 8:41 PM, huntc wrote: > > Hi Claus, > > I'm happy to create a ticket of course, however I'm not clear on what the > resolution is. I am not sure that implementing a "disconnect" URI option is > the way to go though as per FTP. My use case is that I want to establish a > con

Re: camel and to many threds?

2010-01-25 Thread Claus Ibsen
Hi Does this happen a lot? Or was the deadlock a one time only? Camel 2.0 has a overhauled routing engine which has removed the need for that type of latch. Which means this kind of deadlock does not occur on 2.x. However I have not seen this deadlock in 1.x before since the lock in the code sho

Re: Scanning/Splitting Large input files

2010-01-25 Thread Claus Ibsen
Hi Keven I think we have debated this before here on the Camel user forum so you may be able to dig out some of those topics. The JDK offers a java.util.Scanner which allows you to split a stream on-the-fly. Camel leverages this scanner under the covers as well. For example suppose you want to s

recipientList + AggregationStrategy

2010-01-25 Thread mcrive
Hi, I am using recipientList to send a message to a list of endpoints (mostly FTP). I am using an AggregationStrategy to compute few properties of the exchanges: - delivered - how many retries - time taken I've been able to get 'delivered' and 'how many retries' for each endpoint but I can't fin

Scanning/Splitting Large input files

2010-01-25 Thread Kevin Jackson
Hi, I have a problem which I assume is a relatively normal use case. I have to process 700+Mb input text file (not xml) and I want to generate events/messages from this file based on splitting the file into individual records. Having done some digging through the archives, it seems that there ar

Re: camel and to many threds?

2010-01-25 Thread marcin80
Hi, Thanks for your response. My route is as follows: public class CamelRoute extends RouteBuilder { public void configure() throws Exception { from("timer:foo?period=5000"). setBody( constant("select dz.x

Came and Oracle rule-based durable subscriber

2010-01-25 Thread smilicevics
Hi, I have the following question: If I add in oracle a durable subcriber with some rule and then deploy camel application in oc4j with defined durableSubscriber and clientId properties then the camel will delete? durable subscriber in oracle and define another one with the same name but without