• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: inter-instance communication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inter-instance communication


  • Subject: Re: inter-instance communication
  • From: Nathan Dumar <email@hidden>
  • Date: Mon, 23 Aug 2004 15:37:37 -0400

Thank you, David and Dov.

While the JMS does look like a better long-term solution (allowing for more inter-instance communication as the need may arise), it is way over my head at this point in my learning. I began reading the spec and my head started to swim.

Though I have not yet had the need to make a direct action, it is within my ability. It gets enough coverage in books and online articles that I'll be able to get it all going.

Thank you both again.

Nathan


On Aug 22, 2004, at 9:21 AM, David Teran wrote:

Am 22.08.2004 um 13:55 schrieb Dov Rosenberg:

I would recommend using Java Messages (JMS). One of the benefits of JMS is
that if you decide to move your instances to different machines, things will
still work. You can use OpenJMS and the code from WOProject. You don't need
to make any major changes to your project either.



Besides JMS which would fit your needs in your simple case you could create a DirectAction:


public WOActionResults removeSessionAction() {
    String passwd = request().stringFormValueForKey("password");
    String sid = request().stringFormValueForKey("sid");
    if (!passwd.equals(aPredefinedPassword)) {
	return null;
    } else {
	WOApplication.application().sessionStore().removeSessionWithID(sid);
    }
}

you can call this direct action with an URL like: http://yourServer/cgi-bin/WebObjects/Appname.woa/wa/removeSession? password=secred&sid=theIdFromTheSessionToRemove


Of course, you would call this method on ever particular instance.


regards David




On 8/22/04 12:14 AM, "Nathan Dumar" <email@hidden> wrote:

I have seen this asked before, but now I cannot find it ... How do I
send a message from one instance to other instances of my WO app?
(Without using the database.)

From within one instance, I need to invoke an application-level method
in all instances. If it's complicated, please explain it a bit.


In a nutshell, this is the invocation:
this.application().sessionStore().removeSessionWithID(...);

Thank you,
Nathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: inter-instance communication (From: Dov Rosenberg <email@hidden>)
 >Re: inter-instance communication (From: David Teran <email@hidden>)

  • Prev by Date: Re: WebObjects on XP - Cannot execute auto launch
  • Next by Date: Re: Just once more, an EOF/ObjC replacement?
  • Previous by thread: Re: inter-instance communication
  • Next by thread: Need Direct to Web Advice
  • Index(es):
    • Date
    • Thread