However, I would like to be able to connect to this database on occasion
from a remote process (e.g. Database Pilot) to view real-time data in
the database. As I understand it, this requires that the webapp also
run a DataStore server.
My questions:
1. if remote access is enabled via running an in-process DataStore
server, will the webapp still get local access via JDBC or will all
access now go through the server thus degrade performance?
2. how is the DataStore server configured to co-exist with local access?
Can I initialize the DataStore server somehow with an existing
DataStoreDriver instance or DataStoreConnection?
FYI. Local access is currently configured by registering the
DataStoreDriver class in Tomcat's JNDI tree (done automatically when the
WAR file is deployed).
Any help or insight would be much appreciated.
thx
- Brenton
To allow remote connections, you must instantiate a DataStoreServer
component and call its start method. This causes the server to run in your
process and listen for remote connections.
-Steve
"Brenton Camac" <b...@camacit.com> wrote in message
news:44457cfa$1...@newsgroups.borland.com...
At any rate, I've figured it out. The documentation is very poor in
this area. Which meant I had to design test cases to find the answer.
rgds,
Brenton
Kind regards,
Edwin.
If you are using a jdbc url and "dslocal" is specified, a local connection
will be made regardless of whether the server is started in the same
process.
The same holds true if you use a JdbcDataSource with its setNetworkProtocol
property set to null.
>
> 2. how is the DataStore server configured to co-exist with local access?
> Can I initialize the DataStore server somehow with an existing
> DataStoreDriver instance or DataStoreConnection?
I'm not sure exactly what you are asking here. The DataStoreServer
component is the only way to start the server. There is no coexistence
issue for the DataStoreServer which provides remote access and local
connections. Internally, the DataStore server is "effectively" making local
connections to service all requests made from a remote connection.