Deployment of Akka Camel CXF Osgi sample in Apache Karaf container

2013-09-14 Thread sramakrishna
ng above exception.

Regards
Ramakrishna



--
View this message in context: 
http://camel.465427.n5.nabble.com/Deployment-of-Akka-Camel-CXF-Osgi-sample-in-Apache-Karaf-container-tp5739297.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Deployment of Akka Camel CXF Osgi sample in Apache Karaf container

2013-09-15 Thread Charles Moulliard
omDefinition.java:72)
> at
>
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
> at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:861)
> at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:176)
> ... 16 more
>
>
> I am getting same in karaf console both for camel cxfrs based actors, camel
> mina based actors but not for normal actors i.e Actors which implement
> UnTypeActor.
>
> The above error stack error was printed by following the suggestion as per
> below link"
>
>
> https://www.assembla.com/spaces/akka/tickets/3541-errors-encountered-during-akka-camel-consumer-route-creation-are-too-difficult-to-debug#/activity/ticket
>
>
> Please, help me in resolving above exception.
>
> Regards
> Ramakrishna
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Deployment-of-Akka-Camel-CXF-Osgi-sample-in-Apache-Karaf-container-tp5739297.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com


Re: Deployment of Akka Camel CXF Osgi sample in Apache Karaf container

2013-09-15 Thread Willem jiang
 > http://127.0.0.1:7070/agilis/services/rest/oacc/?bindingStyle=SimpleConsumer&resourceClasses=com.diebold.agilis.oacc.rest.OACCRestService
> > due to: No component found with scheme: cxfrs
> > at
> >  
> > org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:515)
> > at
> >  
> > org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:62)
> > at
> >  
> > org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:191)
> > at
> >  
> > org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
> > at
> >  
> > org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
> > at
> >  
> > org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
> > at
> >  
> > org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
> > at
> > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:861)
> > at
> > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:176)
> > ... 16 more
> >  
> >  
> > I am getting same in karaf console both for camel cxfrs based actors, camel
> > mina based actors but not for normal actors i.e Actors which implement
> > UnTypeActor.
> >  
> > The above error stack error was printed by following the suggestion as per
> > below link"
> >  
> >  
> > https://www.assembla.com/spaces/akka/tickets/3541-errors-encountered-during-akka-camel-consumer-route-creation-are-too-difficult-to-debug#/activity/ticket
> >  
> >  
> > Please, help me in resolving above exception.
> >  
> > Regards
> > Ramakrishna
> >  
> >  
> >  
> > --
> > View this message in context:
> > http://camel.465427.n5.nabble.com/Deployment-of-Akka-Camel-CXF-Osgi-sample-in-Apache-Karaf-container-tp5739297.html
> > Sent from the Camel - Users mailing list archive at Nabble.com 
> > (http://Nabble.com).
>  
>  
>  
>  
>  
> --  
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com





Re: Deployment of Akka Camel CXF Osgi sample in Apache Karaf container

2013-09-16 Thread sramakrishna
"Hi-

I deployed all corresponding features by the following commands at command
prompt:

1) features:chooseurl cxf 2.7.5
2) features:install cxf
3) features:chooseurl camel 2.10.3
4) features:install camel
5) features:install camel-cxf
6) then deployed my features.xml in karaf deploy directory. The features.xml
contains my project specific bundles and akka dependencies as bundles.

The same code is working successfully if any camel component specific
endpoint based actor is not used. It was working fine with normal i.e.
default actors provided by akka actor mode.

Note: I am simply extended the following example in java and using camel
component specific endpoint based actors.
https://github.com/Crossing-Tech/akka-osgi-sample

"



--
View this message in context: 
http://camel.465427.n5.nabble.com/Deployment-of-Akka-Camel-CXF-Osgi-sample-in-Apache-Karaf-container-tp5739297p5739501.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Deployment of Akka Camel CXF Osgi sample in Apache Karaf container

2013-09-19 Thread sramakrishna
   }, system.dispatcher());


//2. Camel CXF RS Based Actor Creation
ActorRef camelBasedActorRef =
system.actorOf(Props.create(OACCCamelCXFRestActor.class),
"OACCCamelCXFRestActor");

System.out.println(camelBasedActorRef != null ? 
camelBasedActorRef.path()
: "ActorRef is null");

camel.context().setTracing(true);


activationFuture = 
camel.activationFutureFor(camelBasedActorRef, timeout,
system.dispatcher());
activationFuture.onComplete(new OnComplete() {
@Override
public void onComplete(Throwable throwable, ActorRef 
actorRef)
throws Throwable {
if(throwable != null) {
System.out.println("The below is error 
thrown from actor creation");
throwable.printStackTrace();
} else {
System.out.println("Actor is 
Successfully Created");
}
}
}, system.dispatcher());


Please, let me know your thoughts on same.

Note: 1) Even tried with explicit registration of component with the
following line of code while registering camel cxfrs based actor with actory
system:
camel.context().addComponent("cxfrs", new CxfRsComponent(camel.context()));
2) Based on 1, it throws the exception like error due to 
mentioned on endpoint url of consumer actor.

Regards
Ramakrishna



--
View this message in context: 
http://camel.465427.n5.nabble.com/Deployment-of-Akka-Camel-CXF-Osgi-sample-in-Apache-Karaf-container-tp5739297p5739828.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Deployment of Akka Camel CXF Osgi sample in Apache Karaf container

2013-10-24 Thread sramakrishna

The proof of concept can be found here in the following github repository:
https://github.com/sramakrishna/akkaosgicamelcxfsample



Additional information can be found here:

https://groups.google.com/forum/#!topic/akka-user/lQkYM5qgTao
https://groups.google.com/forum/#!topic/akka-dev/ldeCD-iF0bg



--
View this message in context: 
http://camel.465427.n5.nabble.com/Deployment-of-Akka-Camel-CXF-Osgi-sample-in-Apache-Karaf-container-tp5739297p5742128.html
Sent from the Camel - Users mailing list archive at Nabble.com.