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 Deepak Vishwakarma <vd...@yahoo.co.in> on 2008/12/03 08:03:48 UTC

Registering new handlers programmatically with Axis2

Hi,

  Currently Axis2 registers the handlers specified in the axis2.xml configuration file.
  Is there a way to programmatically register new custom handlers with Axis2 runtime i.e. i don't want to use the axis2.xml approach? How can this be achieved?

Thanks,
Deepak.


      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Registering new handlers programmatically with Axis2

Posted by Deepal Jayasinghe <de...@opensource.lk>.
> Hi,
>
>   Currently Axis2 registers the handlers specified in the axis2.xml configuration file.
>   Is there a way to programmatically register new custom handlers with Axis2 runtime i.e. i don't want to use the axis2.xml approach? How can this be achieved?
>   
Actually the correct way of adding handlers into Axis2 is not using
axis2.xml , we have done that just because ease of use for system
handlers. If you want to add a handler then the right approach would be
to write a module and engage that at the run time.

Deepal
> Thanks,
> Deepak.
>
>
>       Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>   

-- 
Thank you!


http://blogs.deepal.org


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


Re: Registering new handlers programmatically with Axis2

Posted by Deepak Vishwakarma <vd...@yahoo.co.in>.
Thanks for your response.
But, will this approach work in IBM WebSphere Application Server 6.1v?


--- On Wed, 3/12/08, Amila Suriarachchi <am...@gmail.com> wrote:

> From: Amila Suriarachchi <am...@gmail.com>
> Subject: Re: Registering new handlers programmatically with Axis2
> To: axis-dev@ws.apache.org, vdeepak79@yahoo.co.in
> Cc: "axis-user" <ax...@ws.apache.org>
> Date: Wednesday, 3 December, 2008, 8:35 PM
> On Wed, Dec 3, 2008 at 12:33 PM, Deepak Vishwakarma
> <vd...@yahoo.co.in>wrote:
> 
> > Hi,
> >
> >  Currently Axis2 registers the handlers specified in
> the axis2.xml
> > configuration file.
> >  Is there a way to programmatically register new
> custom handlers with Axis2
> > runtime i.e. i don't want to use the axis2.xml
> approach? How can this be
> > achieved?
> 
> 
> see
> 
> addRequestBlockingHandlerToInFlows() method of this[1]
> class.
> 
> thanks,
> Amila.
> 
> [1]
> http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java?view=markup
> 
> 
> >
> > Thanks,
> > Deepak.
> >
> >
> >      Add more friends to your messenger and enjoy! Go
> to
> > http://messenger.yahoo.com/invite/
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> axis-dev-help@ws.apache.org
> >
> >
> 
> 
> -- 
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/


      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

Re: Registering new handlers programmatically with Axis2

Posted by Deepak Vishwakarma <vd...@yahoo.co.in>.
Thanks for your response.
But, will this approach work in IBM WebSphere Application Server 6.1v?


--- On Wed, 3/12/08, Amila Suriarachchi <am...@gmail.com> wrote:

> From: Amila Suriarachchi <am...@gmail.com>
> Subject: Re: Registering new handlers programmatically with Axis2
> To: axis-dev@ws.apache.org, vdeepak79@yahoo.co.in
> Cc: "axis-user" <ax...@ws.apache.org>
> Date: Wednesday, 3 December, 2008, 8:35 PM
> On Wed, Dec 3, 2008 at 12:33 PM, Deepak Vishwakarma
> <vd...@yahoo.co.in>wrote:
> 
> > Hi,
> >
> >  Currently Axis2 registers the handlers specified in
> the axis2.xml
> > configuration file.
> >  Is there a way to programmatically register new
> custom handlers with Axis2
> > runtime i.e. i don't want to use the axis2.xml
> approach? How can this be
> > achieved?
> 
> 
> see
> 
> addRequestBlockingHandlerToInFlows() method of this[1]
> class.
> 
> thanks,
> Amila.
> 
> [1]
> http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java?view=markup
> 
> 
> >
> > Thanks,
> > Deepak.
> >
> >
> >      Add more friends to your messenger and enjoy! Go
> to
> > http://messenger.yahoo.com/invite/
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> axis-dev-help@ws.apache.org
> >
> >
> 
> 
> -- 
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/


      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

Re: Registering new handlers programmatically with Axis2

Posted by Amila Suriarachchi <am...@gmail.com>.
On Wed, Dec 3, 2008 at 12:33 PM, Deepak Vishwakarma
<vd...@yahoo.co.in>wrote:

> Hi,
>
>  Currently Axis2 registers the handlers specified in the axis2.xml
> configuration file.
>  Is there a way to programmatically register new custom handlers with Axis2
> runtime i.e. i don't want to use the axis2.xml approach? How can this be
> achieved?


see

addRequestBlockingHandlerToInFlows() method of this[1] class.

thanks,
Amila.

[1] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java?view=markup


>
> Thanks,
> Deepak.
>
>
>      Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: Registering new handlers programmatically with Axis2

Posted by Amila Suriarachchi <am...@gmail.com>.
On Wed, Dec 3, 2008 at 12:33 PM, Deepak Vishwakarma
<vd...@yahoo.co.in>wrote:

> Hi,
>
>  Currently Axis2 registers the handlers specified in the axis2.xml
> configuration file.
>  Is there a way to programmatically register new custom handlers with Axis2
> runtime i.e. i don't want to use the axis2.xml approach? How can this be
> achieved?


see

addRequestBlockingHandlerToInFlows() method of this[1] class.

thanks,
Amila.

[1] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java?view=markup


>
> Thanks,
> Deepak.
>
>
>      Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/