I have looked at the ThreadedServiceModel and I can not see how
I can realize that I get for each service request a new instance
of my service. The only thing I can do is to get for each method
invocation on a service a new instance. But this is different from
what I want.
Am I missing something?


Prototype? I would not associate this term with that what I need.
Isn�t a prototype not something unique?


Stefan
email: [EMAIL PROTECTED]



-----Original Message-----
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: Mon 10.01.2005 14:33
To: [email protected]
Subject: Re: Trying to create a �new instance" service model, but ..
 
A good name for this would be "prototype", because that's what Spring
uses for the same concept.

Look at how ThreadedServiceModel works. 

You basically need a proxy that obtains a fresh instance from the
ServiceModel for each method invocation.


On Mon, 10 Jan 2005 02:04:33 -0800, Liebig, Stefan
<[EMAIL PROTECTED]> wrote:
> 
> I tried to create a �new instance� service model. This service model should
> create for each service request a new instance. But as I found out this is
> not possible because ServicePointImpl �caches� the service once created.
> 
> My question - independent on how usefull a �new instance� service model might
> be - is:
> Shouldn�t this caching not be part of the specific service model? I think the
> current solution limits the usage of service models.
> 
> Stefan
> 
> email: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to