Re: Re: cxf:consumer and cxf:producer in one route

2010-12-08 Thread Thomas KRIECHBAUM
Hello, the conversion does not help. It seams, that the second cxf-component (POJO) changes the camel exchange in a way the first cxf-component (PAYLOAD) can't deal with. For simplicity, I have bound both components to the same WSDL, but even if I wrap the response from the second cxf-componen

Re: How do I Detect ActiveMq Broker down

2010-12-08 Thread Charles Moulliard
Alternatively, you can use the failover protocol in the uri definition of your connection with ActiveMq. This will allows the camel client component to retry to connect to the AMQ broker in case of issue. On 09/12/10 08:06, Claus Ibsen wrote: I think you need to use syncSend so when you send t

Re: How do I Detect ActiveMq Broker down

2010-12-08 Thread Claus Ibsen
I think you need to use syncSend so when you send to the broker is synchronous and thus it detects if it fails and can throw back an exception to you. Otherwise I think there is some exception listener you can configure which could detect the issue. Check the AMQ documentation and mailing list for

Re: Do I have to give a ScheduledExecutorService instance when initializing DefualtTimeoutMap?

2010-12-08 Thread Claus Ibsen
Hi Yes you need to provide a scheduler if you want it to automatic purge and timeout entries. I have improved the source code to mandate a scheduler in the next release. https://issues.apache.org/jira/browse/CAMEL-3416 On Thu, Dec 9, 2010 at 12:51 AM, yli wrote: > > Hi All, >      Recently I ha

Do I have to give a ScheduledExecutorService instance when initializing DefualtTimeoutMap?

2010-12-08 Thread yli
Hi All, Recently I have this problem, which really making me confused. In my code, I try to have a map where the items would expire after sometime and be deleted automatically, so I decided to use DefualtTimeoutMap. Here is how I initialize it: "TimeoutMap myMap = new DefaultTim

Re: Camel File Component and the Splitter

2010-12-08 Thread Tarun Ramakrishna
Just please ignore the mail below and save me the embarassment. This will teach me not to send emails at 3:00am in the morning. Thanks, Tarun On Thu, Dec 9, 2010 at 3:07 AM, Tarun Ramakrishna wrote: > Hi all, > > I have a puzzler and I thought I would throw it to the list before > going into ca

Camel File Component and the Splitter

2010-12-08 Thread Tarun Ramakrishna
Hi all, I have a puzzler and I thought I would throw it to the list before going into camel debugging. I have a custom mapping processor that given an Exchange, takes its payload, split it to several payloads, creates an array list of byte[] and sets them back into the IN message of the exchange.

Re: JDBC connection

2010-12-08 Thread Tommy Chheng
I was able to workaround this issue using the simpleRegistry val reg = new SimpleRegistry reg.put("test", dataSource) val context = new DefaultCamelContext(reg) @tommychheng http://tommy.chheng.com On 12/8/10 10:34 AM, Tommy Chheng wrote: I'm trying to register a jdbc connection. T

JDBC connection

2010-12-08 Thread Tommy Chheng
I'm trying to register a jdbc connection. The camel docs say to do: JndiRegistry reg =super.createRegistry(); reg.bind("testdb", ds); return reg; What's the super object referring to? I'm trying to do: val dataSource = new MysqlConnectionPoolDataSource() dataSource.setUser("root")

Re: How do I Detect ActiveMq Broker down

2010-12-08 Thread watcher
I'm using camel 2.4 and activemq 5.4.0 -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-Detect-ActiveMq-Broker-down-tp3297755p3297764.html Sent from the Camel - Users mailing list archive at Nabble.com.

How do I Detect ActiveMq Broker down

2010-12-08 Thread watcher
I'm trying to detect if the broker is available before I publish a message onto a queue. First attempt was to add a TransportListener as follows [code]

Re: Some time apache servers the content of another URL

2010-12-08 Thread davsclaus
This is the wrong forum. This is for Apache Camel. There is another forum for Apache HTTP server. -- View this message in context: http://camel.465427.n5.nabble.com/Some-time-apache-servers-the-content-of-another-URL-tp3297318p3297506.html Sent from the Camel - Users mailing list archive at Nabb

Re: Camel Websphere MQ Error 2012

2010-12-08 Thread waterback
Sorry forgot to mention that ${zap.s2.jms.outq} is a Property-Placeholder in Spring-Config. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Websphere-MQ-Error-2012-tp3295312p3297122.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Websphere MQ Error 2012

2010-12-08 Thread waterback
Hi Marbor, so to say obviously wrong is a lot... But i had some success with WebSphere and WebSphere MQ and Camel and not using too much of those WebSphere-Configurations for Queues. I've seen in your Spring-Config, that you have those Queues configured and you look them up via JNDI. As far as

Re: How about to support dynamic configurations in camel?

2010-12-08 Thread ext2
Hi, Willem Jiang: Yes, you are right. No all properties must support dynamic configuration; The key-point of the requirement is not ask for all property be dynamic configured, but the camel can support a dynamic-configure extending mechanism which support: the user could using it to exten

Re: camel-jetty + authentication JAAS

2010-12-08 Thread Willem Jiang
Hi Charles, Is there any minor code if of the 403 error? Not sure if the authentication is OK, Can you check the security log for it ? On 12/8/10 4:21 PM, Charles Moulliard wrote: Hi Willem, Thx. Your idea is brillant. I have added a DefaultIdentityService to the SecurityHandler and the erro

Re: camel-jetty + authentication JAAS

2010-12-08 Thread Charles Moulliard
Hi Willem, Thx. Your idea is brillant. I have added a DefaultIdentityService to the SecurityHandler and the error does not longer appear. I get a HTTP 403 error code when a HttpClient (launched from IntelliJ) tries to connect the camel-jetty route deployed in karaf. Do you have an idea ? Rega

Re: InterceptSendToEndpoint - Http Component

2010-12-08 Thread Claus Ibsen
On Wed, Dec 8, 2010 at 9:14 AM, Karthz wrote: > > Great, thank you. > > Just curious - in which class is this fix needed? > The commit log is here http://svn.apache.org/viewvc?rev=1043330&view=rev > - > - Karthz > -- > View this message in context: > http://camel.465427.n5.nabble.com/Int

Re: InterceptSendToEndpoint - Http Component

2010-12-08 Thread Karthz
Great, thank you. Just curious - in which class is this fix needed? - - Karthz -- View this message in context: http://camel.465427.n5.nabble.com/InterceptSendToEndpoint-Http-Component-tp3296620p3297052.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How about to support dynamic configurations in camel?

2010-12-08 Thread Willem Jiang
On 12/8/10 2:31 PM, ext2 wrote: > Hi: > Changing the configuration dynamically at runtime to adjust the > behavior of application is a use-full feature for many application. > Camel support some dynamic mechanism now, etc: dynamic-routing > pattern; but I still encounter some limits whi