• 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: David Teran <email@hidden>
  • Date: Sun, 22 Aug 2004 15:21:19 +0200

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.


--
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com
_______________________________________________
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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: inter-instance communication
      • From: Nathan Dumar <email@hidden>
References: 
 >Re: inter-instance communication (From: Dov Rosenberg <email@hidden>)

  • Prev by Date: Re: JavaScript - Enable Submit Button
  • Next by Date: Re: JavaScript - Enable Submit Button
  • Previous by thread: Re: inter-instance communication
  • Next by thread: Re: inter-instance communication
  • Index(es):
    • Date
    • Thread