Subject | RE: [Firebird-Java] Type 2 Driver |
---|---|
Author | Ryan Baldwin |
Post date | 2003-06-05T12:33:36Z |
Hi,
sorry. firebirdsql_withtype2changes.jar doesent actually expose type 2
functionality to the user. This was put up there to test that the
(re-applied against CVS more carefully)modifications I have made against the
CVS dont break the type 4 driver in any way. My local cvs copy now has the
type two functionality exposed to the user. I have too fix a small problem
with it then I was going to make this available for tests and then hopefully
get permission to commit.
When intergrated properly the connections string would be
'jdbc:firebirdsql:native_embeded//loopback/C:\blah\blah\blah.FDB' or
somthing along those lines - allowing the same jar file to be used for type
4 and type 2 mode. This is how it works in my current local version
currently.
firebirdembededforjava_JDK14_RC1_01.zip contains binaries for my initial
experimental type 2 support where also I made it hard coded to only work
with the embeded firebird dll for this particular set of binaries so as to
avoid possible confusion as to which connection method was being used if
people wanted to try out the fbemded.dll in there java app. Me and several
of my colegues have been using this exclusivly in our development since a
few days before it was made available on the yahoo site and have had no
problems with it.
I would be interested to hear what affect it has on your applications
performance.
Thanks
Ryan
-----Original Message-----
From: Luca Lafranchi [mailto:luca.lafranchi@...]
Sent: 05 June 2003 12:02
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Type 2 Driver
Ok, now I've seen it:
- if I use the firebirdsql_embeded.jar from
"firebirdembededforjava_JDK14_RC1_01.zip" everything goes well;
- if I use the firebirdsql_withtype2changes.jar it attempts to build a
network connection and fails;
- forward and backward slash can be both used.
Thanks for the help
Luca
Ryan Baldwin wrote:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
sorry. firebirdsql_withtype2changes.jar doesent actually expose type 2
functionality to the user. This was put up there to test that the
(re-applied against CVS more carefully)modifications I have made against the
CVS dont break the type 4 driver in any way. My local cvs copy now has the
type two functionality exposed to the user. I have too fix a small problem
with it then I was going to make this available for tests and then hopefully
get permission to commit.
When intergrated properly the connections string would be
'jdbc:firebirdsql:native_embeded//loopback/C:\blah\blah\blah.FDB' or
somthing along those lines - allowing the same jar file to be used for type
4 and type 2 mode. This is how it works in my current local version
currently.
firebirdembededforjava_JDK14_RC1_01.zip contains binaries for my initial
experimental type 2 support where also I made it hard coded to only work
with the embeded firebird dll for this particular set of binaries so as to
avoid possible confusion as to which connection method was being used if
people wanted to try out the fbemded.dll in there java app. Me and several
of my colegues have been using this exclusivly in our development since a
few days before it was made available on the yahoo site and have had no
problems with it.
I would be interested to hear what affect it has on your applications
performance.
Thanks
Ryan
-----Original Message-----
From: Luca Lafranchi [mailto:luca.lafranchi@...]
Sent: 05 June 2003 12:02
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Type 2 Driver
Ok, now I've seen it:
- if I use the firebirdsql_embeded.jar from
"firebirdembededforjava_JDK14_RC1_01.zip" everything goes well;
- if I use the firebirdsql_withtype2changes.jar it attempts to build a
network connection and fails;
- forward and backward slash can be both used.
Thanks for the help
Luca
Ryan Baldwin wrote:
> Hi,The
>
> I have just re-tested this using DriverManager and it is working for me.
> strange thing is that using the embeded stuff froma
> 'firebirdembededforjava_JDK14_RC1_01.zip' it should not be attempt to make
> network connection to any host - its hard coded to ignore hostname/ipany
> address part of the url.
>
> My sugestions are:
>
> 1) Make sure that 'firebirdsql_embeded.jar' is on your class path and that
> the original firebirdsql*.jar has been taken off your class path. I have a
> feeling this is the most likley cause of your problem. You will probarbly
> still need the mini-*.jar files.
>
> 2) My connection string looks like
> 'jdbc:firebirdsql://loopback/C:\blah\blah\blah.FDB'. Notice the path
> seperators are different. I dont know(but dont think) if this will make
> difference - it seems windows is usually happy with either - at leastwin2k
> etc.To unsubscribe from this group, send an email to:
>
> I hope this helps you out. Please let us know how you get on.
>
> Thanks
> Ryan
>
>
>
> -----Original Message-----
> From: Luca Lafranchi [mailto:luca.lafranchi@...]
> Sent: 05 June 2003 10:54
> To: Firebird-Java@yahoogroups.com
> Subject: [Firebird-Java] Type 2 Driver
>
>
> Hi :)
>
> I'm trying to use the type 2 driver against the embedded 1.5 server, but
> I'm stuck at the basics: I get no connection. I'm using the
> "DriverManger.getConnection(...)" mechanism. As written in the
> readme.txt file, I must use the loopback address, so that my connection
> string looks like "jdbc:firebirdsql://127.0.0.1/c:/path/to/db/db.gdb".
> What I get is:
>
> Cannot connect to this database:
> jdbc:firebirdsql://127.0.0.1/c:/path/to/db/db.gdb
> org.firebirdsql.jdbc.FBSQLException: Resource Exception. Unable to
> complete network request to host "127.0.0.1".
>
> I also tried setting the port, but nothing changed.
>
> I copied the dlls in JDK/bin, JRE/bin, my project's root directory under
> JBuilder, but nothing...
>
> Any hints?
>
> Environment is Win2000Pro, I'm using the
> firebirdsql_withtype2changes.jar, with the dlls from
> firebirdembededforjava_JDK14_RC1_01.zip, which are both on the file
> section of the yahoo group.
>
> TIA
> Luca
>
>
>
> 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/
>
>
>
>
>
> 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/
>
>
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/