Re: How to make your camel routes highly available when only one may be active at a time

2011-11-14 Thread Christian Schneider
Hi Preben, the only problem we will have is that my current solution always stops itself before it tries to reacquire the lock. When using suspend / resume on a camel route this is very light weight. When I would try to stop and start bundles or wars this would not be a good behaviour. Another

RE: Error while deploying Camel routers on ServiceMix...

2011-11-14 Thread Omar Atia
Dears, Finally , I was able to deploy Camel/cxf/spring/axis1.4 project inside OSGi container as bundle using fliex plugin to generate the bundle , the bundle is started and it is up and running and is tested as well. The whole integration project has been deployed on ServiceMix latest Fuse rel

Re: simple example for JDBC in osgi

2011-11-14 Thread Chaks
Hello, I couldn't find any sample blueprint for Camel JDBC component, however when I tried the below one, I am getting org.apache.camel.RuntimeCamelException: *org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'jdbc://dataSource' could be found* Please find the

Blueprint XML for Camel JDBC component

2011-11-14 Thread Chaks
Hello, Please can someone help me with sample blueprint for Camel JDBC component, when I tried the below one, I am getting *NoSuchComponentException* org.apache.camel.RuntimeCamelException: org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'jdbc://dataSource' cou

Re: simple example for JDBC in osgi

2011-11-14 Thread Freeman Fang
Hi, Ensure you already install camel-jdbc feature? Freeman On 2011-11-14, at 下午7:19, Chaks wrote: Hello, I couldn't find any sample blueprint for Camel JDBC component, however when I tried the below one, I am getting org.apache.camel.RuntimeCamelException: *org.osgi.service.blueprint.conta

Re: Blueprint XML for Camel JDBC component

2011-11-14 Thread Freeman Fang
Hi, Ensure you already install camel-jdbc feature. Btw, please don't cross-post same question multiple times, I just saw your same question in another thread. Freeman On 2011-11-14, at 下午8:15, Chaks wrote: Hello, Please can someone help me with sample blueprint for Camel JDBC component,

Re: How to make your camel routes highly available when only one may be active at a time

2011-11-14 Thread Willem Jiang
Hi Christian, I just have a quick question for your exclusive lock. If the route which holds the lock failed, how can we make sure the lock can be released for other stand by route to pick ? Willem On 11/13/11 4:07 PM, Christian Schneider wrote: Hi Preben, my first focus was on providing th

Re: Blueprint XML for Camel JDBC component

2011-11-14 Thread Chaks
Hello Freeman, My apologies for posting the question twice. Thanks very much for your response. I installed camel-jdbc feature and it worked like a charm. Thanks, Chaks. -- View this message in context: http://camel.465427.n5.nabble.com/Blueprint-XML-for-Camel-JDBC-component-tp4990596p4990705.ht

Re: META-INF.cxf

2011-11-14 Thread Gnanaguru S
Hi , I was successull in building now. But servicemix returns this issue while deploying. karaf@root> osgi:install -s mvn:org.apache.camel/camel-example-cxf-blueprint Error executing command: Unresolved constraint in bundle camel-example-cxf-blueprint [215]: Unable to resolve 215.0: missing requ

Re: Type Converters Load

2011-11-14 Thread ebinsingh
Thanks a lot. This was what I was looking for. But the performance results were not what I was looking. To read a file, Camel is taking lot of time. I got the below numbers from using Yourkit profiler. File of 10k records : 635 milliseconds File of 20k records : 557 milliseconds File of 40k reco

just 2 small comments...

2011-11-14 Thread bvahdat
Hi, as my reply gets not accepted in the Developement forum, following two points I would like to mention: http://camel.465427.n5.nabble.com/CONF-Apache-Camel-Release-Guide-tp4991123p4991201.html And the revision gnodet commited http://svn.apache.org/viewvc?view=revision&revision=1201768 has

Re: Type Converters Load

2011-11-14 Thread Achim Nierbeck
hmm, right now I'm wondering what kind of hardware is supposed to support a file IO of 1 millisecond I just did look through tomshardware enterprise hard drive charts ( http://www.tomshardware.com/charts/enterprise-hard-drive-charts-2010/Access-Time-Read-Average,2153.html ) and the fastest hard dr

Re: META-INF.cxf

2011-11-14 Thread Raul Kripalani
Have you installed the camel feature? Could you run the following command "features:list -i | grep camel" on the Karaf shell? Thanks, Raúl. On 14 November 2011 15:41, Gnanaguru S wrote: > > Hi , > > I was successull in building now. But servicemix returns this issue while > deploying. > > karaf@

Re: just 2 small comments...

2011-11-14 Thread Claus Ibsen
On Mon, Nov 14, 2011 at 5:37 PM, bvahdat wrote: > Hi, > > as my reply gets not accepted in the Developement forum, following two > points I would like to mention: > > http://camel.465427.n5.nabble.com/CONF-Apache-Camel-Release-Guide-tp4991123p4991201.html > > And the revision gnodet commited > > h

Re: Type Converters Load

2011-11-14 Thread ebinsingh
I am finding that just reading the file of 2k records just takes 1 millisecond. Code: from("file:C:\\camelProject\\data\\inbox\\mars") .log("Starting to process big file: ${header.CamelFileName}") .bean(MarsParser.class,"parseMarsData") .to(

CFX - how to manage webservice response

2011-11-14 Thread kafe
Hi all, I'm new with Camel and currently, i'm trying to call a web service through CXF and, depending on the response (a simple String), put the message on a queue. To be clear, i have configured a simple route like that : That works, i manage to expose my route as a webservice and ca

Re: How to make your camel routes highly available when only one may be active at a time

2011-11-14 Thread Preben.Asmussen
Hi Christian I'm not sure I follow you to have ha in the same jvm. ? For karaf / cellar I surprised that ha is not part of the setup. Wouldn't it be here you would expect some kind of HA possibility - like the one thats available for ActiveMQ master/slave. The vm protocol will not be an option

Configured routes at runtime - multiple destinations

2011-11-14 Thread sub3
Hi, I have a question about configuring routes at runtime, that I hope someone can answer for me. My code for updating routes is below. I remove the old one & add a new one. However, the 4th time I call it, it fails. It doesn't actually throw an error, but I cannot retrieve the route via context

Re: CFX - how to manage webservice response

2011-11-14 Thread Taariq Levack
I'd look at a message filter[1], or a content based router[2]. [1] http://camel.apache.org/message-filter.html [2] http://camel.apache.org/content-based-router.html Taariq On 14 Nov 2011, at 8:25 PM, kafe wrote: > Hi all, > > I'm new with Camel and currently, i'm trying to call a web service

Re: Route Relay 4x100m: Pass the baton to your next team member.

2011-11-14 Thread Taariq Levack
Without more details, looks like you want the default behavior, pipeline[1]. [1] http://camel.apache.org/pipes-and-filters.html Taariq On 14 Nov 2011, at 6:15 PM, H Paul wrote: > Without going the detail/specificness, would this be possible? > > With relay, there is a Sequential aspect: how t

Re: Remotely pulling messages using CAMEL

2011-11-14 Thread newbiee
I will be opening a socket connection with digi device some thing like this: Socket clientSocket = new Socket(IP address, port#); my application is going to act as a client sending commands to the digi device. Digi device in return will send my application a message that my application will put i

CXF Endpoint issue

2011-11-14 Thread Castyn
Greetings, I am running into an issue when deploying a simple camel route within servicemix that contains a cxf endpoint. I am getting the following error. I saw some previous posts on this but I checked over everything suggested in them and can't find the discrepency. org.apache.camel.FailedToC

Re: Remotely pulling messages using CAMEL

2011-11-14 Thread Raúl Kripalani
Not sure I have followed the whole scenario through, but the camel-mina and camel-netty components can help you interface with external systems via TCP. These components allow Camel to participate either as a consumer or as a producer of data. Whether the server will pull the data from the device,

Re: Remotely pulling messages using CAMEL

2011-11-14 Thread Hadrian Zbarcea
From all this conversation there seems to be a bit of disconnect between the questions and the answers :). It looks to me that you are making some assumptions about how camel is used and the answers don't address that. The reason is that using Camel is much easier than I believe you assume. H

Re: NPE when using SEDA queue

2011-11-14 Thread bvahdat
@Tarjei, looking deeper at [1] just realized that there's a multipleConsumers option you could use to consume multiple times from the same Seda endpoint (didn't know that), see [2] which is implemented by the Seda endpoint. I modified [3] to achieve what you expect, see [4] which I hope will be he

Re: CFX - how to manage webservice response

2011-11-14 Thread Raul Kripalani
In addition to this, you can also use Camel's error handling features to detect this situation and raise an exception in the route, which you can then capture in your error handler. You can configure a redelivery policy on your error handler and ultimately send the message to a dead letter channel

why i get the incorrect routeId from Exchange?

2011-11-14 Thread xiangqiuzhao
i had create two RouteDefinitions, like RouteDefinition route = new RouteDefinition(); route.from().process(); route.setId(routeIdA); //another route id is routeIdB these RouteDefinitions listening at 5090 and 5091 port. my client send message to the 5091 port, and i use exchange.getFromRouteId

Re: CXF Endpoint issue

2011-11-14 Thread Willem Jiang
Can you try to specify the serviceName and endpointName attribute of the CxfEndpoint ? On Tue Nov 15 05:43:12 2011, Castyn wrote: Greetings, I am running into an issue when deploying a simple camel route within servicemix that contains a cxf endpoint. I am getting the following error. I saw s

Re: Remotely pulling messages using CAMEL

2011-11-14 Thread newbiee
Thank you very much to all for your time and valuable feedback. Let me answer the questions that have been asked: Q. does the server know in advance the IP address of each digi device? Are they static? A. IP addresses are dynamic. Digi device has Connect ware manager through which the IP address

Re: Remotely pulling messages using CAMEL

2011-11-14 Thread Hadrian Zbarcea
Ok, so we made a bit of progress. More answers inline. Hadrian On 11/14/2011 09:51 PM, newbiee wrote: Thank you very much to all for your time and valuable feedback. Let me answer the questions that have been asked: Q. does the server know in advance the IP address of each digi device? Are th

From wsdl to wsdl

2011-11-14 Thread farha
Hi, My scenario is to fetch the soap request from the wsdl, do the neccesary transformation and then forward it to another wsdl. Please help with the endpoints syntax. I am doing this through eclipse,directing the camel-context.xml to a Java Dsl bean through route builder. -- View this mes

Unable to resolve endpoint

2011-11-14 Thread Gnanaguru S
hi I am creating a project frrom scratch which will do a simple file transfer. But when i deploy it. Am getting this error log. karaf@root> Exception in thread "SpringOsgiExtenderThread-8" org.apache.camel.RuntimeCamelException: org.apach e.camel.FailedToCreateRouteException: Failed to create r

Re: META-INF.cxf

2011-11-14 Thread Gnanaguru S
Hi Raul, It was installed. Just verified it. Regards Guru -- View this message in context: http://camel.465427.n5.nabble.com/META-INF-cxf-tp4974554p4993465.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: From wsdl to wsdl

2011-11-14 Thread Gnanaguru S
Hi Below is the actual idea. I am struggling to deploy it in smx. Hope it helps you some way. http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";

Re: CXF - how to manage webservice response

2011-11-14 Thread Gnanaguru S
Hi Kafe, I am working on camel-cxf for the long time. can you give me some simple idea how you are making a webservice as a endpoint. How you are deploying it?. Do you use servicemix?. Can you explain with some simple code. It will be a big help at this time./ Regards Guru -- View this mess

Re: JDBC based idempotent repository problem

2011-11-14 Thread Yaroslav1988
Thanks for reply, Christian Mueller. I am using Camel 2.8.0 Simple test with jdbcTemplate threw the same exception. As a temporary remedy I simply have changed "createdAt" field type to "varchar" in SQL DB. For now route works fine. I think it proves your opinion that "SQL Server built in Ti

Re: Unable to resolve endpoint

2011-11-14 Thread farha
>> foo Try like this com.wipro.camel com.wipro.camel It may help you! :) -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-resolve-endpoint-tp4993464p4993505.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: META-INF.cxf

2011-11-14 Thread Willem Jiang
Can you check which version of camel that your servicemix is installed ? You can use that version of camel-example-cxf-blueprint instead of the one of Camel 2.9.0. As Camel 2.9.0 is not released yet, I don't think you can deploy that bundle into any version of ServiceMix. On 11/14/11 11:41 PM

RE: From wsdl to wsdl

2011-11-14 Thread farha
Hi Guru, I am doing something similar but I am facing network error. This is my camelContext.xml file: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:cxf="htt