With the release of
the version 4.3 SAS middle tier applications, the
Java
client for executing a SAS Stored Process template now
requires separate credentials for deploying SAS Foundation Services
and running the stored process. The preferred way to update a Java
client in SAS Java Applications projects is to re-apply the stored
process template and create a new Java client. You can either create
a new Java client in a new package, or refactor the original Java
client package and then reuse it for the new Java client.
The classes found in
the
support.storedprocess
package are automatically
updated when a new Java client is created, and do not need updating.
These classes are used by the Stored Process Java clients found
in the project.
For each Stored Process
Java client in the project, follow these steps to create a new Java
client file and then copy your customized code to it:
-
In the Project Explorer,
right-click the existing package (typically
console.app
) and select
RefactorRename.
The package typically
contains the Java and properties files for the client (
StoredProcessDriver.java
and
StoredProcessDriver.properties
).
-
In the
New
name field, append
.old
to the existing package. Click
OK and then
Continue.
-
In the
old package, open
StoredProcessDriver.java
, find the STORED_PROCESS_PATH_URL static String, and note the name
of the stored process.
These instructions assume
that you want to run the same stored process as in the original client.
-
From Eclipse, select
FileNewOther.
-
Expand the
SAS AppDev Studio folder.
-
Select
Add
Template Content to Project, and then click
Next.
-
In the
Project field, ensure that the project containing the Java client to update
is selected.
-
In the Templates tree,
expand
SAS Stored Process, select the
Java client for executing a SAS Stored Process template,
and click
Next.
-
Select the BI Server
Profile for the SAS 9.3 BI installation that you want the Java client
to run against, and click
Next.
-
Ensure that you are
logged in with the correct Connection Profile.
-
Update the Package name
and Class name.
-
For the Stored Process,
click the
Change button, select the stored
process to execute, and then click
OK.
-
Update any other options
and click
Finish.
-
In the new Java file
that is automatically opened, update the stored process prompt values.
Missing values will be marked as errors.
-
Copy your customizations
in the old Java file to the new one.
To compare files, select
both the old and new versions of the Java file in the navigator view,
then right-click on either file and select
Compare WithEach Other.
-
(Optional) Delete the
old, renamed package.