[akka-user] routes using akka-http

2016-06-16 Thread hamza Sharif
i am using akk-http and i using it first time basically i am getting confuse in routes, i want to maintain routes in different classes . is akka support that ? -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/curren

Re: [akka-user] routes using akka-http

2016-06-16 Thread Martynas Mickevičius
Hi Hamza, sure, just move route definitions to a different object. Route is just a val. You can also have routes in traits, then you will have to mix these traits to your final application class or object. Take a look at the documentation

Re: [akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-16 Thread Patrik Nordwall
An ActorSystem is a rather heavyweight object. You typically start it when your application is launched and then keep it running until the application is stopped. Actors within the ActorSystem are rather lightweight objects and you can start many of them. An actor can be short lived, or stay aroun

Re: [akka-user] How to use play-ws in akka-http?

2016-06-16 Thread Greg Methvin
Hi pishen, I don't see why it would be a problem to use both together. I would suggest using a single WSClient and passing that around. That way you'll only have one Netty thread pool. Greg On Wed, Jun 15, 2016 at 1:04 PM, pishen tsai wrote: > Hello, > > Have anyone here ever tried using akka-

Re: [akka-user] java.lang.UnsatisfiedLinkError: sun/misc/Unsafe.putOrderedObject

2016-06-16 Thread zeineb zhioua
> > I get the same exception: > Exception in thread "main" java.lang.UnsatisfiedLinkError: test.Unsafe.registerNatives()V at test.Unsafe.registerNatives(Native Method) at test.Unsafe.(Unsafe.java:44) at test.ErrorTesterReflect.getInt(ErrorTesterReflect.java:26) at test.ErrorTesterReflect.main(Err

Re: [akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-16 Thread Yan Pei
We managed the lifecycle of actors inside the Application and only stop the ActorSystem until the batch processing application is stopped. Since we use a scheduler to run the batch processing application, like once per day, I guess it's ok to create ActorSystem for each run when the scheduler in

[akka-user] AbstractPersistentActor recover

2016-06-16 Thread Amruta
How does the abstract persistent actor recover messages? Does it recover all messages or only that were not delivered? Since we dont have confirm messages how will it work? We tried using AtleastOnce delivery but that did not help either. It was recovering all messages from the cassandra on e