You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Paul Fremantle <pz...@gmail.com> on 2005/06/01 12:00:50 UTC

[Axis2] Setting properties and initialising

Folks

What is the object lifecycle of components used by Axis2 as server
code implementations?

i.e. is there an init() style call? do they get re-used or does the
engine new them up for each invocation? Is there a way of setting
properties on them?

Paul

Re: [Axis2] Setting properties and initialising

Posted by Srinath Perera <he...@gmail.com>.
Hi Paul;
> I would like to see us implement an IOC model which is broadly
> compatible with IOC containers like Spring and HiveMind.
 
> I think we could easily integrate Axis2 with Spring and this would be
> very powerful. Because the Spring model doesn't introduce API
> dependencies we can have the same component run in Axis2 directly or
> under Spring/Pico/Hivemind.... that will be very cool.
 
I am not against doing more IOC support, but just wondering do we need
to do more than to inject the MessageContext, e.g.  if the" class the
provides the Business logic" implements some interface we inject
Message Context.

For M2, shall I just do the MessageContext injection part, about much
border IOC supports let us discuss detail and ask others what they
feel too
Thanks
Srinath


> On 6/2/05, Srinath Perera <he...@gmail.com> wrote:
> > Paul sorry had I give a fails hope , What I mean was that we can
> > implemented that (but not implemented yet).
> > I belive it is straight foward thing to implement, I will get back if
> > I able to tacke that
> >
> > Thanks
> > Srinath
> >
> > On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> > > Srinath
> > >
> > > Thats exactly the kind of thing I'm looking for. Is there a sample?
> > >
> > > Paul
> > >
> > > On 6/1/05, Srinath Perera <he...@gmail.com> wrote:
> > > > Paul We do not have way to let the "class that implements the businuss
> > > > logic" have the properties right now.
> > > >
> > > > We can give referance of MessageContext (which includes information
> > > > hierachy) to the "class impmenets the bunisuss logic" using IOC, so it
> > > > can set get properties from the hierachy.
> > > >
> > > > WHat do you think?
> > > > Thanks
> > > > Srinath
> > > >
> > > > On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> > > > > Yes exactly. I'm looking at the sample EchoXML.
> > > > >
> > > > > Paul
> > > > >
> > > > > On 6/1/05, Srinath Perera <he...@gmail.com> wrote:
> > > > > > Paul are you refering to the the class that implements the businuss logic?
> > > > > > Thanks
> > > > > > Srinath
> > > > > >
> > > > > > On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> > > > > > > Folks
> > > > > > >
> > > > > > > What is the object lifecycle of components used by Axis2 as server
> > > > > > > code implementations?
> > > > > > >
> > > > > > > i.e. is there an init() style call? do they get re-used or does the
> > > > > > > engine new them up for each invocation? Is there a way of setting
> > > > > > > properties on them?
> > > > > > >
> > > > > > > Paul
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: [Axis2] Setting properties and initialising

Posted by Srinath Perera <he...@gmail.com>.
Paul sorry had I give a fails hope , What I mean was that we can
implemented that (but not implemented yet).
I belive it is straight foward thing to implement, I will get back if
I able to tacke that

Thanks
Srinath

On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> Srinath
> 
> Thats exactly the kind of thing I'm looking for. Is there a sample?
> 
> Paul
> 
> On 6/1/05, Srinath Perera <he...@gmail.com> wrote:
> > Paul We do not have way to let the "class that implements the businuss
> > logic" have the properties right now.
> >
> > We can give referance of MessageContext (which includes information
> > hierachy) to the "class impmenets the bunisuss logic" using IOC, so it
> > can set get properties from the hierachy.
> >
> > WHat do you think?
> > Thanks
> > Srinath
> >
> > On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> > > Yes exactly. I'm looking at the sample EchoXML.
> > >
> > > Paul
> > >
> > > On 6/1/05, Srinath Perera <he...@gmail.com> wrote:
> > > > Paul are you refering to the the class that implements the businuss logic?
> > > > Thanks
> > > > Srinath
> > > >
> > > > On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> > > > > Folks
> > > > >
> > > > > What is the object lifecycle of components used by Axis2 as server
> > > > > code implementations?
> > > > >
> > > > > i.e. is there an init() style call? do they get re-used or does the
> > > > > engine new them up for each invocation? Is there a way of setting
> > > > > properties on them?
> > > > >
> > > > > Paul
> > > > >
> > > >
> > >
> >
>

Re: [Axis2] Setting properties and initialising

Posted by Srinath Perera <he...@gmail.com>.
Paul We do not have way to let the "class that implements the businuss
logic" have the properties right now.

We can give referance of MessageContext (which includes information
hierachy) to the "class impmenets the bunisuss logic" using IOC, so it
can set get properties from the hierachy.

WHat do you think?
Thanks
Srinath

On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> Yes exactly. I'm looking at the sample EchoXML.
> 
> Paul
> 
> On 6/1/05, Srinath Perera <he...@gmail.com> wrote:
> > Paul are you refering to the the class that implements the businuss logic?
> > Thanks
> > Srinath
> >
> > On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> > > Folks
> > >
> > > What is the object lifecycle of components used by Axis2 as server
> > > code implementations?
> > >
> > > i.e. is there an init() style call? do they get re-used or does the
> > > engine new them up for each invocation? Is there a way of setting
> > > properties on them?
> > >
> > > Paul
> > >
> >
>

Re: [Axis2] Setting properties and initialising

Posted by Paul Fremantle <pz...@gmail.com>.
Yes exactly. I'm looking at the sample EchoXML.

Paul

On 6/1/05, Srinath Perera <he...@gmail.com> wrote:
> Paul are you refering to the the class that implements the businuss logic?
> Thanks
> Srinath
> 
> On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> > Folks
> >
> > What is the object lifecycle of components used by Axis2 as server
> > code implementations?
> >
> > i.e. is there an init() style call? do they get re-used or does the
> > engine new them up for each invocation? Is there a way of setting
> > properties on them?
> >
> > Paul
> >
>

Re: [Axis2] Setting properties and initialising

Posted by Srinath Perera <he...@gmail.com>.
Paul are you refering to the the class that implements the businuss logic?
Thanks
Srinath

On 6/1/05, Paul Fremantle <pz...@gmail.com> wrote:
> Folks
> 
> What is the object lifecycle of components used by Axis2 as server
> code implementations?
> 
> i.e. is there an init() style call? do they get re-used or does the
> engine new them up for each invocation? Is there a way of setting
> properties on them?
> 
> Paul
>