Hey all,

I'm sure this question has been answered a lot - but I couldn't find an answer for so please excuse this :-)

I have a service which is filled with data at one class (some random Java class, no page). Then, in another class, I'd like to retrieve the service and get the data. I do it this way because quite a lot of objects are involved with the service and I wanted to take advantage by Tapestry's pooling so I wouldn't have to create all these objects again and again.

But when I try to re-take the service in the other class I get another instance, thus I don't have access to the data.

My questions:
Is there away around this? I could, for example, just pass a reference of this object from the first class to the second. Would this be bad style? Is there a mechanism for what I'd like to do I'm just not aware of?

Best regards,

    Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to