You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Geoff Longman <gl...@intelligentworks.com> on 2004/02/26 14:38:27 UTC
[HIVEMIND] Hivemind question
Just found the pointer to this list.
Geoff
----- Original Message -----
From: "Geoff Longman" <gl...@intelligentworks.com>
To: "Tapestry development" <ta...@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
Re: [HIVEMIND] Pooled Services using Pooled Services
Posted by Harish Krishnaswamy <hk...@comcast.net>.
Yes, but I have to disclaim that I have not used pooled services yet.
Although I don't see why the proxy can't get a service from the pool.
-Harish
Geoff Longman wrote:
>SO basicly you saying "trust the proxy"?
>
>
>----- Original Message -----
>From: "Harish Krishnaswamy" <hk...@comcast.net>
>To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
>Sent: Thursday, February 26, 2004 5:15 PM
>Subject: Re: [HIVEMIND] Pooled Services using Pooled Services
>
>
>
>
>>Have you tried wiring the two services like you do for the other service
>>models (in the module descriptors, I mean)?
>>
>>public class AImpl implements A, PoolManageable
>>{
>> private B _b;
>>
>> public AImpl(B b)
>> {
>> _b = b;
>> }
>>
>> public void activateService()
>> {
>> // app specific logic
>> }
>>}
>>
>>-Harish
>>
>>Geoff Longman wrote:
>>
>>
>>
>>>How does one setup a Pooled Service that needs to use another Pooled
>>>service?
>>>
>>>In other words I have a Pooled service A that implements PoolManageable.
>>>
>>>I want to get a reference to another Pooled service B in A's
>>>activateService().
>>>
>>>AImpl implements PoolManagable {
>>>
>>>private B _b;
>>>
>>>public void activateService() {
>>>
>>> _b = ????
>>>
>>>}
>>>
>>>}
>>>
>>>Ideas?
>>>
>>>Geoff
>>>
>>>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
>>>
>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [HIVEMIND] Pooled Services using Pooled Services
Posted by Geoff Longman <gl...@intelligentworks.com>.
SO basicly you saying "trust the proxy"?
----- Original Message -----
From: "Harish Krishnaswamy" <hk...@comcast.net>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Thursday, February 26, 2004 5:15 PM
Subject: Re: [HIVEMIND] Pooled Services using Pooled Services
> Have you tried wiring the two services like you do for the other service
> models (in the module descriptors, I mean)?
>
> public class AImpl implements A, PoolManageable
> {
> private B _b;
>
> public AImpl(B b)
> {
> _b = b;
> }
>
> public void activateService()
> {
> // app specific logic
> }
> }
>
> -Harish
>
> Geoff Longman wrote:
>
> >How does one setup a Pooled Service that needs to use another Pooled
> >service?
> >
> >In other words I have a Pooled service A that implements PoolManageable.
> >
> >I want to get a reference to another Pooled service B in A's
> >activateService().
> >
> >AImpl implements PoolManagable {
> >
> > private B _b;
> >
> > public void activateService() {
> >
> > _b = ????
> >
> > }
> >
> >}
> >
> >Ideas?
> >
> >Geoff
> >
> >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
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [HIVEMIND] Pooled Services using Pooled Services
Posted by Harish Krishnaswamy <hk...@comcast.net>.
Have you tried wiring the two services like you do for the other service
models (in the module descriptors, I mean)?
public class AImpl implements A, PoolManageable
{
private B _b;
public AImpl(B b)
{
_b = b;
}
public void activateService()
{
// app specific logic
}
}
-Harish
Geoff Longman wrote:
>How does one setup a Pooled Service that needs to use another Pooled
>service?
>
>In other words I have a Pooled service A that implements PoolManageable.
>
>I want to get a reference to another Pooled service B in A's
>activateService().
>
>AImpl implements PoolManagable {
>
> private B _b;
>
> public void activateService() {
>
> _b = ????
>
> }
>
>}
>
>Ideas?
>
>Geoff
>
>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
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[HIVEMIND] Pooled Services using Pooled Services
Posted by Geoff Longman <gl...@intelligentworks.com>.
How does one setup a Pooled Service that needs to use another Pooled
service?
In other words I have a Pooled service A that implements PoolManageable.
I want to get a reference to another Pooled service B in A's
activateService().
AImpl implements PoolManagable {
private B _b;
public void activateService() {
_b = ????
}
}
Ideas?
Geoff
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