There are two ways to
update these Java files, which are produced by the
SAS
Stored Process Servlet (uses SAS WIP) template. The
first way is to add a new stored process template to the project.
The addition of the template updates the Java files automatically.
The second way, documented
here, is to copy the Java files from a new, temporary project that
uses the AppDev Studio 3.41 SAS Web Infrastructure Platform and then
insert them into the migrated project. Follow these steps to create
the temporary project and add the stored process template:
-
Select
FileNewOther, expand
SAS AppDev Studio and select
SAS Web Application Project.
Then click
Next.
-
Enter a name for this
temporary project and click
Next.
-
Enable
Add
Template Content, and select the
SAS Stored
Process Servlet (uses SAS WIP) template under the
SAS Web Application Examples category. Click
Next.
-
Click
Next and then select a BI Server Profile. Click
Next again.
The BI Server Remote
Services for this profile must be running.
-
If not already connected
to a BI Server, click the
Change button and
log on.
-
Click the
Change button in the Stored Process section, and select
a stored process. Click
OK, and then
Finish.
To copy the
StoredProcessConnection.java
and
StoredProcessFacade.java
files, follow these steps:
-
In the Project Explorer
view for the new temporary project, expand
Java Resources,
src, and
support.storedprocess.
-
Expand the same items
in the project being migrated.
-
Select both the
StoredProcessConnection.java
and
StoredProcessFacade.java
files in the source project, and then right-click and select
Copy.
-
In the migrated project,
right-click on the
support.storedprocess
package, and select
Paste.
-
When prompted to confirm
overwriting, click
Yes to All.
If either of the files
in the migrated project are open in editors, switch to those editors
and select
FileSave.
The Java files are now
updated.
-
Delete the temporary
project.
Stored process
servlets in the project being migrated will contain new generics warnings.
These warnings can be suppressed by changing each of the
@SuppressWarnings
found in the Java file to
@SuppressWarnings({“unchecked”, "rawtypes"})
. You can also review how the warnings were addressed in the stored
process servlet in a new project and make the same change in the migrated
project.