Hi all,
I would like to ask u, how can i utilize database connection in my web
service. I have one web service with more methods in it. Id like to create
database connection just once and not with each call (each operation works
with the same database connection) Is it enough to create this
://www.nabble.com/JDBC-Database-connection-tf3690546.html#a10317941
Sent from the Axis - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If you deploy this service in Application Scope, then there will be one and
only one instance of this service throught out the life time of the
application.
This way you only create your database connection once.
>Is it enough to create this service with application scope?
So the answer is
This way you only create your database connection once.
>Is it enough to create this service with application scope?
So the answer is yes.
Rajith Attapattu
Red Hat.
On 10/9/07, *VF* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
Hi all,
I would like to ask u, h
of this service throught out the life time
> > of the application.
> > This way you only create your database connection once.
> >
> > >Is it enough to create this service with application scope?
> > So the answer is yes.
> >
> > Rajith Attapattu
> > Re
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 10, 2007 1:26 AM
To: axis-user@ws.apache.org
Subject: Re: Database connection
Since only one instance of the Service is used to serve all requests, your
code needs to be able to handle concurrency.
As anthony mentioned you may need to either use a
Hi VF
> Hi all,
> I would like to ask u, how can i utilize database connection in my web
> service. I have one web service with more methods in it. Id like to create
> database connection just once and not with each call (each operation works
> with the same database connection)
Hi Deepal,
Thank you, it really looks like good idea to implement interface
ServiceLifeCycle and make database pool there or to store it in AxisService
Parameter. It s a pity there s no sample in Axis2 distribution for pooling
database connection in Axis Service and I havent found it also in net
On 10/11/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>
> Hi VF
> > Hi all,
> > I would like to ask u, how can i utilize database connection in my web
> > service. I have one web service with more methods in it. Id like to
> create
> > database connection
On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
> Hi all,
>
> I am a new bie of axis. What I am trying now is to connect the service to
> the database.
> can somebody teach or tell me the step of connecting to the JDBC database.
> is there any guidelines of doing it?any reference?
Is there any
;
>> Regards,
>> Kencana
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View
What's the error? Could it be a class loader issue?
Michele
On Fri, 2007-05-04 at 01:29 -0700, Kencana wrote:
> Hi Michele,
>
> Thanks for the reply. if it is similar to the normal case, I cant get
> through the following phase
> Class.forName(drivername);
> I don't know why I can't establish th
;>
>> >> Regards,
>> >> Kencana
>> >
>> >
>> > ---------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
&g
So I do you know you can't establish a connection?
Michele
On Fri, 2007-05-04 at 01:40 -0700, Kencana wrote:
> Hi,
>
> there is no error message at all (either from the log file or from the
> browser)
>
> Kencana
>
>
> Michele Mazzucco-2 wrote:
> >
> > What's the error? Could it be a class l
hank you
>> >> >>
>> >> >> Regards,
>> >> >> Kencana
>> >> >
>> >> >
>> >> >
>> -
>> >> > To unsubscribe, e-ma
On Fri, 2007-05-04 at 01:59 -0700, Kencana wrote:
> Hi,
>
> sorry but i dun get what you mean in the last post.
> "So I do you know you can't establish a connection?"
You said there are no errors, right?, However the fact that you can't
establish a connection to the db server is an error, so it s
initializations. To make
Axis2 call your implementation, you must identify it in the services.xml
file.
Hope this helps.
Troy
-Original Message-
From: Kencana [mailto:[EMAIL PROTECTED]
Sent: Friday, May 04, 2007 2:08 AM
To: axis-user@ws.apache.org
Subject: JDBC Database connection
give back the answers (e.g. the Resultset in a
vector, or the resultset as xml, etc.).
I didn't implement soap-web-services till now, so my generally
questions are:
- Is there a session- and application-management, e.g. to store the
database-connection, so I don't have to open
Hi,
I have one javase application and now I need to change it into axis2
webservice and publish it.
While it was javase application, it run fine(certanlly, it could db
connections). But after I change it into axis2 service, when the application
tries to create database connection, there
javase application, it run fine(certanlly, it could db
> connections). But after I change it into axis2 service, when the application
> tries to create database connection, there will be an exception : no
> suitable driver. Actually, all the jdbc libs needed are in classpath.
>
> My
n fine(certanlly, it could db
> > connections). But after I change it into axis2 service, when the application
> > tries to create database connection, there will be an exception : no
> > suitable driver. Actually, all the jdbc libs needed are in classpath.
> >
> > My
gt; I have one javase application and now I need to change it into
> > > axis2 webservice and publish it.
> > >
> > > While it was javase application, it run fine(certanlly, it could
> > > db connections). But after I change it into axis2 service, when the
; > > axis2 webservice and publish it.
> > > >
> > > > While it was javase application, it run fine(certanlly, it could
> > > > db connections). But after I change it into axis2 service, when the
> > > > application tries to create data
Dear All:
I've wrote a small servlet that extends AxisServlet.
This home-made servlet can get database connection from our connection
pooling mechanism.
The question is : When I write the java code of my service , how can I
get a database connection ? I find no way to send a database conne
All:
>
> I've wrote a small servlet that extends AxisServlet.
> This home-made servlet can get database connection from our connection
> pooling mechanism.
>
> The question is : When I write the java code of my service , how can I
> get a database connection ? I find no way
rn on investment.
>
> just my $0.02 worth...
> .ron.
> > Dear All:
> >
> > I've wrote a small servlet that extends AxisServlet.
> > This home-made servlet can get database connection from our connection
> > pooling mechanism.
> >
> >
> use a static ThreadLocal (singleton) to hold the
> connection and thus associate a Connection with the thread - the same thread
> will be used to call the service handler at which point it can call
> MyThreadSpecificConnectionHolder.get() to get the connection assigned to the
> thread back out
>
this code won't work:
> private static ThreadLocal tm_app = new ThreadLocal() {
> protected synchronized Object getTMApp() {
> return _app ;
> }
> };
because ThreadLocal doesn't define a getTMApp() method (the only way you could
invoke this method through the
ce and publish it.
>>While it was javase application, it run fine(certanlly, it could db
connections). But after I change it into axis2 service, when the
>>application tries to create database connection, there will be an
exception : no suitable driver. Actually, all the jdbc l
pplication and now I need to change it into
> axis2 webservice and publish it.
>
> >>While it was javase application, it run fine(certanlly, it could db
> connections). But after I change it into axis2 service, when the
> >>application tries to create database connection,
> Could anyone explain it?
> >
> > Thanks!
> >
> > Qil
> >
> >
> > Question yesterday:
> > >>Hi,
> >
> > >>I have one javase application and now I need to change it into
> > axis2 webservice and publis
31 matches
Mail list logo