Sun Glassfish SocialSite Developer's Guide

Creating a Page to Return User Context

The socialsite_context.xml file needs to be to the classpath of the SocialSite Enterprise software to specify the location of the context delegation service in order to assert a user ID. Here is a sample file:

<rules>
?
	<rule>
?
	<sources>
<indirect>*</indirect>
</sources>
?
	<attributes>
<accept>*</accept>
<reject>viewerId</reject>
</attributes>
</rule>
?
	<rule>
?
	<sources>
?
	<direct>
http://socialsite.example.com/socialsite_context.jsp
</direct>
</sources>
?
	<attributes>
<accept>*</accept>
</attributes>
</rule>
</rules>

Note that this file contains the URL of the context delegator service that you created. You can add this file to your classpath by copying it to your glassfish/domains/domain1/lib/classes/ directory, which should already contain a socialsite.properties file that was added during installation. Restart the GlassFish server to include the changes.