Subject | Re: [Firebird-Java] Re: Firebird connectivity |
---|---|
Author | Rick Fincher |
Post date | 2003-09-11T21:33:51Z |
Hi,
It depends on what you are doing. For general use in Java programs it needs
to be in the classpath. You can put it in JAVA_HOME/jre/lib/ext to have it
available to any java program run by that JVM.
If you are running it in an application server, like Tomcat, you need to
find out where that program needs it to be. Since Tomcat is itself a Java
program and their are security issues, etc, it decides what libraries it
allows its web apps to see.
In the case of Tomcat you would put it in CATALINA_HOME/common/lib to have
it available for all web apps run by Tomcat. You can put it other places if
you want to restrict it to certain web apps.
See the FAQ for info on where to put it for use with JBoss, JBuilder,
DreamWeaver, OpenOffice, etc.
The FAQ is in the distribution you downloaded or in the
client-java/output/etc folder of the source.
Rick
It depends on what you are doing. For general use in Java programs it needs
to be in the classpath. You can put it in JAVA_HOME/jre/lib/ext to have it
available to any java program run by that JVM.
If you are running it in an application server, like Tomcat, you need to
find out where that program needs it to be. Since Tomcat is itself a Java
program and their are security issues, etc, it decides what libraries it
allows its web apps to see.
In the case of Tomcat you would put it in CATALINA_HOME/common/lib to have
it available for all web apps run by Tomcat. You can put it other places if
you want to restrict it to certain web apps.
See the FAQ for info on where to put it for use with JBoss, JBuilder,
DreamWeaver, OpenOffice, etc.
The FAQ is in the distribution you downloaded or in the
client-java/output/etc folder of the source.
Rick
----- Original Message -----
From: "batsoww" <batsoww@...>
To: <Firebird-Java@yahoogroups.com>
Sent: Thursday, September 11, 2003 5:20 PM
Subject: [Firebird-Java] Re: Firebird connectivity
> I there any particular place the driver should be? I downloaded the
> firebirdsql-full.jar from the firebird site. Where do I put this
> file in order for it to work?
>
> --- In Firebird-Java@yahoogroups.com, John Zoetebier
> <john.zoetebier@t...> wrote:
> > On Thu, 11 Sep 2003 18:42:40 -0000, batsoww <batsoww@y...> wrote:
> >
> > > Hi, I am new to the world of Firebird and Java and I was
> wondering
> > > what the basic syntax of the database url and the driver url
> would
> > > look like. I am reading the database url from a file and passing
> it
> > > to the DriverManager.connection(Database_URL);
> > >
> > > I just don't understand how to write the actual URL's in the
> correct
> > > format in order to connect to the database.
> > >
> >
> > When you download FireBird there is a file FAX.txt.
> > From that file:
> > ==>
> > Two forms of JayBird can be used. FBDriver is used much like the
> old
> > Interclient driver. FBWrappingDataSource has internal connection
> pooling
> > capability. Examples of both are included here. Code examples of
> many of
> > the classes and methods used by JayBird can be found in the
> src/test
> > subdirectory of the source code available on SourceForge.net, see
> question
> > 13 below.
> >
> > JayBird supports two URL syntax formats:
> >
> > Standard format= jdbc:firebirdsql:[//host[:port]/]<database>
> >
> > FB old format= jdbc:firebirdsql:[host[/port]:]<database>
> > ==>
> >
> > Furthermore there is a samples folder with 2 Java programs.
> > The <database> is the qualified name of the database, i.e.
> includes the
> > path.
> >
> > --
> > John Zoetebier
> > Web site: http://www.transparent.co.nz
>
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>