Sharon
Thanks for your reply. Here is what I want: We have 3 services implemented in 
STAF by Java: VM, Host, Setup. All these services have some common info such as 
connection anchor. But currently, when we use VM service, we have to create 
anchor for VM, using Host service, we need to create another anchor for Host. 
Ideally, these two anchors are same, but since VM and Host service are in 
different memory, we can not re-use VM anchor for Host service. We are now 
thinking of way to build a main (common) service which handles all the common 
information such as anchor across all services. When needed for other services, 
we will load them.  But all the loaded services can share the same information 
in main service.

Can you please let me know what is the best way to do it

Thanks

Lu
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: Tuesday, June 30, 2009 8:30 AM
To: Lu Yu
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] How to share memory between different services


Are these STAF Java services you have written?  Are you asking how to run them 
in the same JVM?  If so, just make sure when the Java service is registered 
that they are all registered using the same JVMName option (which defaults to 
STAFJVM1 if OPTION JVMNAME=<JVMName> is not specified when registering a STAF 
Java service).

If this isn't what you're asking, please provide more information on what you 
are trying to do.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313


Lu Yu <l...@vmware.com>

06/30/2009 02:19 AM

To

"staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>

cc

Subject

[staf-users] How to share memory between different services







Hi
I am running STAF Framework in VMware. I have a question regarding sharing 
memory between different services. The problem I have is that we have 
maintained 4 different staf services (vmware internally developed service). In 
order to reduce the file size and memory usuage, we want to have a main service 
which has all shared information, when needed loading other services, the 
service loaded later can re-use the shared information in the main service.

Can anyone shed a light on me of how to implement it?

Thanks!

Lu------------------------------------------------------------------------------
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to