Regardless of the type
of SAS Foundation Service used, update the
FoundationServicesContextListener
class in the project by re-applying the appropriate SAS Foundation
Services Support template.
Before you start the
update, you need to know whether the listener deploys Foundation Services
that are local, remote, or both. You can determine the type of deployment
by examining the
web.xml
file in the
project. If a
<context-param>
named
local.sas.foundation.services
exists, then Local Foundation
Services are being deployed. If a
<context-param>
named
remote.sas.foundation.services
exists,
the Remote Foundation Services are being deployed.
Perform the following
steps to update the
FoundationServicesContextListener
class in the project:
-
From Eclipse, select
FileNewOther.
-
Expand the
SAS AppDev Studio folder, select
Add Template
Content to Project, and then click
Next.
-
In the
Project field, select the project to update.
-
In the Templates tree,
expand
SAS Java Web Application and then
SAS Foundation Services Support.
-
If the Web application
that you are migrating deploys only local SAS Foundation Services,
select
Context Listener For Local Services.
If the Web application
deploys only SAS Remote Services, select
Context Listener
for Remote Services.
If the Web application
deploys both local and remote services, select
Context
Listener for Remote and Local Services.
-
-
Click
Next to accept the default Template Configuration Parameters.
-
When the Template Wizard
fails to display the SAS BI Server Profile for the old, invalid multicast
address and port, a new profile called
Auto-created Profile is generated. This generated SAS BI Server Profile contains the
stored multicast address and port and the defaults for all remaining
settings.
When AppDev Studio attempts
to acquire the BI Server information for an
Auto-created
Profile, click
Cancel, or allow
the acquisition to fail. Failure takes approximately 20 seconds.
-
Select a valid BI Server
Profile.
-
If an ADS Local Services
deployment descriptor was created but was not named
SASAppDevStudio3.4 Local Services
, click
Advanced. In the Local Services Deployment section,
select
Other, click
Browse, select the service deployment descriptor that you created earlier,
and then click
OK.
-
If the SAS Metadata
Server for the BI installation is running, you can click
Test Configuration to verify that the service deployment
or deployments can be read from the metadata server.
-
In addition to updating
the
FoundationServicesContextListener.java
file, you must also update the
launchParameters.txt
file to match the launch parameters of your test Server. For example,
the
ADS Apache Tomcat v6.0 at localhost server
created in the New Workspace Setup cheatsheet.