Not exactly, but very close. I forgot to mention, that we also have to keep in
mind: SeConnection()-Constructor
changes in DirectConnect mode. Below is a code snippet which shows how the
SeConnection
Constructor is used in my directconnect-enabled arcsde-ds implementation:
String portNumber = "sde:oracle10g:/:sde";
/*servername not needed,
but empty string causes exception so insert SPACE*/
String serverName = " ";
/*db-name parameter not needed*/
String databaseName = "";
/*SDE_DEV.DEV is TNS ALIAS for geo-db*/
/*check with Oracle tool: tnsping SDE_DEV.DEV */
/*931 SDE GEODB*/
String userName = "geotools";
/*needed for oracle instant driver: passw...@tns_alias*/
String userPassword = "passw...@sde_dev.dev";
SeConnection conn;
try {
conn = new SeConnection(serverName, portNumber,
databaseName,
userName, userPassword);
...
...
> -----Ursprüngliche Nachricht-----
> Von: Gabriel Roldan [mailto:[email protected]] Im Auftrag
> von Gabriel Roldan *EXTERN*
> Gesendet: Montag, 30. August 2010 17:31
> An: Hochmeister Rudolf
> Cc: [email protected]
> Betreff: Re: [Geotools-devel] new ArcSDE datastore
>
> am I right that the only code change you need to be
> incorporated into geotools is the port parameter to be a
> String instead of an Integer?
>
> If so I guess we just do that and use the same (geoserver?)
> web interface?
>
> On Aug 30, 2010, at 5:20 AM, Hochmeister Rudolf wrote:
>
> > As the ESRI DIRECT CONNECT functionality is pretty stable,
> > I thought of establishing the new config-parameters into
> the offical
> > arcsde-datastore in order to use the webinterface and
> integrate into geotools.
> >
> > My question is, should it be a seperate datastore(because
> DC works completely different)
> > or is it possible to add a "enable Direct Connect" checkbox
> in the existing DS and adapt it.
> >
> > The parameters change in that way, if DC is enabled:
> > *port-parameter ist something like "sde:oracle10g:/:sde"
> > *server-parameter is not needed and per default " " or can be
> > set to the DB-hostname, but is not used explicitly for
> connection establishing.
> >
> >
> >
> --------------------------------------------------------------
> ----------------
> > Sell apps to millions through the Intel(R) Atom(Tm)
> Developer Program
> > Be part of this innovative community and reach millions of
> netbook users
> > worldwide. Take advantage of special opportunities to
> increase revenue and
> > speed time-to-market. Join now, and jumpstart your future.
> > http://p.sf.net/sfu/intel-atom-d2d
> > _______________________________________________
> > Geotools-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
> Gabriel Roldan
> [email protected]
> Expert service straight from the developers
>
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel