Re: How do I stop the RouteBuilders from caching the routes they build?

2011-03-21 Thread Blair
ok, after changing how I was going about this, I have found a elegant enough way of doing this. @Component public class ReloadRoutes implements ApplicationContextAware { public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationC

How do I stop the RouteBuilders from caching the routes they build?

2011-03-21 Thread Blair
I want to force a Camel Context to reload, rebuilding the Routes from the RouteBuilder (which is getting the information on the routes from the database). It works except... they cache routes so while new routes get loaded, it rebuilds routes that have since been removed. so.. how do I clear all

Re: Using camel with xstream

2011-03-21 Thread ben.oday
I've used xstream w/o the need to define any mappings (like Jaxb requires, etc). Basically, just use xstream's fromXML()/toXML() methods to marshal from String/Java bean in your processor methods as needed. You can also define your own custom type converter classes using the convertBodyTo(MyConve

Using camel with xstream

2011-03-21 Thread ganivojjala
Guys, I am using xstream to convert an xml to java object.[unmarshalling]. I am just wondering how the camel will convert the xml to a pojo, without a mapping for example: xsl. Where we map the xml elements to bean?? Any help?? How should ichange my route if it requires a mapping ? Thank y

Re: Object routing

2011-03-21 Thread ben.oday
a few comments... from(...) is for defining camel routes (executed once on context startup from a RouteBuilder's configure() method) ProducerTemplate.sendBody(...) is for sending messages to routes already defined It appears that you are sending to a queue w/o any consumers, correct? I'm not su

Re: restlet component GET request and query string parameters

2011-03-21 Thread William Tam
RE: Setting request query string at runtime We can enhance camel-restlet component so that it can read Camel message header "CamelHttpQuery" and set its value in the request URI. I can look into that. If you'd like to submit a patch, it would be appreciated. RE: Custom headers not getting in

InOut over JMS always leads to Timout (ExchangeTimedOutException)

2011-03-21 Thread Mike L .
All: I have been trying to take advantage of the InOut pattern over JMS. I am using Camel 2.4.0 and ActiveMQ 5.3.1 I have created a simple example that can be run to replicate the problem I am experiencing. Attached please find the source code plus ant build file. Within the libs folder is a

Re: trying several parameters of FileComponent...

2011-03-21 Thread Richard Kettelerij
@dead_devil_66. Main extends MainSupport, and MainSupport does have that method see https://fisheye6.atlassian.com/browse/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/MainSupport.java?hb=true -- View this message in context: http://camel.465427.n5.nabble.com/trying-several-paramete

Re: java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint

2011-03-21 Thread Marco Crivellaro
I've created a ticket and attached a test to it https://issues.apache.org/jira/browse/CAMEL-3795 please let me know if you need further details. -- View this message in context: http://camel.465427.n5.nabble.com/java-util-concurrent-RejectedExecutionException-using-interceptSendToEndpoint-tp3425

Re: Lotus notes/Domino integration

2011-03-21 Thread Charles Moulliard
In this case, you need a JDBC-ODBC bridge --> http://download.oracle.com/javase/1.3/docs/guide/jdbc/getstart/bridge.doc.html On Mon, Mar 21, 2011 at 2:13 PM, ihabo01 wrote: > Thanks again Charles, > > Actually the JDBC driver would have been my preferred choice, but > https://www-304.ibm.com/supp

Re: Lotus notes/Domino integration

2011-03-21 Thread ihabo01
Thanks again Charles, Actually the JDBC driver would have been my preferred choice, but https://www-304.ibm.com/support/docview.wss?uid=swg21305841 it has been deprecated unfortunately . How about ODBC? can Camel support it? Ihab -- View this message in context: http://camel.465427.n5.nabbl

Re: Lotus notes/Domino integration

2011-03-21 Thread Charles Moulliard
Hi Ihab, I have work with Lotus Notes/Domino a couple of years ago and know a little bit the api ncso.jar used to connect using CORBA Technology and IIOP protocol to Lotus Server. As this is based on Corba/IIOP, you have a lot of flexibility as you will use natively the API of Lotus but the counte

Re: Lotus notes/Domino integration

2011-03-21 Thread ihabo01
Hello Charles, Thanks for your quick and clear response. To answer your question, I am looking to make Camel Read/Write data from/to Lotus notes. Did you try the first approach of integration with Lotus ? if yes, does the API have any limitations that I should pay attention to? thanks again for

Re: Lotus notes/Domino integration

2011-03-21 Thread Charles Moulliard
Hi Ihab, What do you plan to do when you say "integrating" ? Is it Lotus Notes who will use Apache Camel or you would like to use camel to integrate a Lotus Notes (Domino) server ? I do not know the REST or SOAP api of Lotus but the first approach that you mention (java) is based on CORBA and IIO

What's the policy on forwarding headers in camel components ?

2011-03-21 Thread Sorin Silaghi
Hello, I'm working with a custom camel component that doesn't forward the headers and this breaks my route. I noticed most camel components do this but I looked at the file component and couldn't tell exactly where it happens. So my question is what's the default behaviour ? If I

Lotus notes/Domino integration

2011-03-21 Thread ihabo01
Hello all, I would like to integrate with IBM Lotus through Camel (read/write) but I am not sure what is the simplest way to do so. First investigations indicate that Lotus has a couple of ways to connect to, mainly: 1- http://www.ibm.com/developerworks/lotus/library/ls-Java_access_pt1/index.ht

ODBC integration

2011-03-21 Thread ihabo01
Hello all, Does Camel offer a way to connect to a system offering an ODBC driver (but not a JDBC driver unfotuntately)? I can't see ODBC in the http://camel.apache.org/components.html components list so not sure how that can be done. Many thanks in advance for your clarifications Regards, Ih

Re: restlet component GET request and query string parameters

2011-03-21 Thread mat127
Hello William, thank you for your answer too. Note that my problem is that the parameter that I want to fill into the GET query has to be set during the runtime (imagine item id or something similar that varies for each request). So I cannot define the route as you suggested where the locale param

Re: restlet component GET request and query string parameters

2011-03-21 Thread mat127
Hello Claus, thank you for your answer. As for the version I am using Camel 2.6.0 deployed inside jetty-7.2.2.v20101205. I tried the {} placeholders you suggested but unfortunately without any effect. I modified the route as: > > >

Re: Http route returning with 200 but also getting read timed out

2011-03-21 Thread Willem Jiang
Hi Hari, I can reproduce the error by writing a simple unit test. I just create a JIRA[1] for it, will commit short fix for this case. [1]https://issues.apache.org/jira/browse/CAMEL-3792 Willem On 3/19/11 2:12 AM, Hari Gangadharan wrote: Willem: We have tried everything. We were already sett

Re: Question When Configuring Camel With A PropertyPlaceHolderConfigurer

2011-03-21 Thread Carlo Camerino
hi there, sorry to answer my own question, I opted to use camel's propetiescomponent instead and used camel's propertyplaceholderconfigurer it was able to resolve it http://camel.apache.org/properties.html Thanks A Lot On Mon, Mar 21, 2011 at 3:05 PM, Carlo Camerino wrote: > Hi, > > I would n

Question When Configuring Camel With A PropertyPlaceHolderConfigurer

2011-03-21 Thread Carlo Camerino
Hi, I would need help on this, com.ccti.financialengine.web.citrine.routes com.ccti.financialengine.web.citrine.routes