Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7988927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:36:03+00:00 2026-06-04T12:36:03+00:00

I am trying to create an actor that can be accessed remotely and locally.

  • 0

I am trying to create an actor that can be accessed remotely and locally.
The actor created below throws an exception. Any idea?


val myLocalActor2 = system.actorOf(Props[ActorNodes], name =
"akka://JtsSystem@127.0.0.1:2552/MyOwnRef")

Is this the best and only way to programmatically create and actor that is both local and remote?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:36:04+00:00Added an answer on June 4, 2026 at 12:36 pm

    The “name” in actorOf is just a path segment. that will identify the newly created actor. See here for more information on that: http://doc.akka.io/docs/akka/2.0.1/general/addressing.html

    Also, having something which is both local and remote doesn’t make sense, but I assume you mean that it should be local and be accessible from some remote node? If so, just create it with actorOf, and other nodes may look it up using “actorFor”:

    val remoteActor = system.actorFor("akka://CalculatorApplication@127.0.0.1:2552/user/simpleCalculator")
    

    Read more about it here: http://doc.akka.io/docs/akka/2.0.1/scala/remoting.html

    In general, please read the documentation, we’ve poured so many hours into it and it feels wasteful when people don’t read it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying create a ASMX webservice that can perform a HTTP GET request. I
today I am basically trying to create some JAVA code that moves an actor
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Trying to create a macro which can be used for print debug messages when
Trying to create a generic video plugin for Expression Engine 2 where I can
I'm trying create a RCP Application with Eclipse, but I can't get past the
I'm trying create a box in my Django app that displays text (and possibly
I am trying create a small web application that allows a user to login
I am trying create a 'live' view where our clients can edit the colors
I'm trying create a log specifically for logging user account activity. I created this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.