If your project contains
a FoundationServicesContextListener class, you must apply the Context
Listener For Local Services template. Doing so updates the FoundationServicesContextListener
class to use only Local Foundation Services, and it updates the JAAS
configuration for SAS 9.4. The existing login.config name is preserved
when the template updates the project. In new projects, the JAAS configuration
file is named
jaas.config
,
It is not necessary
to create a deployment descriptor for AppDev Studio because the SAS
9.4 Web Infrastructure Platform provides a general purpose deployment
descriptor called Platform Local Services. Applying the Context Listener
For Local Services template adds or updates the
sas_metadata_source.properties
file
so that the Platform Local Services deployment descriptor is used.
Perform the following
steps to update the FoundationServicesContextListener class in the
project:
-
In the Navigator view,
expand the root folder of the project to update.
-
Right-click the
.SASTemplateResources file
and select
Open WithText
Editor.
-
Find the line that contains
the following:
<management function="sas.foundation.services.context.listener" level="remote"
-
Change the value of
the
level
attribute to
local
.
-
-
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.
-
Select
Context
Listener For Local Services and click
Next.
-
Click
Next to
accept the default Template Configuration Parameters.
-
Due to changes for SAS
9.4, the BI Server Profile selection is blank if no metadata server
connection is open, or matches the BI Server Profile of the open connection.
Select the BI Server Profile for the Enterprise BI installation that
you want the project to run against.
-
If the SAS Metadata
Server for the BI installation is running, you can click
Test
Configuration to verify that the service deployment can
be read from the metadata server.
-
-
(Optional) Expand the
WebContent,
WEB-INF,
and
conf folders in the project and delete
the
sas_remote_metadata_source_omr.properties
file.