Re: Help with filter behavior

2010-07-29 Thread Claus Ibsen
Hi On Thu, Jul 29, 2010 at 10:36 PM, GSegel wrote: > > I am trying to build a route using Java DSL and I'm getting a confusing error > in my IDE (IntelliJ).  Here's what I'm trying to do: > 1. Receive a message from a JMS Queue > 2. Enrich the message by querying a database to retrieve additional

Re: Help using JoSQL

2010-07-29 Thread Thiago Souza
Great, thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Help-using-JoSQL-tp2259071p2259103.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Help using JoSQL

2010-07-29 Thread Willem Jiang
OK, it's look like JoSQL only works in DSL now, you have to use the SqlBuilder to define SQL expression in the RouteBulder. I just create a JIRA[1] for it and will commit a quick fix today. [1]https://issues.apache.org/activemq/browse/CAMEL-3014 Willem -- Apache

Re: Help using JoSQL

2010-07-29 Thread Thiago Souza
I doubled checked, it's there. I can assure that both "org.apache.camel.builder.sql.SqlBuilder" and "org.josql.Query" are visible from the current classpath. What I don't understand is how the "org.apache.camel.builder.sql.SqlBuilder" is discovered. I don't see any metadata inside META-INF that w

Re: Dynamic Routes

2010-07-29 Thread Willem Jiang
There are two ways to accomplish your task. A more easy way: Camel supports to start and stop the RouteDefintion dynamically, You can create the RouteDefintion yourself after you reading the file. A hack way: If you have the common procedure to handle the files, you can define the common route w

Re: Help using JoSQL

2010-07-29 Thread Willem Jiang
Hi, It looks like you didn't put the camel-josql jar into your class path. Willem -- Apache Camel, Apache CXF committer Open Source Integration http://www.fusesource.com Blog http://willemjiang.blogspot.com Tiwtter http://twitter.com/willemjiang Thiago Souza wrot

Re: Help with filter behavior

2010-07-29 Thread Willem Jiang
Hi Which version of Camel are you using ? I tried you DSL within Camel trunk code, the IDE (Eclipse) didn't complain anything. Can you try the latest released Camel 2.4.0 for it? Willem -- Apache Camel, Apache CXF committer Open Source Integration http://www.fu

Help using JoSQL

2010-07-29 Thread Thiago Souza
Hi, I'm trying to use JoSQL. I followed the instructions at http://camel.apache.org/sql.html. Here is my current test context: select num from java.util.Map

Help with filter behavior

2010-07-29 Thread GSegel
I am trying to build a route using Java DSL and I'm getting a confusing error in my IDE (IntelliJ). Here's what I'm trying to do: 1. Receive a message from a JMS Queue 2. Enrich the message by querying a database to retrieve additional content (claim check pattern) 3. Filter the messages to exclu

Re: Usage of server managed thread of Websphere

2010-07-29 Thread Claus Ibsen
Hi See this wiki page http://camel.apache.org/threading-model.html You can implement a custom ExecutorServiceStrategy which hook into WebSphere. On Thu, Jul 29, 2010 at 5:01 PM, chaillon wrote: > > Hi, > > I'm using: > - Camel 2.3.0 > - Websphere 7.0 > - Spring 2.5.6 > - Hibernate 3.5 > > I'm

Usage of server managed thread of Websphere

2010-07-29 Thread chaillon
Hi, I'm using: - Camel 2.3.0 - Websphere 7.0 - Spring 2.5.6 - Hibernate 3.5 I'm facing lookup errors where looking for the datasource from Camel threads (or another else JNDI resource) That seams logic since Camel use JDK threads pool instead of server thread pool So I need to configure Camel t

Dynamic Routes

2010-07-29 Thread Hossein
Hello, Is there anyway to dynamically setup routes? For example, I'm trying to setup a route using a File component. In that file there will be something like the following: MQ_USERS_DATA_TOPIC=/the/file/location I would like to read this file and then setup a route from above folder to MQ_USERS

Re: Splitting a List and deleting it at the end

2010-07-29 Thread Claus Ibsen
Hi Use streaming mode which can then iterate the payload. So if your payload can be converted into an Iterator then you dont need to have all the 100 000 objects loaded into memory. On Thu, Jul 29, 2010 at 3:22 PM, Yann wrote: > > Hi, > > I'm splitting a list containing 100 000 objects. Each

Re: Put XML msgs from Java POJO into already running ActiveMQ instance? Camel sample adjustment

2010-07-29 Thread Claus Ibsen
On Thu, Jul 29, 2010 at 1:47 PM, benxs wrote: > > When I look into the shipped Camel example > > http://camel.apache.org/pojo-messaging-example.html > > then there is said that the XML message are put into an "an embedded > instance of Apache ActiveMQ". > Enbedded means embedded into Camel (exampl

Put XML msgs from Java POJO into already running ActiveMQ instance? Camel sample adjustment

2010-07-29 Thread benxs
When I look into the shipped Camel example http://camel.apache.org/pojo-messaging-example.html then there is said that the XML message are put into an "an embedded instance of Apache ActiveMQ". Enbedded means embedded into Camel (example). How can I put the same XML msgs instead into an already

Re: HTTP Component Control to HttpClient

2010-07-29 Thread Willem Jiang
You can put the RequestEntity into the message body, then HttpProducer will use it directly. Willem Filippo Balicchia wrote: Thanks for the response but Is possibile to send a multipart/form-data request ? What i want do is the equivalent of Part[] parts = { new StringPa

Re: HTTP Component Control to HttpClient

2010-07-29 Thread Filippo Balicchia
Thanks for the response but Is possibile to send a multipart/form-data request ? What i want do is the equivalent of Part[] parts = { new StringPart("transaction-set", "my ransact", StringPart.DEFAULT_CONTENT_TYPE), new StringPart("input-format", "my input

Re: load a route into ActiveMQ via java

2010-07-29 Thread Claus Ibsen
Hi The ActiveMQ in Action book shows how to use Camel in chapter 11.7 On Wed, Jul 28, 2010 at 8:08 PM, Mark wrote: > Thanks, > > I made that change an ActiveMQ starts up.  The route does not show up in the > camel admin page, so I am not sure if its being loaded properly.  Plus when > I send a

Re: Problem 2 when compiling sample from Camel package

2010-07-29 Thread Willem.Jiang
I just create a JIRA[1] and committed a quick fix for it. Please verify it in Camel 2.5.0-SNAPSHOT. [1]https://issues.apache.org/activemq/browse/CAMEL-3010 Willem -- Apache Camel, Apache CXF committer Open Source Integration http://www.fusesource.com Blog http://

Re: JMS Transactions not handling SecurityException?

2010-07-29 Thread Holger
Hi Ashwin, Thanks for your quick reply. I know this link but unfortunately I cannot figure out what I am doing wrong. Actually, I enhanced the JmsToJmsTransactedTest class from the camel source and did not make any strong changes to the corresponding JmsToJmsTransactedTest.xml file (I just chang

Re: HTTP Component Control to HttpClient

2010-07-29 Thread Willem Jiang
Hi Filippo, You can set the Content-Type by setting the message header with the key of "Content-Type". Willem -- Apache Camel, Apache CXF committer Open Source Integration http://www.fusesource.com Blog http://willemjiang.blogspot.com Tiwtter http://twitter.com/