pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedLoading JDBC - driver
2+ messages / 2 participants
[nested] [flat]
* Loading JDBC - driver
@ 1999-02-15 08:45 Sergei Chernev <ser@nsu.ru>
0 siblings, 1 reply; 2+ messages in thread
From: Sergei Chernev @ 1999-02-15 08:45 UTC (permalink / raw)
To: pgsql-interfaces
Hello,
I wonder, if there is a way to load JDBC- driver from network.
I know the method to connect using jdbc6.4.jar on local disk
and editing CLASSPATH, but it seems to me inconvenient to
ask user to download driver and edit environment.
Does it possible to use construction like that:
Class.forName("http://somewhere.com/postgresql.Driver/jdbc6.4.jar/postgresql
.Driver").newInstance(); ?
Excuse me if it is FAQ, but I didn't find anything of the kind in mailing
list.
Thank you,
---------------------------
Sergei Chernev
Internet: ser@nsu.ru
Phone: +7-3832-397354
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] Loading JDBC - driver
@ 1999-02-15 09:01 Peter T Mount <peter@taer.maidstone.gov.uk>
parent: Sergei Chernev <ser@nsu.ru>
0 siblings, 0 replies; 2+ messages in thread
From: Peter T Mount @ 1999-02-15 09:01 UTC (permalink / raw)
To: Sergei Chernev <ser@nsu.ru>; +Cc: pgsql-interfaces
On Mon, 15 Feb 1999, Sergei Chernev wrote:
> Hello,
>
> I wonder, if there is a way to load JDBC- driver from network.
> I know the method to connect using jdbc6.4.jar on local disk
> and editing CLASSPATH, but it seems to me inconvenient to
> ask user to download driver and edit environment.
>
> Does it possible to use construction like that:
> Class.forName("http://somewhere.com/postgresql.Driver/jdbc6.4.jar/postgresql
> .Driver").newInstance(); ?
> Excuse me if it is FAQ, but I didn't find anything of the kind in mailing
> list.
That's ok. What you need is a custom class loader, that fetches the jar
file from a url, then extracts the classes from it.
This is how browsers do it, but as to how you would write a class loader
is another question (one of those things I havent got round to trying yet)
;-)
Peter
--
Peter Mount, IT Section
petermount@it.maidstone.gov.uk
Anything I write here are my own views, and cannot be taken as being the
official words of Maidstone Borough Council
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-02-15 09:01 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-02-15 08:45 Loading JDBC - driver Sergei Chernev <ser@nsu.ru>
1999-02-15 09:01 ` Peter T Mount <peter@taer.maidstone.gov.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox