Here is my log

2017-07-21T13:12:25,727 | INFO  | pool-34-thread-1 | OsgiDefaultCamelContext    
      | 58 - org.apache.camel.camel-core - 2.19.1 | Apache Camel 2.19.1 
(CamelContext: camel-1) is starting
2017-07-21T13:12:25,729 | INFO  | pool-34-thread-1 | ManagedManagementStrategy  
      | 58 - org.apache.camel.camel-core - 2.19.1 | JMX is enabled
2017-07-21T13:12:25,825 | INFO  | pool-34-thread-1 | 
DefaultRuntimeEndpointRegistry   | 58 - org.apache.camel.camel-core - 2.19.1 | 
Runtime endpoint registry is in extended mode gathering usage statistics of all 
incoming and outgoing endpoints (cache limit: 1000)
2017-07-21T13:12:25,945 | INFO  | pool-34-thread-1 | OsgiDefaultCamelContext    
      | 58 - org.apache.camel.camel-core - 2.19.1 | StreamCaching is not in 
use. If using streams then its recommended to enable stream caching. See more 
details at http://camel.apache.org/stream-caching.html
2017-07-21T13:12:26,433 | INFO  | pool-34-thread-1 | OsgiDefaultCamelContext    
      | 58 - org.apache.camel.camel-core - 2.19.1 | Total 3 routes, of which 0 
are started.
2017-07-21T13:12:26,434 | INFO  | pool-34-thread-1 | OsgiDefaultCamelContext    
      | 58 - org.apache.camel.camel-core - 2.19.1 | Apache Camel 2.19.1 
(CamelContext: camel-1) started in 0.707 seconds

-----Original Message-----
From: Matthew Shaw [mailto:matthew.s...@ambulance.qld.gov.au] 
Sent: Friday, 21 July 2017 1:03 PM
To: users@camel.apache.org
Subject: restlet and declarative services DI

Hi All,

I'm using osgi declarative services DI with apache karaf for deployment. I can 
see in the karaf logs that the camel context is loading and my routes are being 
started, however the restlet server is not starting, here is the route config:

restConfiguration().component("restlet").host("localhost").port(8095).bindingMode(RestBindingMode.json);

rest("/services/legacywrapper/etimesheet")
        .post()
        .consumes(MediaType.APPLICATION_JSON.getName())
        .type(ETimesheetRequest.class)
        .to("direct:extractTimesheetId");

from("direct:extractTimesheetId")
        .process(new Processor() {
            @Override
            public void process(Exchange exchange) throws Exception {
                ETimesheetRequest eTimesheetRequest = 
exchange.getIn().getBody(ETimesheetRequest.class);
                exchange.getIn().setBody(eTimesheetRequest.getTimesheetId());
            }
        })
        .to("direct:etimesheetGet");


from("direct:etimesheetGet")
        .doTry()
        .bean(eTimesheetEJB2Bean, "mediate")
        .log(LoggingLevel.INFO,"Timesheet successfully transformed")
        .convertBodyTo(String.class, "UTF-8")
        .doCatch(Exception.class)
        .log(LoggingLevel.ERROR ,exceptionMessage().toString())
        .throwException(new RuntimeException(exceptionMessage().toString()))
        .endDoTry();

I've installed the restlet feature and component in karaf via camel-restlet. Am 
I missing something obvious?
This email, including any attachments sent with it, is confidential and for the 
sole use of the intended recipient(s). This confidentiality is not waived or 
lost, if you receive it and you are not the intended recipient(s), or if it is 
transmitted/received in error.

Any unauthorised use, alteration, disclosure, distribution or review of this 
email is strictly prohibited. The information contained in this email, 
including any attachment sent with it, may be subject to a statutory duty of 
confidentiality if it relates to health service matters.

If you are not the intended recipient(s), or if you have received this email in 
error, you are asked to immediately notify the sender. You should also delete 
this email, and any copies, from your computer system network and destroy any 
hard copies produced.

If not an intended recipient of this email, you must not copy, distribute or 
take any action(s) that relies on it; any form of disclosure, modification, 
distribution and/or publication of this email is also prohibited.

Although the Queensland Ambulance Service takes all reasonable steps to ensure 
this email does not contain malicious software, the Queensland Ambulance 
Service does not accept responsibility for the consequences if any person's 
computer inadvertently suffers any disruption to services, loss of information, 
harm or is infected with a virus, other malicious computer programme or code 
that may occur as a consequence of receiving this email.

Unless stated otherwise, this email represents only the views of the sender and 
not the views of the Queensland Government.

********************************************************************************

The content presented in this publication is distributed by the Queensland 
Government as an information source only. The State of Queensland makes no 
statements, representations or warranties about the accuracy, completeness or 
reliability of any information contained in this publication. The State of 
Queensland disclaims all responsibility and all liability (including without 
limitation for liability in negligence) for all expenses, losses, damages and 
costs you might incur as a result of the information being inaccurate or 
incomplete in any way, and for any reason reliance was placed on such 
information.
This email, including any attachments sent with it, is confidential and for the 
sole use of the intended recipient(s). This confidentiality is not waived or 
lost, if you receive it and you are not the intended recipient(s), or if it is 
transmitted/received in error.

Any unauthorised use, alteration, disclosure, distribution or review of this 
email is strictly prohibited. The information contained in this email, 
including any attachment sent with it, may be subject to a statutory duty of 
confidentiality if it relates to health service matters.

If you are not the intended recipient(s), or if you have received this email in 
error, you are asked to immediately notify the sender. You should also delete 
this email, and any copies, from your computer system network and destroy any 
hard copies produced.

If not an intended recipient of this email, you must not copy, distribute or 
take any action(s) that relies on it; any form of disclosure, modification, 
distribution and/or publication of this email is also prohibited.

Although the Queensland Ambulance Service takes all reasonable steps to ensure 
this email does not contain malicious software, the Queensland Ambulance 
Service does not accept responsibility for the consequences if any person's 
computer inadvertently suffers any disruption to services, loss of information, 
harm or is infected with a virus, other malicious computer programme or code 
that may occur as a consequence of receiving this email.

Unless stated otherwise, this email represents only the views of the sender and 
not the views of the Queensland Government.

********************************************************************************

The content presented in this publication is distributed by the Queensland 
Government as an information source only. The State of Queensland makes no 
statements, representations or warranties about the accuracy, completeness or 
reliability of any information contained in this publication. The State of 
Queensland disclaims all responsibility and all liability (including without 
limitation for liability in negligence) for all expenses, losses, damages and 
costs you might incur as a result of the information being inaccurate or 
incomplete in any way, and for any reason reliance was placed on such 
information.

Reply via email to