How to maintain a seperate Datastructure to choose processor in my custom load balancer

2012-10-18 Thread kishorecj
Hi Sir, My requirement is , a group of tomcats are mapped to a particular appid and route should happen based on incoming request with appid . hashmap looks like tomcat1 app1 - tomcat2

Re: Question regaring simple. can we use simple in the in only uri to prepare the uri using the properties from exchange

2012-10-18 Thread Claus Ibsen
On Wed, Oct 17, 2012 at 9:32 PM, ravi.4indra ravi.4in...@gmail.com wrote: Question regaring simple. can we use simple in the in only uri to prepare the uri using the properties from exchange below is the code i am trying to do.Any help is appreciated.

Re: Strange problem when bridging amq to cxf

2012-10-18 Thread jkob
Hi, thanks for your reply. The timeout is not the reason. The web service is local and I can see that the response is generated within a second or so. And as I wrote - my example is working for web services with a single method, but not for those with multiple methods . Could you provide me your

Re: Strange problem when bridging amq to cxf

2012-10-18 Thread Willem jiang
I think I can add one to the camel trunk. I will let you know when I commit the code. -- 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)

Re: How to maintain a seperate Datastructure to choose processor in my custom load balancer

2012-10-18 Thread Willem jiang
Hi, I'm not sure how you create the process for the new created endpoint, you may need to start or stop the endpoint and producer yourself. I think it could be much easy if you use the recipient-list[1] to change the endpoint dynamically. [1]http://camel.apache.org/recipient-list.html --

Re: XPath namespaces in Spring DSL?

2012-10-18 Thread kmoens
Hi, had the same issue with a document having a default namespace defined, sth like doc xmlns=urn:abctag1tag2hello/tag2tag3world/tag3/tag1/doc To get the value 'hello' from the above document, I tried in my bean public String getGreeting(@Xpath(doc/tag1/tag2/text()) String greeting) { return

Re: How to maintain a seperate Datastructure to choose processor in my custom load balancer

2012-10-18 Thread Claus Ibsen
On Thu, Oct 18, 2012 at 7:38 AM, kishorecj kishor...@gmail.com wrote: Hi Sir, My requirement is , a group of tomcats are mapped to a particular appid and route should happen based on incoming request with appid . hashmap looks like

Re: How to maintain a seperate Datastructure to choose processor in my custom load balancer

2012-10-18 Thread Claus Ibsen
Another alternative is to use a dynamic router, or recipient list. Instead of the load balancer. On Thu, Oct 18, 2012 at 7:38 AM, kishorecj kishor...@gmail.com wrote: Hi Sir, My requirement is , a group of tomcats are mapped to a particular appid and route should happen based

Re: XPath namespaces in Spring DSL?

2012-10-18 Thread Claus Ibsen
On Thu, Oct 18, 2012 at 10:46 AM, kmoens kris_mo...@yahoo.com wrote: Hi, had the same issue with a document having a default namespace defined, sth like doc xmlns=urn:abctag1tag2hello/tag2tag3world/tag3/tag1/doc To get the value 'hello' from the above document, I tried in my bean public

can't download camel

2012-10-18 Thread Denis
Hi! can any one download Camel 2.10? now every one link from http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.10.2/apache-camel-2.10.2.zip make fail. http://apache.mirrors.tds.net/camel/apache-camel/2.10.2/apache-camel-2.10.2.zip Not Found The requested URL

Re: can't download camel

2012-10-18 Thread Claus Ibsen
On Thu, Oct 18, 2012 at 12:26 PM, Denis 2...@bk.ru wrote: Hi! can any one download Camel 2.10? now every one link from http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.10.2/apache-camel-2.10.2.zip make fail.

Re: RouteBuilder not allowed in RouteContext - why?

2012-10-18 Thread Robert
Hi, On Thu, Oct 18, 2012 at 6:15 AM, Claus Ibsen-2 [via Camel] ml-node+s465427n5721208...@n5.nabble.com wrote: On Wed, Oct 17, 2012 at 5:59 PM, Robert [hidden email] wrote: I am wondering why use of RouteBuilder is not allowed in a RouteContext when using XML.[..] camel:routeContext

Simple route with restlet and text stream as the output

2012-10-18 Thread Martin Stiborský
Hello guys, I'm here again with probably quite obvious things that I haven't understood or missed. Let's describe my scenario. I want to provide REST interface on the from() side of the Camel route, and HTML/JSON/XML/etc stream on the other side, that is the to() side in Camel routes terms. Right

Re: Headers disappearing in RoutingSlip

2012-10-18 Thread Graham Perkins
I am also getting the same problem. We have a route with several routing slips in the sequence, for selecting appropriate XSL transforms and XSD validations. Also one to compute a file endpoint destination depends on identity of submitter. We get consistent behavoiur - the headers survive

Context component not found during build

2012-10-18 Thread Robert
Hi, camel can't find the context component [1] in my application. My application is based on the Camel java maven archetype. I am declaring the camel-context maven dependency. What am I doing wrong? Here is my route declaration camel:camelContext camel:route camel:from

Re: Simple route with restlet and text stream as the output

2012-10-18 Thread Martin Stiborský
Ooops. I guess, I was trying to find there something complicated, but it works just like that: from(restlet:{{rest.base}}/test2/{DATA}).beanRef(testBean); Where testBean is just a HelloWorld style bean: public class TestBean { public String test(String data) { return Tested with

Re: How to execute route on shutdown?

2012-10-18 Thread Henrique Viecili
Claus, what I am doing is a Dynamic Recipient List where I must register these 'services', when a service is started it sends its routing configuration to the DRL and when it's shut down it tells the DRL the service is offline. I believe the most appropriate is the shutdown from the CamelContext.

Re: Context component not found during build

2012-10-18 Thread Willem jiang
Hi, It looks like you are using camel spring Main to load the camel application context. I'm not sure why your mvn project have the dependency of camel-archetype-spring:jar:1.0-SNAPSHOT. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com |

Re: Context component not found during build

2012-10-18 Thread Robert
Hi Willem, thanks for reply. Sorry, I was wrong with regards to the archetype. I used camel-archetype-spring to build the (test) project. And I ran the application with the 'mvn camel:run' command using this (predefined) entry in the pom.xml: plugin

Camel application design question

2012-10-18 Thread snowindy
Dear experienced Camel users! Please tell me *1) What is wrong in my design in general? (I am sure it is not optimal) 2) What is a correct way to use POJOs in an Exchange body?* My Grails web-application needs to interact to a remote web-service with some intermediate steps: -Create request xml

RE: Camel, websockets and Javascript

2012-10-18 Thread gonzalo diethelm
I will try to bump this question just once. Any hints from anybody? -- Gonzalo Diethelm DCV Chile -Original Message- From: gonzalo diethelm [mailto:gdieth...@dcv.cl] Sent: Wednesday, October 10, 2012 3:56 PM To: users@camel.apache.org Subject: Camel, websockets and Javascript

Error When Communicating with 3rd Party SOAP Service

2012-10-18 Thread James Carr
Hey All, I've used CXF for quite sometime and this week I was putting together a client for a 3rd party service and get the following error when trying to call the service: HTTP response '415: Cannot process the message because the content type 'text/xml; charset=UTF-8' was not the expected type

Re: Error When Communicating with 3rd Party SOAP Service

2012-10-18 Thread David Karlsen
Are you on an old sun jdk? They have that problem. Upgrade to the latest version. Den 18. okt. 2012 17:38 skrev James Carr james.r.c...@gmail.com følgende: Hey All, I've used CXF for quite sometime and this week I was putting together a client for a 3rd party service and get the following

Managing high availability with Camel

2012-10-18 Thread gilboy
Hi I have an application which I need to have running in a cluster running primary/seconday(active/inactive) mode. When each instance of the application (A B) starts up it connects to a proprietary application we have internally requesting to be primary. Hence, if A asks to be primary before B

Re: Simple route with restlet and text stream as the output

2012-10-18 Thread Martin Stiborský
I'm a little bit alone here…but…I've fixed the problem… public class TestBean { public String test(@Header(DATA) String data) { return Tested with TestBean: + data; } } On Thu, Oct 18, 2012 at 3:07 PM, Martin Stiborský martin.stibor...@gmail.com wrote: Oh, again me here :) Now I see

Re: Error When Communicating with 3rd Party SOAP Service

2012-10-18 Thread James Carr
I'm actually using JDK7 but I got it working. I needed to set the bindingId to SOAP 1.2 in the JaxWsProxyFactoryBean. factory.setBindingId(http://schemas.xmlsoap.org/wsdl/soap12/;); That made it work. Thanks, James On Thu, Oct 18, 2012 at 11:23 AM, David Karlsen davidkarl...@gmail.com

Re: Error When Communicating with 3rd Party SOAP Service

2012-10-18 Thread James Carr
Also, sorry! I realized when I just replied I sent this to the camel group instead of the CXF group... they're right next to each other in my contacts list. :-D Thanks, James On Thu, Oct 18, 2012 at 12:40 PM, James Carr james.r.c...@gmail.com wrote: I'm actually using JDK7 but I got it

Re: Managing high availability with Camel

2012-10-18 Thread Claus Ibsen
Hi There is a zookeeper policy that can be used http://camel.apache.org/zookeeper On Thu, Oct 18, 2012 at 6:26 PM, gilboy josephoto...@gmail.com wrote: Hi I have an application which I need to have running in a cluster running primary/seconday(active/inactive) mode. When each instance

Re: Managing high availability with Camel

2012-10-18 Thread Christian Schneider
I know of two solutions that provide something similar. If you run your applications with apache karaf then you can setup file or db based locking. So the container starts up with a low runlevel and then only fully starts after aquiring the lock. If you then package your camel routes into

Re: Headers disappearing in RoutingSlip

2012-10-18 Thread Claus Ibsen
On Thu, Oct 18, 2012 at 2:14 PM, Graham Perkins graham.perk...@workplacesystems.com wrote: I am also getting the same problem. We have a route with several routing slips in the sequence, for selecting appropriate XSL transforms and XSD validations. Also one to compute a file endpoint

Re: How to execute route on shutdown?

2012-10-18 Thread Claus Ibsen
On Thu, Oct 18, 2012 at 3:35 PM, Henrique Viecili henri...@myreks.com wrote: Claus, what I am doing is a Dynamic Recipient List where I must register these 'services', when a service is started it sends its routing configuration to the DRL and when it's shut down it tells the DRL the service

Re: How to execute route on shutdown?

2012-10-18 Thread Henrique Viecili
Claus and Willem, thank you for the insights... below I wrote about the solution I implemented, I appreciate if you could give your comments about it :) On Thu, Oct 18, 2012 at 3:37 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Thu, Oct 18, 2012 at 3:35 PM, Henrique Viecili

Re: LDAP (OpenDS 2.2.1) configuration

2012-10-18 Thread sk92129
I am getting some progress but I am tracking it on the activemq user mail forum. -- View this message in context: http://camel.465427.n5.nabble.com/LDAP-OpenDS-2-2-1-configuration-tp5721193p5721269.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel application design question

2012-10-18 Thread Willem jiang
Hi, I think you can use the ErrorHandler to catch the Exception in a genetical way. What's your ProcessError class looks like? -- 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

Re: Camel application design question

2012-10-18 Thread Claus Ibsen
On Thu, Oct 18, 2012 at 4:39 PM, snowindy blackorange...@gmail.com wrote: Dear experienced Camel users! Please tell me *1) What is wrong in my design in general? (I am sure it is not optimal) 2) What is a correct way to use POJOs in an Exchange body?* My Grails web-application needs to