You can check spray-client docs here:
http://spray.io/documentation/1.2.1/spray-client/
If only version compatible with the build of play you're using (akka
dependency), I don't see a reason to not use it if you'd like it.
-- Konrad
On Thu, Sep 11, 2014 at 9:00 PM, jitendra shelar
Also, spray-client is when you need http communication.
If the only thing you’re after here is fire-and-forget semantics all you
need is ! (tell), that’s exactly the semantics it has.
Futures are not and forget, because you do get some information in them
(completed / failed).
On Fri, Sep 12,
Thanks Konrad.
I am trying with ! (tell).
*Playframework Code:*
import play.api._
import play.api.mvc._
import akka.actor.{ActorSystem, Actor, ActorRef,Props}
import scala.concurrent.duration._
import play.api.libs.ws.WS
class HelloActor extends Actor {
def receive = {
case hello =
If there are any sample examples related to spray-clien and playframework,
please let me know.
I don't want the response back from the Action.
--
Read the docs: http://akka.io/docs/
Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
Search the archives:
// After above WS call, I want this view page to be displayed. The
control must not go back to Ok
and
fire and forget
won't work (both principles exclude each other).
Whats your goal? Display the output of the netBankingPage action in the
index action or do some work in the background?
Yes Planetenkiller,
My goal is to display the netBankingPage into my index action.
Problem I am facing is index Action returns http response(Ok).
I just want to call the netBankingPage and end the process at that instant.
I am new to playframework/scala/actor and implementing this application
As Konrad said, I cannot use akka futures here.
I have tried using futures before.
Best suitable for this scenario is akka actors.
But really stuck in between. Not getting how to proceed ahead.
--
Read the docs: http://akka.io/docs/
Check the FAQ:
Yes Planetenkiller.
Actor doesn't send http response.
I am not interested in http response in this scenario.
I just want that netBankingPage to be displayed and that's it.
I am not interested in sending response back to action.
If any alternatives/solutions, please let me know.
Thanks,
Jitendra
Hi Olger,
I am using playframework for my application development.
Is spray suitable for playframework?
If any documents, please let me know.
Thanks,
Jitendra
--
Read the docs: http://akka.io/docs/
Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
On Friday, September 5, 2014 5:14:22 PM UTC+2, Olger Warnier wrote:
Hi Jitendra,
You may want to look at the spray client, a nice piece of work that helps
you to call http based services in an async way.
Oh: It's based on akka actors..
Kind regards,
Olger
On Friday, September
Hi Jitendra,
You may want to look at the spray client, a nice piece of work that helps
you to call http based services in an async way.
Kind regards,
Olger
On Friday, September 5, 2014 10:53:18 AM UTC+2, jitendra shelar wrote:
Hi,
I am newbie to Akka.
I am developing a payment
11 matches
Mail list logo