18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPLICATION DEVELOPMENT AND LICENSE INITIALIZATION<br />

EXAMPLE B—MINIMUM LICENSE IS ARCGIS ENGINE WITH<br />

GEODATABASE UPDATE AND SPATIAL EXTENSIONS<br />

In the next example, the application is an enterprise geodatabase editing application<br />

and, therefore, requires the minimum of an <strong>ArcGIS</strong> <strong>Engine</strong> with<br />

Geodatabase Update extension license. Additionally, this developer has decided<br />

that if an <strong>ArcGIS</strong> <strong>Engine</strong> with Geodatabase Update extension license is not<br />

available, the application could run with an ArcEditor or ArcInfo license instead.<br />

The application also requires spatial extension functionality for it to run successfully,<br />

so the extension needs to be checked out for the duration of the application.<br />

In this case, the application will first attempt to initialize against the <strong>ArcGIS</strong><br />

<strong>Engine</strong> with Geodatabase Update extension product license. If that fails, it will<br />

attempt to initialize against an ArcEditor license, and if still unsuccessful, the<br />

application will finally attempt to initialize against the ArcInfo product license.<br />

The following sections outline the steps taken to initialize the application with a<br />

license.<br />

Step 1: Check product license<br />

availability<br />

Step 2: Check extension license<br />

availability<br />

Step 3: Initialize the application<br />

Step 4: Check extensions in and<br />

out<br />

Step 5: Shutdown<br />

Attempting initialization with the <strong>ArcGIS</strong> <strong>Engine</strong> with Geodatabase<br />

Update product license<br />

As noted above, to run successfully the application requires at minimum an<br />

<strong>ArcGIS</strong> <strong>Engine</strong> with Geodatabase Update extension product license along with<br />

the corresponding Spatial extension license. The application’s first attempt at<br />

initialization should be against this minimal level of product licensing.<br />

The application’s attempts at initialization follow the process discussed earlier:<br />

1. Check whether an <strong>ArcGIS</strong> <strong>Engine</strong> with Geodatabase Update extension product<br />

license is available. If yes, proceed to the next step in the initialization<br />

process.<br />

If not, discontinue this attempt and restart initialization with any secondary<br />

level of allowable product licensing.<br />

2. Check whether an Spatial extension license is available with the <strong>ArcGIS</strong><br />

<strong>Engine</strong> with Geodatabase Update extension product license. If yes, proceed<br />

to the next step in the initialization process. If not, discontinue this attempt<br />

and restart initialization with any secondary level of allowable product licensing.<br />

3. Check out the <strong>ArcGIS</strong> <strong>Engine</strong> with Geodatabase Update extension product<br />

license by initializing the application. If the license checked out, proceed to<br />

the next step in the initialization process. If the license failed to check out,<br />

discontinue this attempt and restart initialization with any secondary level of<br />

allowable product licensing.<br />

4. Check out the Spatial extension. Since no other extension licenses are needed,<br />

if the license checked out, the application has been successfully configured<br />

with licenses.<br />

If the license failed to check out, discontinue this attempt and restart initialization<br />

with any secondary level of allowable product licensing.<br />

5. The final step in the initialization process is ensuring that the licenses are<br />

released when the application is shut down.<br />

268 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!