You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by "Magli, Pierangelo" <pi...@hp.com> on 2006/08/09 11:03:06 UTC

Problem with JdbcControl accessed through an Axis Webservice

Hi folks,
I have a litte problem with JdbcControls and webservices, hope somebody
can help :)

The use case is as following: 

I have to access a JdbcControl through a webservice (actually, a .jws
deployed on Axis, embedded in my web application). If I instantiate the
control programmaticaly, everything works flawlessly, but if I use the
declarative approach with the @Control annotation, I get a
NullPointerException when I try to access the control...

Do you have any suggestion that could fix this problem?
Many thanks,

Pier

RE: Problem with JdbcControl accessed through an Axis Webservice

Posted by "Magli, Pierangelo" <pi...@hp.com>.
Hi Eddie,
Many thanks for your reply. 

It would be fantastic if you could give me some help on how to set up my
webapp to use that source files! Do you need some information on how the
application itself is structured & configured?

Thank you again,

Pierangelo

-----Original Message-----
From: Eddie O'Neil [mailto:ekoneil@gmail.com] 
Sent: Wednesday, August 09, 2006 5:56 PM
To: Beehive Users
Subject: Re: Problem with JdbcControl accessed through an Axis
Webservice

Pier--

  Use of the @Control annotation (declarative instantiation) requires
that the container of the web service be aware of how to create and
manage a control instance.  Out of the box, Axis 1.x does not support
this, but there is some as yet unshipped code in WSM that provides very
basic support for using Controls from an Axis web service.

  Basically, this code just intercepts the call to the web service,
instantiates fields declared with @Control, and then calls the web
service method.

  If you're interested, I can help you set this up -- it would require
using the source files in this directory:

http://svn.apache.org/repos/asf/beehive/wsm/trunk/src/axis1/org/apache/b
eehive/wsm/axis/controls/

in your application.  FWIW, this is code that Beehive could ship as a
standalone add-on to Axis if there's sufficient interest in that.

Eddie


On 8/9/06, Magli, Pierangelo <pi...@hp.com> wrote:
> Hi folks,
> I have a litte problem with JdbcControls and webservices, hope 
> somebody can help :)
>
> The use case is as following:
>
> I have to access a JdbcControl through a webservice (actually, a .jws 
> deployed on Axis, embedded in my web application). If I instantiate 
> the control programmaticaly, everything works flawlessly, but if I use

> the declarative approach with the @Control annotation, I get a 
> NullPointerException when I try to access the control...
>
> Do you have any suggestion that could fix this problem?
> Many thanks,
>
> Pier
>

Re: Problem with JdbcControl accessed through an Axis Webservice

Posted by Eddie O'Neil <ek...@gmail.com>.
Pier--

  Use of the @Control annotation (declarative instantiation) requires
that the container of the web service be aware of how to create and
manage a control instance.  Out of the box, Axis 1.x does not support
this, but there is some as yet unshipped code in WSM that provides
very basic support for using Controls from an Axis web service.

  Basically, this code just intercepts the call to the web service,
instantiates fields declared with @Control, and then calls the web
service method.

  If you're interested, I can help you set this up -- it would require
using the source files in this directory:

http://svn.apache.org/repos/asf/beehive/wsm/trunk/src/axis1/org/apache/beehive/wsm/axis/controls/

in your application.  FWIW, this is code that Beehive could ship as a
standalone add-on to Axis if there's sufficient interest in that.

Eddie


On 8/9/06, Magli, Pierangelo <pi...@hp.com> wrote:
> Hi folks,
> I have a litte problem with JdbcControls and webservices, hope somebody
> can help :)
>
> The use case is as following:
>
> I have to access a JdbcControl through a webservice (actually, a .jws
> deployed on Axis, embedded in my web application). If I instantiate the
> control programmaticaly, everything works flawlessly, but if I use the
> declarative approach with the @Control annotation, I get a
> NullPointerException when I try to access the control...
>
> Do you have any suggestion that could fix this problem?
> Many thanks,
>
> Pier
>