Database connection

2007-10-09 Thread 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) Is it enough to create this

JDBC Database connection

2007-05-04 Thread Kencana
://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]

Re: Database connection

2007-10-09 Thread Rajith Attapattu
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

Re: Database connection

2007-10-09 Thread Anthony Bull
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

Re: Database connection

2007-10-09 Thread Rajith Attapattu
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

RE: Database connection

2007-10-10 Thread VF
[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

Re: Database connection

2007-10-10 Thread Deepal Jayasinghe
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)

RE: Database connection

2007-10-11 Thread VF
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

Re: Database connection

2007-10-11 Thread Rajith Attapattu
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

Re: JDBC Database connection

2007-05-04 Thread Michele Mazzucco
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

Re: JDBC Database connection

2007-05-04 Thread Kencana
; >> Regards, >> Kencana > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View

Re: JDBC Database connection

2007-05-04 Thread Michele Mazzucco
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

Re: JDBC Database connection

2007-05-04 Thread Kencana
;> >> >> Regards, >> >> Kencana >> > >> > >> > --------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] &g

Re: JDBC Database connection

2007-05-04 Thread Michele Mazzucco
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

Re: JDBC Database connection

2007-05-04 Thread Kencana
hank you >> >> >> >> >> >> Regards, >> >> >> Kencana >> >> > >> >> > >> >> > >> - >> >> > To unsubscribe, e-ma

Re: JDBC Database connection

2007-05-04 Thread Michele Mazzucco
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

RE: JDBC Database connection

2007-05-07 Thread Rudolph, Troy
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

Database connection over soap

2007-05-11 Thread Oliver Hirschi
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

axis2: create database connection by services in axis2 server

2007-10-22 Thread Qil . Wong
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

Re: axis2: create database connection by services in axis2 server

2007-10-22 Thread Antonio Manuel Muñiz Martín
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

Re: axis2: create database connection by services in axis2 server

2007-10-22 Thread Qil . Wong
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

Re: axis2: create database connection by services in axis2 server

2007-10-22 Thread Antonio Manuel Muñiz Martín
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

Re: axis2: create database connection by services in axis2 server

2007-10-22 Thread Qil . Wong
; > > 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

How to get database connection in my service via connection pool

2005-12-08 Thread Ken Hu
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

Re: How to get database connection in my service via connection pool

2005-12-08 Thread Ron Reynolds
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

Re: How to get database connection in my service via connection pool

2005-12-08 Thread Guy Rixon
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. > > > >

Re: How to get database connection in my service via connection pool

2005-12-08 Thread Ken Hu
> 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 >

Re: How to get database connection in my service via connection pool

2005-12-09 Thread Ron Reynolds
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

axis2: create database connection by services in web server(not axis2 server)

2007-10-22 Thread Qil . Wong
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

Re: axis2: create database connection by services in web server(not axis2 server)

2007-10-22 Thread Lahiru Sandakith
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,

Re: axis2: create database connection by services in web server(not axis2 server)

2007-10-22 Thread Qil . Wong
> 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