You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Aleksej <al...@ivs.lt> on 2005/07/29 14:45:45 UTC

confuze with service model

Having such simple service description as:
-----
    <service-point id="Counter" interface="mediena.services.Counter">
        <create-instance class="impl.CounterImpl" model="singleton"/>
    </service-point>
-----

where Counter interface looks like this:
-----
    int getCounter();
    void increaseCounter( int value );
-----

and CounterImpl keeps counter value and logs each method I found that 
every time
I ask registry for Counter service and call any method, registry creates 
new instance of
Service. I call them from the same thread and even from the same 
method... By default service
is sigleton, but even not defining model at all behaviour is still the same.





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


RE: confuze with service model

Posted by James Carman <ja...@carmanconsulting.com>.
No, the beta should be fine for this.  Can you show us the code you use to
ask the registry for the Counter service and then subsequently call methods
on it?  Show us the code you use to do it multiple times?



-----Original Message-----
From: Aleksej [mailto:aleksej@ivs.lt] 
Sent: Monday, August 01, 2005 2:12 AM
To: hivemind-user@jakarta.apache.org
Subject: Re: confuze with service model

James Carman wrote:

>What version of HM are you using?
>
>-----Original Message-----
>From: Aleksej [mailto:aleksej@ivs.lt] 
>Sent: Friday, July 29, 2005 8:46 AM
>To: hivemind-user@jakarta.apache.org
>Subject: confuze with service model
>
>Having such simple service description as:
>-----
>    <service-point id="Counter" interface="mediena.services.Counter">
>        <create-instance class="impl.CounterImpl" model="singleton"/>
>    </service-point>
>-----
>
>where Counter interface looks like this:
>-----
>    int getCounter();
>    void increaseCounter( int value );
>-----
>
>and CounterImpl keeps counter value and logs each method I found that 
>every time
>I ask registry for Counter service and call any method, registry creates 
>new instance of
>Service. I call them from the same thread and even from the same 
>method... By default service
>is sigleton, but even not defining model at all behaviour is still the
same.
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>
>  
>
I am using 1.1beta2. Do I need to use 1.0? How stable beta2 is?

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



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


Re: confuze with service model

Posted by Aleksej <al...@ivs.lt>.
James Carman wrote:

>What version of HM are you using?
>
>-----Original Message-----
>From: Aleksej [mailto:aleksej@ivs.lt] 
>Sent: Friday, July 29, 2005 8:46 AM
>To: hivemind-user@jakarta.apache.org
>Subject: confuze with service model
>
>Having such simple service description as:
>-----
>    <service-point id="Counter" interface="mediena.services.Counter">
>        <create-instance class="impl.CounterImpl" model="singleton"/>
>    </service-point>
>-----
>
>where Counter interface looks like this:
>-----
>    int getCounter();
>    void increaseCounter( int value );
>-----
>
>and CounterImpl keeps counter value and logs each method I found that 
>every time
>I ask registry for Counter service and call any method, registry creates 
>new instance of
>Service. I call them from the same thread and even from the same 
>method... By default service
>is sigleton, but even not defining model at all behaviour is still the same.
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>
>  
>
I am using 1.1beta2. Do I need to use 1.0? How stable beta2 is?

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


RE: confuze with service model

Posted by James Carman <ja...@carmanconsulting.com>.
What version of HM are you using?

-----Original Message-----
From: Aleksej [mailto:aleksej@ivs.lt] 
Sent: Friday, July 29, 2005 8:46 AM
To: hivemind-user@jakarta.apache.org
Subject: confuze with service model

Having such simple service description as:
-----
    <service-point id="Counter" interface="mediena.services.Counter">
        <create-instance class="impl.CounterImpl" model="singleton"/>
    </service-point>
-----

where Counter interface looks like this:
-----
    int getCounter();
    void increaseCounter( int value );
-----

and CounterImpl keeps counter value and logs each method I found that 
every time
I ask registry for Counter service and call any method, registry creates 
new instance of
Service. I call them from the same thread and even from the same 
method... By default service
is sigleton, but even not defining model at all behaviour is still the same.





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



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