Subject | Re: [Firebird-Java] Jaybird 2.1 JDBC driver Java Programmer's Manual missing Figure 2.7? |
---|---|
Author | Mark Rotteveel |
Post date | 2012-12-30T16:54:09Z |
On 27-12-2012 13:17, alex.smersi wrote:
import javax.naming.*;
import org.firebirdsql.pool.*;
...
FBWrappingDataSource ds = new FBWrappingDataSource();
ds.setDatabase("localhost/3050:C:/database/employee.gdb");
ds.setUser("SYSDBA");
ds.setPassword("masterkey");
InitialContext ctx = new InitialContext();
ctx.bind("jdbc/SomeDB", ds);
But as I said in my previous mail, it is uncommon to to bind DataSource
in JNDI this way.
Mark
--
Mark Rotteveel
> Hi --The text in figure 2.7 should have been:
> I'm beginner with JayBird, and I'm reading PDF manual in subject URL [0].
> In Chapter 2, I'm wrong or Figure 2.7 is missing?
import javax.naming.*;
import org.firebirdsql.pool.*;
...
FBWrappingDataSource ds = new FBWrappingDataSource();
ds.setDatabase("localhost/3050:C:/database/employee.gdb");
ds.setUser("SYSDBA");
ds.setPassword("masterkey");
InitialContext ctx = new InitialContext();
ctx.bind("jdbc/SomeDB", ds);
But as I said in my previous mail, it is uncommon to to bind DataSource
in JNDI this way.
Mark
--
Mark Rotteveel