Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Camel Producer with Path
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Channing Walton  
View profile  
 More options Aug 3 2012, 6:31 am
From: Channing Walton <channingwal...@mac.com>
Date: Fri, 3 Aug 2012 03:31:28 -0700 (PDT)
Local: Fri, Aug 3 2012 6:31 am
Subject: Camel Producer with Path

Hi,
I need to connect to a restful service at some host, and grab documents
based on a path. eg

class Downloader extends Actor with Producer {
    override def endpointUri = "http://a.b.c/"

}

then

val downloader = Actor.actorOf[Downloader].start()
val response = downloader !! "/trade/1234"

and the body of the response should have a string (json/xml/etc)

But, the above isn't working for me because the path being sent to the
actor is being ignored.

I tried adding:

  override protected def receiveBeforeProduce = {
      case msg: Message ⇒
msg.setHeaders(msg.headers(Set(Exchange.HTTP_PATH)))
  }

But that failed too.

How can I do this?

Channing


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
√iktor Ҡlang  
View profile  
 More options Aug 3 2012, 7:36 am
From: √iktor Ҡlang <viktor.kl...@gmail.com>
Date: Fri, 3 Aug 2012 13:36:41 +0200
Local: Fri, Aug 3 2012 7:36 am
Subject: Re: [akka-user] Camel Producer with Path

Hi Channing,

Sounds like you could benefit from using AsyncHttpClient and have a bridge
over to Akka Futures.

Cheers,

On Fri, Aug 3, 2012 at 12:31 PM, Channing Walton <channingwal...@mac.com>wrote:

--
Viktor Klang

Akka Tech Lead
Typesafe <http://www.typesafe.com/> - The software stack for applications
that scale

Twitter: @viktorklang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Channing Walton  
View profile  
 More options Aug 3 2012, 8:29 am
From: Channing Walton <channing.wal...@googlemail.com>
Date: Fri, 3 Aug 2012 13:29:09 +0100
Local: Fri, Aug 3 2012 8:29 am
Subject: Re: [akka-user] Camel Producer with Path

Thanks I'll look at that. I'm also looking at spray which might be a good bet too,

On 3 Aug 2012, at 12:36, √iktor Ҡlang <viktor.kl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Viktor Klang  
View profile  
 More options Aug 3 2012, 8:31 am
From: Viktor Klang <viktor.kl...@gmail.com>
Date: Fri, 3 Aug 2012 14:31:28 +0200
Local: Fri, Aug 3 2012 8:31 am
Subject: Re: [akka-user] Camel Producer with Path
On Fri, Aug 3, 2012 at 2:29 PM, Channing Walton

<channing.wal...@googlemail.com> wrote:
> Thanks I'll look at that. I'm also looking at spray which might be a good
> bet too,

Absolutely, Spray is cool


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »