hm, well...
then maybe the driver stores thread specific data behind the
scenes. wouldn't be too good. did you proper synchronized usage
of the connection?
robert
Jin schrieb:
> Thanks, Robert! But the connection works perfectly without thread. I
> don't understand ...
> > this does not sound like a thread problem. look into your
> > driver's documentation, maybe you forgot a parameter / property.
> > robert
> > Jin schrieb:
> > > Dear All,
> > > I have problem to get a connection to the database in a thread. I
> > > tried:
> > > connection con = DriverManager.getConnection(url, user, passwd);
> > > and
> > > Driver driver = DriverManager.getDriver(url);
> > > connection con=driver.connect(url, property)
> > > Both of them do not work(but DriverManager.getDriver()works fine), I
> > > got the exception message is: No client specified.
> > > Please help me! Thanks!!!!
> > > Jin
> > --
> > Robert Klemme
> > software engineer
> > -------------------------------------------------------------------------
> > -------
> > myview technologies GmbH & Co. KG
> > Lindberghring 1 ~ 33142 B?en ~ Germany
> > Fon: +49-2955-7433-20 Fax: +49-2955-7433-99
> > -------------------------------------------------------------------------
> > -------
> > The information transmitted is only intended for the person or
> > entity to which
> > it is adressed. It may contain confidential and/or privileged
> > material. Any
> > review, forwarding, distribution or any other action related to
> > this information
> > by persons or entities other than the intended addressee is
> > prohibited. If you
> > receive this by mistake, please contact the addresser and delete
> > the material
> > from any computer.
--
Robert Klemme
software engineer
---------------------------------------------------------------------------
-----
myview technologies GmbH & Co. KG
Lindberghring 1 ~ 33142 Bren ~ Germany
Fon: +49-2955-7433-20 Fax: +49-2955-7433-99
--------------------------------------------------------------------------------
The information transmitted is only intended for the person or
entity to which
it is adressed. It may contain confidential and/or privileged
material. Any
review, forwarding, distribution or any other action related to
this information
by persons or entities other than the intended addressee is
prohibited. If you
receive this by mistake, please contact the addresser and delete
the material
from any computer.