Subject | Re: [Firebird-Java] Re: Java App with embedded server deployment (Linux) |
---|---|
Author | Niki Ivanchev |
Post date | 2004-05-03T11:12:59Z |
Roman Rokytskyy wrote:
to set only one conenction:
dataSource = new org.firebirdsql.pool.FBWrappingDataSource();
dataSource.setDatabase (mainApp.DB_NAME);
dataSource.setDescription ("DB Description");
dataSource.setType("embedded");
dataSource.setSqlRole("USER");
dataSource.setEncoding("UNICODE_FSS");
dataSource.setMinSize(1);
dataSource.setMaxSize(1);
dataSource.setPooling(true);
dataSource.setNonStandardProperty("isc_dpb_sweep", null);
dataSource.setNonStandardProperty("isc_dpb_num_buffers", "75");
FBDriverLoaded = true;
Straight from the docs
Tested on Suse 9.0, Mandrake 10.0 Redhat 8.0
JVM is 1.4.2_01
Of course I never open two connections - only one.
Regards
Niki
>>I have converted, tested and used our application in LinuxYes I use your connection poll as described in the examples. All I do is
>>enviroment Although I do not use jdbc:firebirdsql:embedded but I
>>open pool with one connection only and use only one connection in
>>our applications they pass all tests that we currently run. We have
>>8 applications that use firebird embedded and all they run on Linux.
>>
>>
>
>If you do not use jdbc:firebirdsql:embedded, how do you use embedded
>server? Do you use our connection pool and set appropriate type? What
>Linux and JVM do you use?
>
>
to set only one conenction:
dataSource = new org.firebirdsql.pool.FBWrappingDataSource();
dataSource.setDatabase (mainApp.DB_NAME);
dataSource.setDescription ("DB Description");
dataSource.setType("embedded");
dataSource.setSqlRole("USER");
dataSource.setEncoding("UNICODE_FSS");
dataSource.setMinSize(1);
dataSource.setMaxSize(1);
dataSource.setPooling(true);
dataSource.setNonStandardProperty("isc_dpb_sweep", null);
dataSource.setNonStandardProperty("isc_dpb_num_buffers", "75");
FBDriverLoaded = true;
Straight from the docs
Tested on Suse 9.0, Mandrake 10.0 Redhat 8.0
JVM is 1.4.2_01
Of course I never open two connections - only one.
Regards
Niki
>Thanks!
>Roman
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>