Re: Spring-WS how to configure retries (number of attempts)

2013-03-11 Thread Claus Ibsen
Hi

Camel has extensive support for error handling. So you can just
configure it in Camel and it works for any kind of component.

Here is some links.
http://camel.apache.org/error-handling-in-camel.html
http://camel.apache.org/exception-clause.html
http://camel.apache.org/error-handler.html
http://camel.apache.org/defaulterrorhandler.html

And I think this blog has a good overview of error handling in Camel
http://benoday.blogspot.com/2010/08/camel-exception-handling-overview.html

If you have a copy of the Camel in Action book, then chapter 5 is all
about error handling.


On Tue, Mar 12, 2013 at 6:42 AM, manglu  wrote:
> Hi,
>
> I am using Spring-WS to make outbound calls in my camel routes.
>
> I want to attempt retries for this end point (to eliminate network glitches
> or other ephemeral issues) before throwing up errors.
>
> Is this retry exposed via spring-ws config.
>
> I can't see an option in the doco @
> http://camel.apache.org/spring-web-services.html
>
> Appreciate if some one can help me in achieving this.
>
> Thanks
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Spring-WS-how-to-configure-retries-number-of-attempts-tp5728956.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Spring-WS how to configure retries (number of attempts)

2013-03-11 Thread manglu
Hi,

I am using Spring-WS to make outbound calls in my camel routes.

I want to attempt retries for this end point (to eliminate network glitches
or other ephemeral issues) before throwing up errors.

Is this retry exposed via spring-ws config. 

I can't see an option in the doco @
http://camel.apache.org/spring-web-services.html

Appreciate if some one can help me in achieving this. 

Thanks




--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-WS-how-to-configure-retries-number-of-attempts-tp5728956.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Premature servlet response

2013-03-11 Thread Willem jiang
Hi,

Have you went through the onCompletion[1] page?
If you want to processor2 take effect, you need to remove the onCompletion from 
your route.

[1]http://camel.apache.org/oncompletion.html  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, March 11, 2013 at 9:44 PM, Christian Schäfer wrote:

> Hello,
>  
> currently I have the problem of not beeing able to set servlet response which 
> was generated by the last processor of my route:
>  
>  
> servlet-consumer -> processor1 -> onCompletion -> aggregate -> processor2 
> (response builder)
>  
>  
> When I fire my test to the deployed servlet endpoint (camel 2.10.4 @ JBoss 
> 7.1) it behaves in the order that:
> 1. body of processor1 is returned as http response
> 2. after that, processor2 starts which is too late as the response is still 
> sent.
>  
> How to force the route to send the response only when processor2 is done?
>  
> regards
> Christian  





Re: Camel quartz component query

2013-03-11 Thread Willem jiang
Hi,

Camel has the management API[1], which could be used to start or stop the route.
I think you can leverage this API to start a route from the trigger.

[1]http://camel.apache.org/management-example.html  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Tuesday, March 12, 2013 at 12:15 AM, gilboy wrote:

> Hi
>  
> Assume I have a route which is using the quartz component(using the quartz
> database store).  
>  
> Is it possible at runtime to add new triggers. In other words, assume I have
> an ad-hoc route that I want to execute. If I configure this route to use the
> quartz component with the quartz database store. Can I now add ad-hoc new
> triggers to the database at runtime which will result in the route getting
> executed
>  
> Thanks
> Joe
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-quartz-component-query-tp5728942.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).





IP Authorization

2013-03-11 Thread Luis Augusto Coutinho Sauerbronn
Hello Camel users,

Is there an easy way to configure IP access control to a group of different
camel routes?
I have a group of routes (HTTP, JMS, CXF and Mina) and was wondering if I
could use an unified solution to control IP based Authorization in all of
them. The Authentication is already done in each route independently, so it
need not to be dealt in this layer.

Best regards,

Sauer 


Re: Unmarshall CSV to Map>

2013-03-11 Thread Christian Müller
Did you checked the csv, beanio or bindy component?
Instead of a converter, you can also implement a Processor or bean.

Best,
Christian

On Mon, Mar 11, 2013 at 9:52 AM, Joe San  wrote:

> Camel Users,
>
> Is there a way to convert the body to a Map of a Map without needing to
> write a custom converter? The body comes from a CSV file with comma as the
> delimitter. The CSV contains 5 fields and out of that five fields, I want
> to pick 3 of them and create the Map of Map structure. Any suggestions?
>
> Regards,
> Jothi
>



--


RE: Hibernate Current Session issue in Camel

2013-03-11 Thread ganeshkumar.kanagavel
Hi Claus,
Please find the bean definition in the camel context.

  


  
  

  
  

  

  
  



  
name.hbm.xml
  



  
hibernate.dialect=org.hibernate.dialect.SQLServerDialect
hibernate.hbm2ddl.auto=create

hibernate.query.factory_class=org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
  

  

Thanks
Ganesh

-Original Message-
From: Kanagavel, Ganesh Kumar: CRES (NYK)
Sent: Monday, March 11, 2013 3:04 PM
To: users@camel.apache.org
Subject: RE: Hibernate Current Session issue in Camel

Camel Version is 2.10.3
Camel-Extra Version is 2.10.1
camel-hibernate Version is 2.10.1

spring-tx Version is 3.2.1.RELEASE
spring-jdbc Version is 3.1.0.RELEASE
spring-expression is 3.1.0.RELEASE



-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com]
Sent: Monday, March 11, 2013 1:57 PM
To: users@camel.apache.org
Subject: Re: Hibernate Current Session issue in Camel

Hi

What version of Camel, Hibernate, camel-extra and Spring are you using?



On Mon, Mar 11, 2013 at 6:17 PM,  
mailto:ganeshkumar.kanaga...@barclays.com>> 
wrote:
> Hi,
> Please advise if anyone has faced this problem of implementing hibernate in 
> Camel?
>
> by: java.lang.NoSuchMethodError: 
> org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
> at 
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
> at 
> org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
> at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncPr
> ocessorBridge.process(AsyncProcessorConverterHelper.java:61)
>
> Thanks
> Ganesh
>
>
> ___
>
> This message may contain information that is confidential or privileged. If 
> you are not an intended recipient of this message, please delete it and any 
> attachments, and notify the sender that you have received it in error. Unless 
> specifically stated in the message or otherwise indicated, you may not 
> uplicate, redistribute or forward this message or any portion thereof, 
> including any attachments, by any means to any other person, including any 
> retail investor or customer. This message is not a recommendation, advice, 
> offer or solicitation, to buy/sell any product or service, and is not an 
> official confirmation of any transaction. Any opinions presented are solely 
> those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: 
> www.barclays.com/emaildisclaimer 
> and, if received from Barclays' Sales or Trading desk, the terms available 
> at: 
> www.barclays.com/salesandtradingdisclaimer/.
>  By messaging with Barclays you consent to the foregoing. Barclays Bank PLC 
> is a company registered in England (number 1026167) with its registered 
> office at 1 Churchill Place, London, E14 5HP. This email may relate to or be 
> sent from other members of the Barclays group.
>
> ___



--
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen 
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: 
www.barclays.com/emaildisclaimer and, 
if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/.
 By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is 
a 

RE: Hibernate Current Session issue in Camel

2013-03-11 Thread ganeshkumar.kanagavel
Camel Version is 2.10.3
Camel-Extra Version is 2.10.1
camel-hibernate Version is 2.10.1

spring-tx Version is 3.2.1.RELEASE
spring-jdbc Version is 3.1.0.RELEASE
spring-expression is 3.1.0.RELEASE



-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com] 
Sent: Monday, March 11, 2013 1:57 PM
To: users@camel.apache.org
Subject: Re: Hibernate Current Session issue in Camel

Hi

What version of Camel, Hibernate, camel-extra and Spring are you using?



On Mon, Mar 11, 2013 at 6:17 PM,   wrote:
> Hi,
> Please advise if anyone has faced this problem of implementing hibernate in 
> Camel?
>
> by: java.lang.NoSuchMethodError: 
> org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
> at 
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
> at 
> org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
> at 
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>
> Thanks
> Ganesh
>
>
> ___
>
> This message may contain information that is confidential or privileged. If 
> you are not an intended recipient of this message, please delete it and any 
> attachments, and notify the sender that you have received it in error. Unless 
> specifically stated in the message or otherwise indicated, you may not 
> uplicate, redistribute or forward this message or any portion thereof, 
> including any attachments, by any means to any other person, including any 
> retail investor or customer. This message is not a recommendation, advice, 
> offer or solicitation, to buy/sell any product or service, and is not an 
> official confirmation of any transaction. Any opinions presented are solely 
> those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: 
> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or 
> Trading desk, the terms available at: 
> www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
> consent to the foregoing. Barclays Bank PLC is a company registered in 
> England (number 1026167) with its registered office at 1 Churchill Place, 
> London, E14 5HP. This email may relate to or be sent from other members of 
> the Barclays group.
>
> ___



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


Re: Hibernate Current Session issue in Camel

2013-03-11 Thread Claus Ibsen
Hi

What version of Camel, Hibernate, camel-extra and Spring are you using?



On Mon, Mar 11, 2013 at 6:17 PM,   wrote:
> Hi,
> Please advise if anyone has faced this problem of implementing hibernate in 
> Camel?
>
> by: java.lang.NoSuchMethodError: 
> org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
> at 
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
> at 
> org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
> at 
> org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
> at 
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
>
> Thanks
> Ganesh
>
>
> ___
>
> This message may contain information that is confidential or privileged. If 
> you are not an intended recipient of this message, please delete it and any 
> attachments, and notify the sender that you have received it in error. Unless 
> specifically stated in the message or otherwise indicated, you may not 
> uplicate, redistribute or forward this message or any portion thereof, 
> including any attachments, by any means to any other person, including any 
> retail investor or customer. This message is not a recommendation, advice, 
> offer or solicitation, to buy/sell any product or service, and is not an 
> official confirmation of any transaction. Any opinions presented are solely 
> those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: 
> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or 
> Trading desk, the terms available at: 
> www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
> consent to the foregoing. Barclays Bank PLC is a company registered in 
> England (number 1026167) with its registered office at 1 Churchill Place, 
> London, E14 5HP. This email may relate to or be sent from other members of 
> the Barclays group.
>
> ___



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Intermittent test failures

2013-03-11 Thread cheekychops
I have a test class which extends CamelBlueprintTestSupport which has a
number of test methods on it. The tests follow the normal pattern: set mock
expectations/do stuff/make assertions. Sometimes when I run the tests they
all pass, sometimes some of them fail. When they fail I always get the
following output in the log:

[ Blueprint Extender: 3] BlueprintContainerImpl INFO  Bundle
SchedulingRouteTest is waiting for namespace handlers
[http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0,
http://camel.apache.org/schema/blueprint]
[ Blueprint Extender: 3] BlueprintContainerImpl INFO  Bundle
SchedulingRouteTest is waiting for namespace handlers
[http://camel.apache.org/schema/blueprint]
Test bundle headers: Bundle-ManifestVersion=2, Bundle-Name=System Bundle,
Bundle-SymbolicName=de.kalpatec.pojosr.framework, Bundle-Vendor=kalpatec,
Bundle-Version=0.2.1
ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle:
de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
org.apache.camel.camel-core [6], symbolicName: org.apache.camel.camel-core
ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
org.apache.camel.camel-spring [9], symbolicName:
org.apache.camel.camel-spring
ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
bundle: org.apache.aries.blueprint [37], symbolicName:
org.apache.aries.blueprint
ServiceReference: [org.fusesource.hawtdispatch.Dispatcher], bundle:
org.fusesource.hawtdispatch.hawtdispatch [26], symbolicName:
org.fusesource.hawtdispatch.hawtdispatch
ServiceReference: [org.osgi.service.cm.ConfigurationAdmin], bundle:
org.apache.felix.configadmin [48], symbolicName:
org.apache.felix.configadmin
ServiceReference: [org.apache.camel.spi.LanguageResolver], bundle:
org.apache.camel.camel-spring [9], symbolicName:
org.apache.camel.camel-spring
ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
org.apache.aries.blueprint [37], symbolicName: org.apache.aries.blueprint
ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle:
org.apache.activemq.activemq-camel [7], symbolicName:
org.apache.activemq.activemq-camel
ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
org.apache.camel.camel-blueprint [35], symbolicName:
org.apache.camel.camel-blueprint
ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
org.apache.activemq.activemq-camel [7], symbolicName:
org.apache.activemq.activemq-camel
ServiceReference: [org.apache.aries.proxy.ProxyManager], bundle:
org.apache.aries.proxy.impl [39], symbolicName: org.apache.aries.proxy.impl
ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle:
org.apache.camel.camel-core [6], symbolicName: org.apache.camel.camel-core
ServiceReference: [org.apache.camel.spi.LanguageResolver], bundle:
org.apache.camel.camel-core [6], symbolicName: org.apache.camel.camel-core
ServiceReference: [org.apache.felix.cm.PersistenceManager], bundle:
org.apache.felix.configadmin [48], symbolicName:
org.apache.felix.configadmin
ServiceReference: [org.osgi.service.packageadmin.PackageAdmin], bundle:
de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
ServiceReference: [org.apache.aries.blueprint.services.ParserService],
bundle: org.apache.aries.blueprint [37], symbolicName:
org.apache.aries.blueprint
ServiceReference: [org.osgi.framework.hooks.bundle.EventHook], bundle:
org.apache.aries.blueprint [37], symbolicName: org.apache.aries.blueprint
ServiceReference: [org.apache.camel.spi.DataFormatResolver], bundle:
org.apache.camel.camel-jaxb [19], symbolicName: org.apache.camel.camel-jaxb
ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
org.apache.aries.blueprint [37], symbolicName: org.apache.aries.blueprint
ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
bundle: org.apache.camel.camel-blueprint [35], symbolicName:
org.apache.camel.camel-blueprint
ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
org.apache.camel.camel-jms [8], symbolicName: org.apache.camel.camel-jms
ServiceReference: [org.osgi.service.startlevel.StartLevel], bundle:
de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle:
org.apache.camel.camel-jaxb [19], symbolicName: org.apache.camel.camel-jaxb
[  main] SchedulingRouteTestINFO 

[  main] SchedulingRouteTestINFO 
Testing done:
shouldDisableJob(com.monitise.ep.scheduling.impl.SchedulingRouteTest)
[  main] SchedulingRouteTestINFO  Took:
30.148 seconds (30148 millis)
[  main] SchedulingRouteTestINFO 

Hibernate Current Session issue in Camel

2013-03-11 Thread ganeshkumar.kanagavel
Hi,
Please advise if anyone has faced this problem of implementing hibernate in 
Camel?

by: java.lang.NoSuchMethodError: 
org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
at 
org.apacheextras.camel.component.hibernate.SpringTransactionStrategy$1.doInTransaction(SpringTransactionStrategy.java:43)
at 
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
at 
org.apacheextras.camel.component.hibernate.SpringTransactionStrategy.execute(SpringTransactionStrategy.java:40)
at 
org.apacheextras.camel.component.hibernate.HibernateProducer.process(HibernateProducer.java:49)
at 
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)

Thanks
Ganesh


___

This message may contain information that is confidential or privileged. If you 
are not an intended recipient of this message, please delete it and any 
attachments, and notify the sender that you have received it in error. Unless 
specifically stated in the message or otherwise indicated, you may not 
uplicate, redistribute or forward this message or any portion thereof, 
including any attachments, by any means to any other person, including any 
retail investor or customer. This message is not a recommendation, advice, 
offer or solicitation, to buy/sell any product or service, and is not an 
official confirmation of any transaction. Any opinions presented are solely 
those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer 
and, if received from Barclays' Sales or Trading desk, the terms available at: 
www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you 
consent to the foregoing. Barclays Bank PLC is a company registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP. This email may relate to or be sent from other members of the Barclays 
group.

___


Re: Reply messages from aggregator

2013-03-11 Thread Henryk Konsek
Hi Sven,

> I have to implement a protocol called ATS-M.

I'm afraid that we still don't get the protocol you want to implement.
Could you elaborate this topic a little bit?

> By the way, I did not understand yet, what seda means and what is the
> difference to direct.

Seda [1] is in-memory message queue. It's a little bit like the
"asynchronous direct" component :) .

Best regards.

[1] http://camel.apache.org/seda.html

--
Henryk Konsek
http://henryk-konsek.blogspot.com


Camel quartz component query

2013-03-11 Thread gilboy
Hi

Assume I have a route which is using the quartz component(using the quartz
database store). 

Is it possible at runtime to add new triggers. In other words, assume I have
an ad-hoc route that I want to execute. If I configure this route to use the
quartz component with the quartz database store. Can I now add ad-hoc new
triggers to the database at runtime which will result in the route getting
executed

Thanks
Joe



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-quartz-component-query-tp5728942.html
Sent from the Camel - Users mailing list archive at Nabble.com.


AW: Files cannot be moved on FTP

2013-03-11 Thread Lutter, Robin
Hi Claus,

We are already using stepwise=false. 
This is the ftp-uri I have in my testcase:
from("ftp://"; + getFTPServerAddress() +
"/test?password=secret" +
"&ftpClient.dataTimeout=3&stepwise=false" +
"&passiveMode=true&binary=true" +
"&move=success&separator=UNIX" +
"&antInclude=FILE.TXT")
.log("${body}");

Tracing file.remote turns out, that  FileUtil normalizePath is using
File.separator from local system and not the separator setting
TRACE org.apache.camel.component.file.remote.FtpOperations -
changeCurrentDirectory(/)
TRACE org.apache.camel.component.file.remote.FtpOperations - Changing
directory: \\

With stepwise=true the extra escaped backslash is away:
TRACE org.apache.camel.component.file.remote.FtpOperations -
changeCurrentDirectory(/)
TRACE org.apache.camel.component.file.remote.FtpOperations - Changing
directory: \

Regards Robin

On Thu, Mar 7, 2013 at 12:04 AM, Claus Ibsen 
wrote:
> On Wed, Mar 6, 2013 at 12:05 PM, Lutter, Robin
 wrote:
>> Hi Claus,
>>
>> we use ftp. Setting separator to UNIX doesn't help. Contrary the
error 
>> occurs earlier in process:
>>
>> WARN  org.apache.camel.component.file.GenericFileOnCompletion -
Caused
>> by: 
>> [org.apache.camel.component.file.GenericFileOperationFailedException
>> - File operation failed: 550 Failed to change directory.
>>  Cannot change directory to: \\. Code: 550]
>> org.apache.camel.component.file.GenericFileOperationFailedException:
>> File operation failed: 550 Failed to change directory.
>>
>> Strange: server log can still contains CWD \\
>>
>
> Can you try with stepwise=false
> You can read more about this option at: http://camel.apache.org/ftp2
>
> And yeah looks like we should fix that double slash bug. It ought to
be a single slash.
>
> If you get this error all the time. Then feel free to enable TRACE
logging on org.apache.camel.component.file.remote
>
> Then we can possible use that to bettet understand what goes wrong.
>
>
>
>> Regards Robin
>>
>> On Wed, Mar 6, 2013 at 11:23 AM, Claus Ibsen 
>> wrote:
>>> On Wed, Mar 6, 2013 at 10:31 AM, Lutter, Robin
>>  wrote:
>>> > Hi Filippo Balicchia,
>>> >
>>> > i can confirm, that move works with camel-ftp 2.10.4 and apache 
>>> > ftpserver project on windows maschine with JDK 1.6.0_33.
>>> > While running with ftp server under RHEL 6 move failed with
>> errorcode
>>> > 550. Rename works with commandline.
>>> >
>>> > Logs from ftpserver:
>>> >>  CWD 2012120100.OML "550 Failed to change
>>> > directory."
>>> >>  CWD "\"
>>> > "550 Failed to change directory."
>>> >>  CWD \\
>>> > "550 Failed to change directory."
>>> >>  CWD "
>>> > "550 Failed to change directory."
>>> >
>>> > Differences in log between 2.10.2 and 2.10.4
>>> > 2.10.2: 2.10.4
>>> > CWD test/success CWD test/success
>>> > PWD   PWD
>>> > CWD /CWD \\
>>> >
>>> > Regards
>>> > Robin
>>>
>>> Are you using the ftp or sftp. Just to be sure which one is being
>> used.
>>>
>>> Also you can try setting separator=Unix to tell Camel to use / for
>> path separators.
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -
>>> Red Hat, Inc.
>>> FuseSource is now part of Red Hat
>>> Email: cib...@redhat.com
>>> Web: http://fusesource.com
>>> Twitter: davsclaus
>>> Blog: http://davsclaus.com
>>> Author of Camel in Action: http://www.manning.com/ibsen



CamelOne 2013 Call for papers

2013-03-11 Thread Robert Davies
This is the third year of CamelOne, the conference designed for professionals 
using open source integration and messaging solutions in the enterprise, 
specifically Apache Camel, ServiceMix, ActiveMQ, Karaf and CXF. The conference 
will feature a mixture of educational sessions and network events that will 
enable attendees to meet, learn and share ideas with other members of the open 
source community.  

CamelOne 2013 is being held in Boston this year from June 10 - 11th, and you 
are key to making this year a success. The best conferences have the best 
content and speakers, so we are inviting you to submit your CamelOne talk here 
- http://camelone.com/apache-camel-conference-2013/cfp/  and help us make this 
the best CamelOne yet!

thanks,

Rob



Premature servlet response

2013-03-11 Thread Christian Schäfer
Hello,

currently I have the problem of not beeing able to set servlet response which 
was generated by the last processor of my route:


servlet-consumer ->  processor1 -> onCompletion -> aggregate -> processor2 
(response builder)


When I fire my test to the deployed servlet endpoint (camel 2.10.4 @ JBoss 7.1) 
it behaves in the order that:
1. body of processor1 is returned as http response
2. after that, processor2 starts which is too late as the response is still 
sent.

How to force the route to send the response only when processor2 is done?

 
regards
Christian  

Re: base class for context component?

2013-03-11 Thread Taariq Levack
Hi Sven

Perhaps you've misunderstood the following...
"Defining the context component"

In this context(excuse me), what's meant is a bean definition.
You should just use the DefaultCamelContext to define your own context,
with it's own name as this one is blackbox, and it's own routes.

Taariq


On Mon, Mar 11, 2013 at 11:21 AM, Sven Bauhan  wrote:

> On 03/09/13 20:40, Henryk Konsek wrote:
>
>> Hi Sven,
>>
>>  I'm trying to build my own context component as described in
>>> http://camel.apache.org/**context.html
>>> .
>>>
>> Actually Context Component is ready to use out of the box. You don't
>> need to create your own. Or if you have to, please share with us the
>> reasoning behind this need.
>>
>> Best regards.
>>
>>  No, you misunderstood me. I do not want to replace the Context Component
> in Camel, but I need a class to define it. In the example the listing shows
> just the definition of the route without class or method. My questions
> concers the place for the definition of DefaultCamelContext. Is there an
> interface definition for a class containing a context component?
>
> Thanks, Sven
>
>


Re: Polling in subfolder with sftp fail (camel 2.10.4)

2013-03-11 Thread seazor
I just tried with stepwise=false option but i also had an exception.
Anyone an idea ?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Polling-in-subfolder-with-sftp-fail-camel-2-10-4-tp5728836p5728934.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel Routing between JBoss MQ-s

2013-03-11 Thread Claus Ibsen
On Mon, Mar 11, 2013 at 11:15 AM, tbenke
 wrote:
> Dear Claus,
> thank You for Your reply. I'll give a try to FABs - thanks for the hint!
> I still hope that I'll succeed, because my Camel route can send messages to
> JBoss MQ.
> Thanks again,
> Tamás.
>

Another alternative that some people have had success with is to
create an uber bundle JAR with all the JBossMQ JARs needed and their
dependecies. Then you can use install this uber JAR as a single
bundle, and use either the BND tool, or install in ServiceMix using
the wrap protocol

install wrap:file:/somepath/myuberjar.jar



>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Routing-between-JBoss-MQ-s-tp5728923p5728930.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: Reply messages from aggregator

2013-03-11 Thread Sven Bauhan

On 03/10/13 02:53, Christian Müller wrote:

Can you explain in more detail what you want to do? I didn't understand
your requirement...
I have to implement a protocol called ATS-M. It splits messages into 
segments for transmission. At the receiver the segments are aggregated 
to the original message.

One question: Your "aggregation" object implements Predicate *AND*
AggregationStrategy?
Sure, the predicate belongs to the aggregation. So I put them in the 
same class as they belong together.

By looking a your example, your direct endpoint receives (String/Byte
array/...) messages and convert it into a JAXB annotated Java Object. You
aggregate all messages based on the "MSG/MID" element until your
aggregation predicate indicates the end. Afterwards you send the aggregated
messages to another direct endpoint.

correct


*IF* you want to send back a message at the time it receives in the
aggregator, I would do something like this



The problem is, that I cannot just send a reply if a message is 
received. The aggregator has to parse the message and then it replies an 
ACK or a fault message. This can only be done in the aggregator, cause 
the new segment has to be checked against the incomplete message in the 
aggregator.
So what I need is a second output port from the aggregator where the 
reply messages are sent and which can be taken into a camel route.



from("direct:atsm-segment")
   .unmarshal(jaxb)
   .inOnly("seda:aggregator")
   .inOut("bean:myResponseBuilder")
   .marshal(jaxb);

from("seda:aggregator")
   .aggregate(xpath("/MSG/MID"),
aggregation).completionPredicate(aggregation)
   .to("direct:atsm-out");
By the way, I did not understand yet, what seda means and what is the 
difference to direct.


A jaxb marshaling is not needed. I want to process the data internally.
I added a processor to the route to put the header information in the 
XML structure into the camel message header:


from("direct:atsm-segment")
.unmarshal(jaxb)
.process(atsm_process)
.aggregate(header("MID"), 
aggregation).completionPredicate(aggregation)

// .reply_to("")
.to("direct:atsm-out");

Thanks, Sven



Re: base class for context component?

2013-03-11 Thread Sven Bauhan

On 03/09/13 20:40, Henryk Konsek wrote:

Hi Sven,


I'm trying to build my own context component as described in
http://camel.apache.org/context.html.

Actually Context Component is ready to use out of the box. You don't
need to create your own. Or if you have to, please share with us the
reasoning behind this need.

Best regards.

No, you misunderstood me. I do not want to replace the Context Component 
in Camel, but I need a class to define it. In the example the listing 
shows just the definition of the route without class or method. My 
questions concers the place for the definition of DefaultCamelContext. 
Is there an interface definition for a class containing a context component?


Thanks, Sven



Unmarshall CSV to Map>

2013-03-11 Thread Joe San
Camel Users,

Is there a way to convert the body to a Map of a Map without needing to
write a custom converter? The body comes from a CSV file with comma as the
delimitter. The CSV contains 5 fields and out of that five fields, I want
to pick 3 of them and create the Map of Map structure. Any suggestions?

Regards,
Jothi


Re: CamelContext resume does not reactivate the route

2013-03-11 Thread Claus Ibsen
Hi

I assume fromLocation is a file endpoint?

You can try setting option runLoggingLevel=INFO, then Camel logs a
INFO level when the file consumer runs on each poll. Then you can see
if that loggings does not resume when you resume Camel.

Also with JMX you can take a look at the scheduled thread pool the
file consumer uses, under threadpools. and see if its task count goes
up. Or if there core thread count is not 1.

There has been this odd situation in the past that the scheduled
thread pool seems "vanished" and didn't kick in new tasks as it was
supposed to. And that is usually if there was a java.lang.Error or
something that escaped the runnable task, causing the thread pool to
not reschedule a task. We do have try .. catch for this now.







On Mon, Mar 11, 2013 at 5:29 AM, rajesh_h  wrote:
> Here is the route-psp1
>
> // Processing one csv file at a time
> from(fromLocation).routeId("route-psp1")
> .choice()
> .when(simple("${file:ext} == 'csv'")).to("direct:csv")
> .otherwise().log("Ignoring unknown file ${file:name}");
>
> // And here is route-psp2, which streams 1000 lines at a time and processes
> them.
> from("direct:csv").routeId("route-psp2")
> .process(new LogFileInitializer())
>   // Initialize the File Appender
> .log("Processing file ${file:name}")
> .beanRef("pspWorkingContext", "initialize")   
>   // Initialize the working
> context
> .split().tokenize("\n", 1000).streaming() 
>   // Stream 1000 lines at a time
> .log("Stream the next 1000 lines")
> .to("direct:thousands")
> .end()
> .log("Processed file ${file:name}")   
>   // Done processing the file.
> .choice()
> .when().method("pspWorkingContext", 
> "stopRoute")// If the route was
> stopped, move to retry location.
> .log("Moving file ${file:name} to 
> retry location as r-${file:name}")
> .to(getRetryEndPoint()).end()
> .beanRef("pspWorkingContext", "done")
> .to(getToEndPoint());
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/CamelContext-resume-does-not-reactivate-the-route-tp5728862p5728913.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: Camel Routing between JBoss MQ-s

2013-03-11 Thread Claus Ibsen
Hi

I am not sure JBossMQ is OSGi compliant. Eg as you needed to use the
BND tools for the JARs.
Using this approach can be complicated.

You can try an alternative by deploying the application that uses
JBossMQ as WAR files and embed all the JARs you need.

Another alternative is FAB that was designed to make deploying JARs to
Karaf/ServiceMix/Fuse ESB much easier.

There is a link here with links to further material and videos:
http://www.davsclaus.com/2012/08/osgi-deployment-made-easy-with-fab.html

If you keep on trying to make a bunch of JBossMQ JARs deploy in OSGi
by using the BND tools, you can spend another 2.5 months and get
nowhere - its really hard.

Its often easier if/when the vendor offers OSGi compliant JARs such as
Apache ActiveMQ. Then that would work easily by installing ActiveMQ
client using a feature.

feature:install activemq-client
feature:install activemq-camel

If you want further help and people to investigate your setup. You may
consider looking at commercial support
http://camel.apache.org/commercial-camel-offerings.html





On Mon, Mar 11, 2013 at 9:18 AM, tbenke
 wrote:
> Hello Everybody!
> I have worked for a while on a Camel route, between some JBoss MQ-s and
> other (file, Karaf log) endpoints.
> I use Apache ServiceMix 4.4.2 (with Camel 2.8.5 and Spring 3.0.6.RELEASE
> inside), and JBoss [EAP] 5.1.1, under Microsoft Windows 7 Professional
> 64-bit SP1.
>
> I had to shift (with +300) the port set of JBoss to avoid interference with
> ServiceMix and Oracle 11g database, so that I run JBoss with this command:
> run.bat -Djboss.service.binding.set=ports-03
> I have created two JBoss queue-s by means of the admin console of JBoss,
> with JNDI names queue/Test1
> and queue/Test2.
>
> I collected a set of JBoss dependency JARs, and OSGi-fied them with the BND
> tool:
> concurrent.jar
> javassist.jar
> jboss-aop-client.jar
> jboss-client.jar
> jboss-common-core.jar
> jboss-ha-client.jar
> jboss-ha-legacy-client.jar
> jboss-javaee.jar
> jboss-logging-spi.jar
> jboss-mdr.jar
> jboss-messaging-client.jar
> jboss-remoting.jar
> jboss-security-spi.jar
> jboss-serialization.jar
> jmx-invoker-adaptor-client.jar
> jnp-client.jar
> trove.jar
>
> I have used some other JARs as well, but I think, they didn't make any
> difference:
> jbossmq.jar
> jbossall-client.jar
> jbossmq-client.jar
> jboss-jmx.jar
>
> I have used this Spring camel-context.xml (containing 3 route definitions):
>
>
> The first (File >> JBoss MQ) and second (Timer >> JBoss MQ) routes are
> working properly, if I drop the
> above mentioned dependencies and the camel-context.xml to ServiceMix's
> /deploy folder.
>
> The third (JBoss MQ >> Karaf log) route does not process messages, despite
> the consumer appears on the Test1 JBoss queue, and the bundle/route status
> is Active/Started.
>
> The automatic OSGi headers of the deployed camel-context.xml are:
>
>
> The imports of this camel-context.xml artifact are:
>
>
> Of course, there are no exports.
>
> I made a complete OSGi bundle JAR from the mentioned camel-context.xml, with
> the following MANIFEST.MF:
>
>
> The org.jboss.mq package was missing, so I deployed jboss/jbossmq_3.2.3.jar
> (downloaded and bundlefied from a local Maven repository).
> The bundle was immediately started, and the behavior of the routes was
> exactly the same as I mentioned above.
>
> It looks wery cool and simple to write down, but in reality, I spent
> approximately 2.5 months with it,
> and after all, I still don't have a Camel/Spring config to consume from a
> JBoss MQ!
>
> I have read a number of resources (including official JBoss/Camel
> documentation); for example:
> http://www.jboss.org/jbossas/docs
> https://issues.jboss.org/browse/JBBOOT-138
> http://www.coderanch.com/t/90486/JBoss/Failed-load-users-passwords-role
> http://docs.jboss.org/jbossas/getting_started/v5/html/tour.html#d0e569
> http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html
> http://www.mastertheboss.com/jboss-jms/jboss-jms-queue-example
> http://stackoverflow.com/questions/2478729/jboss-messaging-jms
> http://onjava.com/pub/a/onjava/2006/02/22/asynchronous-messaging-with-spring-jms.html?page=1
> http://forum.springsource.org/showthread.php?17491-Failed-to-convert-SpyConnectionFactory-to-ConnectionFactory
> http://integrationsphere.blogspot.hu/2011/07/camel-and-hornetq-as-jms-provider.html
> http://integrationsphere.blogspot.hu/2011/07/camel-and-hornetq-as-jms-provider.html
> http://java.dzone.com/articles/camel-and-hornetq-jms-provider
> http://www.theserverside.com/discussions/thread.tss?thread_id=9653
> https://community.jboss.org/thread/29768
> http://stackoverflow.com/questions/5256060/ejb-exception-while-try-to-run-the-client
> http://docs.jboss.org/jbossmessaging/docs/userguide-1.4.2.GA/html/installation.html
> http://mavenhub.c

Camel Routing between JBoss MQ-s

2013-03-11 Thread tbenke
Hello Everybody!
I have worked for a while on a Camel route, between some JBoss MQ-s and
other (file, Karaf log) endpoints.
I use Apache ServiceMix 4.4.2 (with Camel 2.8.5 and Spring 3.0.6.RELEASE
inside), and JBoss [EAP] 5.1.1, under Microsoft Windows 7 Professional
64-bit SP1.

I had to shift (with +300) the port set of JBoss to avoid interference with
ServiceMix and Oracle 11g database, so that I run JBoss with this command:
run.bat -Djboss.service.binding.set=ports-03
I have created two JBoss queue-s by means of the admin console of JBoss,
with JNDI names queue/Test1
and queue/Test2.

I collected a set of JBoss dependency JARs, and OSGi-fied them with the BND
tool:
concurrent.jar
javassist.jar
jboss-aop-client.jar
jboss-client.jar
jboss-common-core.jar
jboss-ha-client.jar
jboss-ha-legacy-client.jar
jboss-javaee.jar
jboss-logging-spi.jar
jboss-mdr.jar
jboss-messaging-client.jar
jboss-remoting.jar
jboss-security-spi.jar
jboss-serialization.jar
jmx-invoker-adaptor-client.jar
jnp-client.jar
trove.jar

I have used some other JARs as well, but I think, they didn't make any
difference:
jbossmq.jar
jbossall-client.jar
jbossmq-client.jar
jboss-jmx.jar

I have used this Spring camel-context.xml (containing 3 route definitions):


The first (File >> JBoss MQ) and second (Timer >> JBoss MQ) routes are
working properly, if I drop the
above mentioned dependencies and the camel-context.xml to ServiceMix's
/deploy folder.

The third (JBoss MQ >> Karaf log) route does not process messages, despite
the consumer appears on the Test1 JBoss queue, and the bundle/route status
is Active/Started.

The automatic OSGi headers of the deployed camel-context.xml are:


The imports of this camel-context.xml artifact are:


Of course, there are no exports.

I made a complete OSGi bundle JAR from the mentioned camel-context.xml, with
the following MANIFEST.MF:


The org.jboss.mq package was missing, so I deployed jboss/jbossmq_3.2.3.jar
(downloaded and bundlefied from a local Maven repository).
The bundle was immediately started, and the behavior of the routes was
exactly the same as I mentioned above.

It looks wery cool and simple to write down, but in reality, I spent
approximately 2.5 months with it, 
and after all, I still don't have a Camel/Spring config to consume from a
JBoss MQ!

I have read a number of resources (including official JBoss/Camel
documentation); for example:
http://www.jboss.org/jbossas/docs
https://issues.jboss.org/browse/JBBOOT-138
http://www.coderanch.com/t/90486/JBoss/Failed-load-users-passwords-role
http://docs.jboss.org/jbossas/getting_started/v5/html/tour.html#d0e569
http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html
http://www.mastertheboss.com/jboss-jms/jboss-jms-queue-example
http://stackoverflow.com/questions/2478729/jboss-messaging-jms
http://onjava.com/pub/a/onjava/2006/02/22/asynchronous-messaging-with-spring-jms.html?page=1
http://forum.springsource.org/showthread.php?17491-Failed-to-convert-SpyConnectionFactory-to-ConnectionFactory
http://integrationsphere.blogspot.hu/2011/07/camel-and-hornetq-as-jms-provider.html
http://integrationsphere.blogspot.hu/2011/07/camel-and-hornetq-as-jms-provider.html
http://java.dzone.com/articles/camel-and-hornetq-jms-provider
http://www.theserverside.com/discussions/thread.tss?thread_id=9653
https://community.jboss.org/thread/29768
http://stackoverflow.com/questions/5256060/ejb-exception-while-try-to-run-the-client
http://docs.jboss.org/jbossmessaging/docs/userguide-1.4.2.GA/html/installation.html
http://mavenhub.com/c/org/jnp/interfaces/namingcontextfactory/dependency
https://community.jboss.org/thread/154570
https://community.jboss.org/message/207352#207352
https://community.jboss.org/thread/175935
https://community.jboss.org/thread/162575
http://www.javamonamour.org/2011/03/me-jms-hermesjms-and-jboss.html
http://forum.springsource.org/showthread.php?59005-JNDI-connection-factory-config
http://www.stevideter.com/2008/08/25/simplifying-spring%E2%80%99s-jms-configuration-for-jnditemplate/
http://www.mydeveloperconnection.com/html/Spring-JNDI-Datasource..htm
http://forum.springsource.org/showthread.php?60768-Configuring-Initial-Context
http://forum.springsource.org/archive/index.php/t-124901.html
http://java.dzone.com/articles/bridging-between-jms-and
http://mail-archives.apache.org/mod_mbox/camel-users/20.mbox/%3c1322215472697-5022416.p...@n5.nabble.com%3E
http://72.2.112.194/tag/spring
http://static.springsource.org/spring/docs/3.0.0.M3/reference/html/ch23s04.html
http://www.mentby.com/Group/apache-camel/jms-transaction-in-jboss-camel-is-not-work.html
http://www.torsten-horn.de/techdocs/jee-jndi.htm
http://karaf.922171.n3.nabble.com/Paxexam-karaf-startup-issue-td3914766.html
http://karaf.922171.n3.nabble.com/Paxexam-karaf-startup-issue-td3916549.html
http://www.castor.org

New Contribution: Component XML Digital Signature

2013-03-11 Thread Franz Paul Forsthofer
Hello,


I want to contribute a new component for XML Digital Signature. There
shall be two endpoints; the signer endpoint shall sign the body of the
in-message and create an XML digital signature in the out-message, the
verifier endpoint shall verify the XML signature contained in the body
of the in-message and return the signed content in the body of the
out-message.

The implementation shall be based on the JRE API for XML Digital
Signature 
(http://docs.oracle.com/javase/7/docs/technotes/guides/security/xmldsig/overview.html)
which fulfills the requirements of the XML signature specification
(http://www.w3.org/TR/xmldsig-core/).

The first version shall support

·   RSA and DSA keys
·   enveloping signatures
·   X509Certificate element as children of the KeyInfo element
·   the canonicalization algorithms
o   http://www.w3.org/TR/2001/REC-xml-c14n-20010315
o   http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments
o   http://www.w3.org/2001/10/xml-exc-c14n#"; (needs
inclusive namespace prefix list, we should not support this algorithm
in the first implementation)
o   http://www.w3.org/2001/10/xml-exc-c14n#WithComments
·   the transform algorithms
o  
o http://www.w3.org/2000/09/xmldsig#base64

I have a few questions about the contribution:
·   Schall I add the new code to the maven project with
org.apache.camel and
camel-crypto?
·   There is already a crypto component for signing and verifying
non-XML messages
(http://camel.apache.org/crypto-digital-signatures.html).
  o   Shall I add the new endpoints to this component, like
  §  crypto:signxml://?
  §  crypto:verfyxml://?
  o   or shall I create a new component “cryptoxml”?
·   Shall I add the classes to the package org.apache.camel.component.crypto ?

Regards Franz


Re: CXF and callbacks

2013-03-11 Thread Willem jiang
CXF supports the Async Invocation and we just use it in camel-cxf by default.
Now I need to know how your bpel process works. Are you using camel route to do 
this kind of work ?


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Sunday, March 10, 2013 at 7:32 PM, Smith-John wrote:

> I tried to get it to work with WS-Addressing (wsa:ReplyTo) like shown on [1].
> But if there is a other & better way I would take it.
>  
> I need to get the communication between the client (bpel workflow in my
> case) and the web service to be asynchronous, so the bpel process hasn't to
> wait till the web service answered and can work on.  
> When the web service finished it calls back the bpel process.
>  
> [1]
> http://eduardo-lago.blogspot.de/2012/04/wsdl-first-asynchronous-jax-ws.html
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/CXF-and-callbacks-tp5728878p5728890.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).





Re: No body after XSLT transformation

2013-03-11 Thread Willem jiang
Hi,

Did you have refresh the project and have clean build with the codes that you 
changed?  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, March 11, 2013 at 2:01 AM, Christian Schäfer wrote:

> Hi,
>  
> just tried a simple xslt example with camel 2.10.4 by modifying the file 
> copier example of the camel in action book.
>  
> I don't understand why there is no body output after the xslt step and why it 
> doesn't step into the processor when there is a breakpoint inside it.
>  
> What am I doing wrong here?
> How can I achieve a further processing of the xslt output in the same route?
>  
> public class XSLTTest {
>  
> public static void main(String args[]) throws Exception {
> // create CamelContext
> CamelContext context = new DefaultCamelContext();
>  
> // add our route to the CamelContext
> context.addRoutes(new RouteBuilder() {
> public void configure() {
> from("file:data/xslt/test.xml?noop=true")
> .to("xslt:file:C:\\dev\\java\\camelinaction-source\\chapter1\\file-copy\\data\\xslt\\test.xsl")
> .log("converted: ${body}")
> .process(new Processor() {
> @Override
> public void process(Exchange exchange) throws Exception {
> String s="";
> }
> });
> }
> });
>  
> // start the route and let it do its work
> context.start();
> Thread.sleep(1);
>  
> // stop the CamelContext
> context.stop();
> }
> }





Re: Building complex tcp route

2013-03-11 Thread kiranreddykasa
hi 

I have no control over the external server .

I guess if i split the route into two routes it works.

1 from(internalserver1 ).process(server1requestHandler
).to(extrenalserver).process(responseHandler);

2 from(internalserver2).process(server2requestHandler );


External Server will be sending the request to internalserver2.



-
Regards

kiran Reddy
--
View this message in context: 
http://camel.465427.n5.nabble.com/Building-complex-tcp-route-tp5728914p5728916.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: CamelContext resume does not reactivate the route

2013-03-11 Thread rajesh_h
Here is the route-psp1

// Processing one csv file at a time
from(fromLocation).routeId("route-psp1")
.choice()
.when(simple("${file:ext} == 'csv'")).to("direct:csv")
.otherwise().log("Ignoring unknown file ${file:name}");

// And here is route-psp2, which streams 1000 lines at a time and processes
them.
from("direct:csv").routeId("route-psp2")
.process(new LogFileInitializer())  
// Initialize the File Appender
.log("Processing file ${file:name}")
.beanRef("pspWorkingContext", "initialize") 
// Initialize the working
context 
.split().tokenize("\n", 1000).streaming()   
// Stream 1000 lines at a time
.log("Stream the next 1000 lines")
.to("direct:thousands")
.end()
.log("Processed file ${file:name}") 
// Done processing the file.
.choice()
.when().method("pspWorkingContext", 
"stopRoute")// If the route was
stopped, move to retry location.
.log("Moving file ${file:name} to retry 
location as r-${file:name}")
.to(getRetryEndPoint()).end()
.beanRef("pspWorkingContext", "done")
.to(getToEndPoint());





--
View this message in context: 
http://camel.465427.n5.nabble.com/CamelContext-resume-does-not-reactivate-the-route-tp5728862p5728913.html
Sent from the Camel - Users mailing list archive at Nabble.com.