commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Longman" <glong...@intelligentworks.com>
Subject [HIVEMIND] Hivemind question
Date Thu, 26 Feb 2004 13:38:27 GMT
Just found the pointer to this list.

Geoff
----- Original Message -----
From: "Geoff Longman" <glongman@intelligentworks.com>
To: "Tapestry development" <tapestry-dev@jakarta.apache.org>
Sent: Thursday, February 26, 2004 8:25 AM
Subject: Hivemind question


> I would post this to a hivemind list if there was one ;-)
>
> Howard, I got Hivemind from you in december and I've only now had time to
> give it a workout. I'm confused about symbol sources.
>
> I'm making a service that will create a TOPLink server session and its job
> is to hand out TOPLink client sessions. Our current implementation takes
an
> URL in string form to find an consume a properties file.
>
> public interface SessionSource {
>   public ClientSession getClientSession();
> }
>
> public class SessionSourceImpl implements SessionSource, Initializable {
>
>     public void setConfigurationURLString(String value) { ..... }
>
>     public void initializeService() { .. read props - get TOPlink
> ServerSession }
>
>     public ClientSession getClientSession() { get a CS from SS and return
> it }
> }
>
> <module id="orca.server" version="1.0.0">
>     <service-point id="SessionSource"
interface="orca.server.SessionSource">
>       <invoke-factory service-id="hivemind.BuilderFactory">
>             <construct class="orca.server.SessionSourceImpl">
>                  <set property="configrationUrlString"
> value="${session-source-config-url}"/>
>             </construct>
>       </invoke-factory>
>     </service-point>
> </module>
>
> I'm lost here as to how symbol sources are used to supply a value for
> ${session-source-config-url}. Ideally we'd like the value to some from
> somewhere outside of HiveMind. Maybe from the command line as a system
> property, but not necessarily.
>
> This make any sense?
>
> Geoffrey Longman
> Intelligent Works Inc.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message