Re: does hazelcast component support stand-alone HC server?

2013-12-01 Thread Borut Bolčina
Hi, Is there any documentation on how to configure the camel-hazelcast component to act as hazelcast client? Best, Borut Sent from my iPad On 13. jul. 2013, at 13:21, Claus Ibsen wrote: > I assume the idea is that you configure an existing > com.hazelcast.core.HazelcastInstance on the Hazelc

camel-hazelcast runnig in JBoss Fuse 6 (Karaf)

2013-11-28 Thread Borut Bolčina
Hello, This seems like most appropriate place to post a question like this involving many open source parts. I am looking for the best solution on creating a manageable runtime environment which includes running business logic written with camel and deployed to Karaf (JBoss Buse 6.0). Some camel

Re: Camel RSS component can't be used as Producer Endpoint

2013-08-14 Thread Borut Bolčina
Hi, so the RSS component is not able to receive a list of URLs and process them one by one? IMHO this does not seem like a good design for a component. -borut 2013/8/14 Bilgin Ibryam > You will have to use http component and manually process the feed or > dynamically create routes using the u

Webdav AHC component

2012-10-16 Thread Borut Bolčina
Hello, can't find an example or documentation on how to configure/use AHC component or any other which can put/delete files on (secure) webdav server. Currently we are using custom logic using Sardine API as Processor, but I would like to have less code for greater effect. I know there was a deba

Re: How to develop a Camel route OSGi Bundle

2012-05-22 Thread Borut Bolčina
Hello, I am on that path and I can tell you - you have many many hours of reading ahead. There are three books on OSGi, one of them deals with enterprise concepts (http://www.manning.com/cummins/) and I would recommend it to you as I can imagine you will be developing Camel routes which will use J

Re: Deploying route to Karaf fails with "waiting for dependencies"

2012-04-24 Thread Borut Bolčina
> And/or fix the route to use http4 if thats the one you want. > > > On Tue, Apr 24, 2012 at 4:13 PM, Borut Bolčina > wrote: > > Hello, > > > > Despite my best efforts I can not get my Camel route to run in Karaf. > > > > Log entry where route fails to

Re: Scheduled route execution with CronScheduledRoutePolicy don't work as expected

2012-04-24 Thread Borut Bolčina
you only have a start cron > expression. > You would need a stop as well. But as long the rout is running, the > from http will run as fast as possible. And therefore you see so many > calls in the logs. > > > > > > On Tue, Apr 24, 2012 at 2:45 PM, Borut Bolčina

Deploying route to Karaf fails with "waiting for dependencies"

2012-04-24 Thread Borut Bolčina
Hello, Despite my best efforts I can not get my Camel route to run in Karaf. Log entry where route fails to start: 2012-04-24 15:51:43,721 | INFO | rint Extender: 3 | BlueprintContainerImpl | container.BlueprintContainerImpl 321 | 10 - org.apache.aries.blueprint - 0.3.1 | Bundle weat

Scheduled route execution with CronScheduledRoutePolicy don't work as expected

2012-04-24 Thread Borut Bolčina
Hello, while this: public void configure() { from("quartz://myTimer?trigger.repeatInterval=2000&trigger.repeatCount=-1") .to("http://my.company.com/test.txt";) .log("${body}"); } nicely prints out the content of the test.txt to the console every 2 seconds; [2012/04/24 14:35:12.884] INFO [r

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
2.3.7 true ${project.artifactId} route-weather-current-osgi my.company.route.weather * * Current Weather OSGi ${project.version} Is this correct? -borut Dne 13. april 2012 13:37 je Borut Bolčina napisal/-a: > I tried > > karaf@root> osgi:install mvn:org.apache.camel/cam

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
of import package so you might get the > package this way. > > Chrisitan > > > Am 13.04.2012 12:33, schrieb Borut Bolčina: > > OK, I installed the latest Karaf (2.2.6) and Camel features with >> >> features:chooseurl camel 2.9.1 >> >> >> features:i

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
It is version conflict , which camel core your bundle has dependency on , > is it 2.9 or 3.0 ? > > You can check running the following command , > > Packages imports | grep osgi , check its syntax please . > > Thanks, > Omar atia > Sent via BlackBerry® > > -----Orig

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
OK, I installed the latest Karaf (2.2.6) and Camel features with features:chooseurl camel 2.9.1 features:install camel-core Then I installed my bundle into the local maven repo and then to Karaf with karaf@root> osgi:install mvn:com.mycompany/route-weather-current/1.0-SNAPSHOT Bundle ID: 67

Re: Deploying route to Karaf

2012-04-11 Thread Borut Bolčina
Dne 11. april 2012 09:54 je Claus Ibsen napisal/-a: > On Wed, Apr 11, 2012 at 9:43 AM, Borut Bolčina > wrote: > > Thanks for the answers and guidelines Claus. > > > > I looked into the ServiceMix, but the project seems so abandoned, I > decided > > not to use i

Re: Deploying route to Karaf

2012-04-11 Thread Borut Bolčina
g modified config.properties in Karaf etc folder? I hope I will find the time today to try running some routes in the Karaf. Thanks, borut Dne 11. april 2012 09:05 je Claus Ibsen napisal/-a: > On Wed, Apr 11, 2012 at 8:32 AM, Borut Bolčina > wrote: > > So instead of > > > > &g

Re: Deploying route to Karaf

2012-04-10 Thread Borut Bolčina
amelContext as the CamelContext instance. > That one knows about the OSGi runtime. Otherwise you may run in trouble. > > > On Tue, Apr 10, 2012 at 3:02 PM, Borut Bolčina > wrote: > > Hello, > > > > I was wondering if I am going down the right path. My goal is to deploy

Deploying route to Karaf

2012-04-10 Thread Borut Bolčina
Hello, I was wondering if I am going down the right path. My goal is to deploy a simple Camel route to an OSGI container, but without the Spring "startup code". The route: public class WeatherCurrentRouteBuilder extends RouteBuilder { public void configure() { ... } } and to start and stop the

Re: My long running bean sending out messages

2012-04-07 Thread Borut Bolčina
gt; What version of Camel are you using? > > > > It looks like your bean does not get the @Produce injected from the > > route when you do > > .bean(LongRunningBean.class, "startLongOperation") > > > > > > > > On Fri, Apr 6, 2012 at 3:04 PM, B

My long running bean sending out messages

2012-04-06 Thread Borut Bolčina
Hello, I am trying to marry crawler4j with Camel and having some trouble sending messages out of my bean. The producer is not instantiated - I get NPE. My goal is to send each crawled page (html in string variable) to the next stage in the route. If I simplify the crawler with a demo bean: publi

Re: Updating database records with Java DSL JPA component

2012-04-02 Thread Borut Bolčina
ERT or SQL UPDATE. > > > > On Thu, Mar 29, 2012 at 2:09 PM, Borut Bolčina > wrote: > > Hello, > > > > I do not dare to hope there is a one liner in Java DSL using JPA > component > > to update records such as: > > > > ... > > > .to(&quo

Updating database records with Java DSL JPA component

2012-03-29 Thread Borut Bolčina
Hello, I do not dare to hope there is a one liner in Java DSL using JPA component to update records such as: ... .to("jpa:my.model.entities.weather.WeatherCurrent?persistenceUnit=weather"&unique=someDbColumn) I am successfully ADDING the records, but I want to update them. Let's say there was

Re: Printing out bean validation exception message causes, well, exception

2012-03-28 Thread Borut Bolčina
;); Camel feels more and more concise, great. -borut Dne 28. marec 2012 13:17 je Claus Ibsen napisal/-a: > See the simple language. > http://camel.apache.org/simple > > Or try some of the scripting languages like groovy. But simple ought > to do what you want to do. > > >

Re: Printing out bean validation exception message causes, well, exception

2012-03-28 Thread Borut Bolčina
etException will return null, and > therefore you cause a 2nd exception to occur. > > The caused exception is stored as a property on the exchange. > Exception cause = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, > Exception.class); > > > > On Wed, Mar 28, 2012 at 8:4

Re: Printing out bean validation exception message causes, well, exception

2012-03-28 Thread Borut Bolčina
> Exception cause = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, > Exception.class); > > > > On Wed, Mar 28, 2012 at 8:44 AM, Borut Bolčina > wrote: > > Hello, > > > > I am using bean-validator component to validate the content of some > fields: >

Printing out bean validation exception message causes, well, exception

2012-03-27 Thread Borut Bolčina
Hello, I am using bean-validator component to validate the content of some fields: @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { DataFormat jaxbDataFormat = new JaxbDataFormat("com.mycomp

Re: Configuring endpoint programmatically

2012-03-26 Thread Borut Bolčina
Header? -borut Dne 26. marec 2012 14:04 je Borut Bolčina napisal/-a: > It felt like a solution, but still fails. The file is moved one level > lower to src/test/resources/.camel folder just like before. > > @Test > public void testNumberOfWeatherStations() throws Exception {

Re: Configuring endpoint programmatically

2012-03-26 Thread Borut Bolčina
s on the file endpoint > > FileEndpoint endpoint = ... > endpoint.setNoop(true); > > > On Mon, Mar 26, 2012 at 1:16 PM, Borut Bolčina > wrote: > > Hello again, > > > > The File component can be configured with some options, I am interested > in > > &quo

Configuring endpoint programmatically

2012-03-26 Thread Borut Bolčina
Hello again, The File component can be configured with some options, I am interested in "noop=true". What can be done by: from("file:src/test/resources?fileName=myFile.xml&noop=true") is what I want to do it with code: String fileName = "src/test/resources/myFile.xml"; Endpoint endpoint = new F

Re: Mock testing route ends prematurely

2012-03-26 Thread Borut Bolčina
testNumberOfWeatherStations java.lang.AssertionError: mock://meteo1 Received message count. Expected: <5> but was: <9> Thanks Ibsen, Borut > > On Mon, Mar 26, 2012 at 10:59 AM, Borut Bolčina > wrote: > > Hello, > > > > I am trying to test the number of

Mock testing route ends prematurely

2012-03-26 Thread Borut Bolčina
Hello, I am trying to test the number of messages and there is something I do not understand. The test ends successfully before the messages arrive at the mock endpoint. here is the test class: public class WeatherCurrentTest extends CamelTestSupport { @Override protected RouteBuilder createRou

Re: Testing with mocks and unexpected expectedMessageCount

2012-03-16 Thread Borut Bolčina
OK, nailed the bastard! The option idempotent=true (together with noop=true) on the File component was causing the route to read the file content over an over. -borut Dne 16. marec 2012 08:10 je Borut Bolčina napisal/-a: > Hello, > > the route bellow splits the XML in smaller XML

Testing with mocks and unexpected expectedMessageCount

2012-03-16 Thread Borut Bolčina
Hello, the route bellow splits the XML in smaller XML fragments which are then umarshaled into an equal number of objects as there are fragments. The number of fragments and therefore expected objects is 9. This XPath run on the source XML count(//metData/domain_longTitle) proves the number. But

Re: How to create a Camel route which takes XML and bind some data to JPA annotated POJO?

2012-03-15 Thread Borut Bolčina
Thanks Babak, as it turned out, the solution with annotating the WeatherCurrent POJO did the job. The solution is so short! I posted an answer to my own question at StackOverflow. I do have one more problem with the test case, but will post it in another thread. -borut Dne 14. marec 2012 16:24

How to create a Camel route which takes XML and bind some data to JPA annotated POJO?

2012-03-14 Thread Borut Bolčina
Hello list, I am starting to use the Camel, but due to lack of experience I have some questions which are originally posted here: http://stackoverflow.com/questions/9702158/how-to-create-a-camel-route-which-takes-xml-and-bind-some-data-to-jpa-annotated Boils down to how to split the XML, bind s