Questions tagged [camel-blueprint]

15 questions
1
vote
1 answer

Testing from-Endpoints with CamelBlueprintTestSupport fails with some components

I'd like to test Camel Routes implemented with Blueprint-XML. When trying to test a route with a simple "direct"-from endpoint, everything works fine. But changing the "from" endpoint to the netty or jetty component, the test fails with the…
1
vote
1 answer

How can I successfully use the Jackson "ObjectMapper()" inside a "process()" method

PROBLEM: using Jackson's "ObjectMapper()" within the "process()" method causes an exception: public void process(org.apache.camel.Exchange exchange) throws IOException { //...this statement causes the exception... …
sairn
  • 461
  • 3
  • 24
  • 58
1
vote
0 answers

how to setup a fuse/blueprint cxf test - NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I

My camel-blueprint project contains a simple rest endpoint to provide a status. All works fine. But now i want to create an integration test and i need to run the rest route from within a junit test. I have many working tests that extend…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
0
votes
1 answer

Test automation for Apache Camel projects

Hello Camel community, I’ve got some questions regarding test execution and automation. I am using Red Hat Fuse 7.7 (i.e. Camel 2.21.0 and Karaf 4.2.6 as OSGi base). I’m interested in automated testing and therefore implemented some Unit-Tests based…
ian_eve
  • 97
  • 2
  • 8
0
votes
1 answer

How to use in operator in camel simple xml dsl?

I am using Camel 2.17.0. I have a need to use in operator in the simple language in the blueprint.xml file as the following ${header.STATUS} in…
Chris W
  • 21
  • 1
  • 9
0
votes
1 answer

Mocking OSGi reference in CamelBlueprintTest does not work

I'm currently setting up tests with CamelBlueprintTestSupport. In my blueprint.xml, I tried the following implementation: Mocking FooInterface in my test class with protected void…
0
votes
1 answer

Apache-Camel Quartz simpleTrigger repeatCount and repeatInterval does not trigger event after first trigger event, fireNow

I am using camel-quartz component with simpleTrigger because I need to fire now on start, then every 12 hours. I have 5 minutes in the test below. simpleTrigger syntax quartz://timerName?options quartz://groupName/timerName?options the way it…
GLMills
  • 558
  • 1
  • 12
  • 37
0
votes
1 answer

reference a bean from different modules in a project?

I have a database declared in a module. I have a core business logic module I need to expose the database in. I have the database defined as a singleton, and as a service. however, I also need to access the database from the Core business logic…
GLMills
  • 558
  • 1
  • 12
  • 37
0
votes
0 answers

CamelContext keeps restart and shutdown

We are using JBoss Fuse 6.3. Our bundles usually have property placeholders for database connection, and other project properties. The following is one o the placeholder configuration:
Chris W
  • 21
  • 1
  • 9
0
votes
1 answer

How can I access the current ZonedDateTime (or Date) in a "route" when processing with a "timer" loop?

Background: The "configure()" method, in the sample code below, loops at specified time interval at which time I wish to log the current "ZonedDateTime.now() value Problem: The ZonedDateTime.now() value is always the same value, despite the…
sairn
  • 461
  • 3
  • 24
  • 58
0
votes
1 answer

How can an incrementable index be obtained - i.e., to use during a loop() in RouteBuilder?

Question: How can an incrementable index be obtained - i.e., to use during a loop() in RouteBuilder - so that iterative calls to "direct:thingC" will "process" subsequent elements (in the arraylist)? Here is configure() method... private final…
sairn
  • 461
  • 3
  • 24
  • 58
0
votes
1 answer

java.lang.IncompatibleClassChangeError in camel-test-blueprint

I am trying to create simple camel-test-blueprint, but can not proceed. I am able to do normal camel-test with the routes , but when I am trying with camel-test-blueprint I am getting exception. I think Some configuration is missing. I have created…
Hari
  • 97
  • 1
  • 14
0
votes
1 answer

Camel Blueprint specify parameter for prepared sql statement

I have a poll enrich which enriches a POJO with the result of an SQL query (from a MySQL database). It currently gets the brand from the POJO and then gets the name from the order matching the brand. I had to add quotes around the ${body.getBrand},…
ThunderM
  • 41
  • 1
  • 7
0
votes
1 answer

Camel-Blueprint Unable to convert value org.springframework.orm.hibernate4.LocalSessionFactoryBean to type org.hibernate.SessionFactory

I am using camel-blueprint and facing issues with hibernate component. This example works fine in Spring but not in blueprint JBoss Fuse 6.3 V The provided example is in spring and works fine but any example in blueprint will be…
0
votes
1 answer

Camel-Mybatis Open session Exception

I'm using Camel-Mybatis version 2.12.0.redhat-610379, when we trying to start the bundle thru karaf container the following exception throws. Please advice. org.apache.ibatis.exceptions.PersistenceException: Error opening session. Cause:…
salz
  • 81
  • 12