org.geotools.arcsde.jndi
Class ArcSDEConnectionFactory
Object
ArcSDEConnectionFactory
- All Implemented Interfaces:
- ObjectFactory
public class ArcSDEConnectionFactory
- extends Object
- implements ObjectFactory
A ObjectFactory
to create an ArcSDE connection pool
to be JNDI
managed.
This factory creates an ISessionPool
out of the following mandatory parameters:
-
server
(String) the arcsde server name
or IP address
-
port
(Integer) the TCP/IP port number
where ArcSDE is listening for connection requests
-
instance
(String) the name of the
arcsde database
-
user
(String) the database user name to
connect as
-
password
(String) the database user
password
And the following optional parameters:
See the package documentation for further information on how to configure JNDI resources for
ArcSDE on GeoTools.
- Since:
- 2.5.7
- Author:
- Gabriel Roldan (OpenGeo)
- Module:
modules/plugin/common (gt-common.jar)
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArcSDEConnectionFactory
public ArcSDEConnectionFactory()
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
throws Exception
- Specified by:
getObjectInstance
in interface ObjectFactory
- Returns:
- an
ISessionPool
ready to be shared (ie, per connection option singleton).
Whether shared or not is a matter of external JNDI configuration.
- Throws:
Exception
- See Also:
ObjectFactory.getObjectInstance(Object, Name, Context, Hashtable)
getInstance
public ISessionPool getInstance(Map<String,String> properties)
throws IOException
- Throws:
IOException
getInstance
public ISessionPool getInstance(ArcSDEConnectionConfig config)
throws IOException
- Throws:
IOException
setClosableSessionPoolFactory
public void setClosableSessionPoolFactory(ISessionPoolFactory newFactory)
getProperty
protected String getProperty(Reference ref,
String propName,
String defValue)
Copyright © 1996-2009 Geotools. All Rights Reserved.