Re: Failed to build body from content. Serializable class not available to broker

2011-07-08 Thread Claus Ibsen
On Thu, Jul 7, 2011 at 11:44 AM, Andrè wrote: > yes, i do or shouldnt i do that ?? > > (context:i´m trying to use the topic as a many/many thing..., where > producers send and one consumer responds and a other just listens, which > should as close as possible to JMS (thats why i dont use a wiretap

Re: Removing routes programmatically

2011-07-08 Thread Claus Ibsen
On Fri, Jul 8, 2011 at 8:56 AM, Daniel Spaven wrote: > Hey Claus, Ashwin, > > I haven't got any access to my development environment right now. But i can > tell you by memory that the topic is not durable and the durable topic name > and client id is not set. > > Also Ashwin regarding the test; ba

Re: tcp proxy route

2011-07-08 Thread Doraemon
By the way, my ServiceMix is 3.3.2 edition. Best wishes. -- View this message in context: http://camel.465427.n5.nabble.com/tcp-proxy-route-tp4332461p4563747.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
Hi Ashwin, yes, this wsdl folder containing the AmlService.wsdl is available under src/main/resources. If I remove "src/main/resources" I get a FileNotFoundException. I am not using maven. I use eclipse, defined a java project and put the camel and cxf jars in the referenced libraries. I just r

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
Hi Willem, I did. Here it is: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:wsp="http://www.w3.org/ns/ws-policy"; xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"; xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"; xmlns:soap="http

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread Willem Jiang
On 7/8/11 3:40 PM, kmoens wrote: Hi Willem, I did. Here it is: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:wsp="http://www.w3.org/ns/ws-policy"; xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"; xmlns:wsam="http://www.w3.org/2007/05/add

whats the difference between these routes??

2011-07-08 Thread Andrè
the first one callled through a proxy, and the second is called directly in my unitests like String response = (String) inputEndpoint.requestBody("direct:injectRequest",getFileContent("src/main/resources/requests/request.xml")); the problem is, that sometimes this sAuthZBlocked should block, the

Re: slow reply for jms component when url contains replyTo

2011-07-08 Thread Claus Ibsen
Can you enable TRACE logging at org.apache.camel.component.jms and run it for both examples. To see what happens. On Fri, Jul 8, 2011 at 3:18 AM, Jim Newsham wrote: > > I'm using Camel 2.7.1 on top of ActiveMQ 5.5.0.  For some reason, when I > specify a custom replyTo destination on the endpoin

Re: slow reply for jms component when url contains replyTo

2011-07-08 Thread Sander Mak
Could this be caused by the polling nature of the underlying Spring DefaultMessageListenerContainer class (which has 1 second intervals by default IIRC). However, I don't know how the internals of reply-to work and whether it uses the listenercontainer. Sander On Fri, Jul 8, 2011 at 3:18 AM, Jim

Re: Warning in cxf endpoint configuration

2011-07-08 Thread alberto.zigoni
Hi Willem, I confirm that 2.8-SNAPSHOT solves the problem. Alberto -- View this message in context: http://camel.465427.n5.nabble.com/Warning-in-cxf-endpoint-configuration-tp4561812p4564027.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
The WSDL is generated from the following piece of code, so the name="AmlService" is there for free @WebService(portName = "AmlServicePort") public class Aml { @WebMethod public boolean isValidPayment(@WebParam(name = "currency") String currency, @WebParam(name = "amount") BigDecimal amount

Re: Removing routes programmatically

2011-07-08 Thread Daniel Spaven
Claus, Yes that's it. Here's the URI's of 2 routes I just tested and failed. So Destinations different but consuming from the same topic. Route 1 --- from(jmsComponent:topic:dansTopic) to(activemq:topic:TMLP1) to(activemq:topic:TMLP2) to(activemq:topic:TMLP3) to(activemq:topic:TMLP4) Rou

Re: Removing routes programmatically

2011-07-08 Thread Claus Ibsen
Hi I have reproduced the issue in camel-jms in an unit test. I will try to see what can be done. On Fri, Jul 8, 2011 at 11:37 AM, Daniel Spaven wrote: > Claus, > > Yes that's it. Here's the URI's of 2 routes I just tested and failed. So > Destinations different but consuming from the same topic.

Re: Unable to marshal type "org.hl7.v2xml.ORUR01CONTENT" as an element because it is missing an @XmlRootElement annotation

2011-07-08 Thread alberto.zigoni
It seems like you haven't set the partNamespace corresponding to the partial class. dataFormat.setPartNamespace(new QName(...)); -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-marshal-type-org-hl7-v2xml-ORUR01CONTENT-as-an-element-because-it-is-missing-an-XmlRootE

camel-karaf-feature: commons-pool bundle in camel-cxf

2011-07-08 Thread Andreas Kuhtz
Hi, In the current feature file for karaf the commons-pool bundle in the camel-cxf is defined as commons-pool/commons-pool and not as org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-pool as in the other features (e.g. camel-jms, etc). Is this expected or could this be changed

Re: camel-karaf-feature: commons-pool bundle in camel-cxf

2011-07-08 Thread Freeman Fang
Hi, Yeah, I think this should get fixed. Create CAMEL-4195[1] to track it. [1]https://issues.apache.org/jira/browse/CAMEL-4195 Freeman On 2011-7-8, at 下午6:27, Andreas Kuhtz wrote: Hi, In the current feature file for karaf the commons-pool bundle in the camel-cxf is defined as commons-pool/co

Re: Removing routes programmatically

2011-07-08 Thread Claus Ibsen
Hi Okay i have fixed the issue. I created a new ticket with a better description of the real issue https://issues.apache.org/jira/browse/CAMEL-4194 The fix will be in Camel 2.8. You are welcome to test with latest source code from trunk or the 2.8-SNAPSHOT when its updated. http://camel.apache.or

Multiple contexts startup order with Spring

2011-07-08 Thread alberto.zigoni
Is it possible to define the order in which different Camel contexts should be started, using Spring? One solution could be to set autoStartup=false to each context and then having a Spring context-aware bean perform the startup of the contexts in the right order, but I am looking for an out-of-th

Re: Multiple contexts startup order with Spring

2011-07-08 Thread Claus Ibsen
Hi Spring is pretty lame in letting end users be in control of the orders. All you have at your disposal in the XML file is the "depends-on" attribute. So try using that to see if you can control the ordering a bit better. On Fri, Jul 8, 2011 at 12:53 PM, alberto.zigoni wrote: > Is it possible

Re: Multiple contexts startup order with Spring

2011-07-08 Thread alberto.zigoni
Using "depends-on" on the camelContext does the trick, but it couples the contexts. In my case, the first context is used only during development. Anyway, I have just found a rather rough but working way of doing it. My Camel contexts are defined in two different XML files under META-INF/spring, a

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
update: I used cxf tool java2ws to generate wsdl, where I changed the name to "foo". I used this wsdl to expose my external web service, which is now running on http://localhost:8080/aml/FooService?WSDL http://aml.mycomp.com/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://am

Re: What codec do we need to use for sending an XML message to a MINA endpoint.

2011-07-08 Thread Sushmita chandra
I have a user XML. starting tag and end tags are below ... . I need to write a custom codec to read this XML as a whole from Mina endpoint, can anyone suggest how can I do this. -- View this message in context: http://camel.465427.n5.nabble.com/What-codec-do-we-need-to-use-for-sending

Re: Removing routes programmatically

2011-07-08 Thread Daniel Spaven
Okay that's nice to hear, I'll download when fixed. Thanks! On Fri, Jul 8, 2011 at 11:52 AM, Claus Ibsen wrote: > Hi > > Okay i have fixed the issue. I created a new ticket with a better > description of the real issue > https://issues.apache.org/jira/browse/CAMEL-4194 > > The fix will be in Ca

Re: ServiceMix 4.3.1 and Camel 2.8-SNAPSHOT

2011-07-08 Thread Doraemon
sorry, I just saw the servicemix topic, so I asked my question. sorry, I won't do that again. -- View this message in context: http://camel.465427.n5.nabble.com/ServiceMix-4-3-1-and-Camel-2-8-SNAPSHOT-tp4553864p4563626.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: tcp proxy route

2011-07-08 Thread Doraemon
Hi, Willem. I need to deploy the TCP proxy(camel-example-tcpipproxy) into servicemix. Could you tell me how to do that in details ? Thank you, sincerely. Doraemon -- View this message in context: http://camel.465427.n5.nabble.com/tcp-proxy-route-tp4332461p4563619.html Sent from the Camel -

Re: CronScheduledRoutePolicy

2011-07-08 Thread Claus Ibsen
Hi I have just created an test on trunk and verified that the cron scheduled policy works fine if you have a route set to autoStartup=false. http://svn.apache.org/viewvc?rev=1144322&view=rev The route policy will then later trigger and start the route. And the message on the seda queue will be ro

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread Willem Jiang
Can you send a small test case to me? I can not tell if there is something wrong from the files that you showed to me. On 7/8/11 7:53 PM, kmoens wrote: update: I used cxf tool java2ws to generate wsdl, where I changed the name to "foo". I used this wsdl to expose my external web service, whic

Re: slow reply for jms component when url contains replyTo

2011-07-08 Thread Claus Ibsen
On Fri, Jul 8, 2011 at 11:04 AM, Sander Mak wrote: > Could this be caused by the polling nature of the underlying Spring > DefaultMessageListenerContainer class (which has 1 second intervals by > default IIRC). However, I don't know how the internals of reply-to > work and whether it uses the list

Re: HTTP + All Permissive SSL + Proxy + Digest Auth

2011-07-08 Thread Claus Ibsen
On Mon, Jul 4, 2011 at 3:19 PM, Don Doffe wrote: > After looking into the HTTP components I reckon the above-mentioned scenario > is not possible without heavy tweaking with custom HttpClientConfigurer > (since it overrides the configuration parameters specified in the URL). > > Is my understandin

Re: whats the difference between these routes??

2011-07-08 Thread Claus Ibsen
On Fri, Jul 8, 2011 at 10:46 AM, Andrè wrote: > the first one callled through a proxy, and the second is called directly in > my unitests > > like > String response = (String) > inputEndpoint.requestBody("direct:injectRequest",getFileContent("src/main/resources/requests/request.xml")); > > the pro

Re: whats the difference between these routes??

2011-07-08 Thread Andrè
the bean throws an exception, that should end further transport -- View this message in context: http://camel.465427.n5.nabble.com/whats-the-difference-between-these-routes-tp4563945p4565242.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: java.lang.IndexOutOfBoundsException in cxf producer

2011-07-08 Thread glawi
Hi all, I got the same issue whith Camel 2.7.2. Here's my WSDL : http://www.service-now.com"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:tns="http://www.service-now.com/frostb

camel-guice

2011-07-08 Thread Tim
camel guice is using guice 2.0 Which wouldn't be so bad except that it uses things from the guice internal packages. This makes it impossible to use it alongside guice 3.0 I can't see any new version of guice 3. I realize this isn't a 'camel' problem but the committers of guiceyfruit are also came

Re: whats the difference between these routes??

2011-07-08 Thread Andrè
this bean receives information from an other topic and should block the incoming message, if the informations are matching this incoming message and i thought that would be done through an Exception -- View this message in context: http://camel.465427.n5.nabble.com/whats-the-difference-between-th

Re: whats the difference between these routes??

2011-07-08 Thread Claus Ibsen
On Fri, Jul 8, 2011 at 7:02 PM, Andrè wrote: > this bean receives information from an other topic and should block the > incoming message, if the informations are matching this incoming message > and i thought that would be done through an Exception > Do you mean the incoming message should be dr

Re: camel-guice

2011-07-08 Thread Claus Ibsen
Is guice 3.0 in any maven repository? On Fri, Jul 8, 2011 at 6:42 PM, Tim wrote: > camel guice is using guice 2.0 > Which wouldn't be so bad except that it uses things from the guice internal > packages. > This makes it impossible to use it alongside guice 3.0 > > I can't see any new version of

Re: camel-guice

2011-07-08 Thread Larry Meadors
It's in the central repo, I believe. com.google.inject guice 3.0 Larry On Fri, Jul 8, 2011 at 11:23 AM, Claus Ibsen wrote: > Is guice 3.0 in any maven repository? > > > On Fri, Jul 8, 2011 at 6:42 PM, Tim wrote: >> camel guice is using guice 2.0 >> Which wouldn't be so bad excep

Re: whats the difference between these routes??

2011-07-08 Thread Andrè
exactly, when i take the filter, will it also allow me to throw an Exception , which will be brought to the caller ? (so that it gets a feedback, why it has been done) thx.. -- View this message in context: http://camel.465427.n5.nabble.com/whats-the-difference-between-these-routes-tp4563945p4565

Re: whats the difference between these routes??

2011-07-08 Thread Donald Whytock
Not that familiar with XML-defined routes, but... If is supposed to be generating an Exception that the route responds to, shouldn't it be inside the ? Don On Fri, Jul 8, 2011 at 1:42 PM, Andrè wrote: > exactly, > when i take the filter, will it also allow me to throw an Exception , which > wi

Re: Synchronous route for an asynchronous web service pair

2011-07-08 Thread ychawla
Hi Freeman, I found this article written a while back that addresses this architecture: http://www.catify.com/2010/11/02/handling-http-requests-with-an-asynchronous-system-in-the-back/ It seems a little complicated though and I was hoping there was an EIP that would address this out of the box.

Re: ActiveMQComponent + JmsTransactions + CacheLevel

2011-07-08 Thread Travis Klotz
Ashwin, Thanks for this, it helped a lot. I ended up going with CACHE_CONNECTION. When I had it set at CACHE_SESSION it looked like I dropped a message (1 out of 500k) during an ActiveMQ fail over test. Not sure if it was from my CACHE_SESSION setting or something else, but i'm getting very good

Re: camel-guice

2011-07-08 Thread Tim
Yep :) http://repo1.maven.org/maven2/com/google/inject/guice/3.0/ On Fri, Jul 8, 2011 at 12:34 PM, Larry Meadors wrote: > It's in the central repo, I believe. > > >com.google.inject >guice >3.0 > > > Larry > > > On Fri, Jul 8, 2011 at 11:23 AM, Claus Ibsen > wrote: > > Is guice 3.