cancel
Showing results for 
Search instead for 
Did you mean: 

Why add a sharing reference to "usermanagement" in portalapp.xml?

Former Member
0 Kudos

Hi

Why do I have to use the sharing reference to "usermanagement" in the portalapp.xml?

What is the purpose?

Why can't I just add the jar to my lib and import it in my implementing class?

Is the foll entry necessary? :

<application>

<application-config>

<property name="Sharing Reference" value="com.sap.portal.htmlb,usermanagement"/>

<property name="releasable" value="true"/>

</application>

...

whats the significance of "releasable" property?

Thanks

Jack

Accepted Solutions (1)

Accepted Solutions (1)

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Jack,

Karthick is correct. Just to summarize:

For every component/service you reference, you need a:

  • Design-time reference, so the project can compile (adding JAR to classpath in NWDS).

  • Runtime reference, so the portal enables the application to reference the needed application during runtime (portalapp.xml SharingReference).

As for releaseable, the Portal Developer Guide explanation is as following:

"Indicates whether the system can release instances of this application when the system runs low on memory.

Since applications can be deployed during runtime, all applications can be released and application instances can be dropped at any time by the system."

Hope this helps.

Daniel

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jack,

Portalapp.xml is nothing but your Deployment Descriptor.

You must add Sharing Reference in your Deployment Descriptor- Portalapp.xml.

Then only at runtime your application will be able to find the services like "usermanagement" etc.

Adding the jar file is to resolve the errors in your NWDS.

You read this documentation then you will come to know why you have to add the Sharing Reference in your Portalapp.xml.

http://help.sap.com/saphelp_nw04/helpdata/en/09/c8af42a6f6cb6ae10000000a155106/frameset.htm

If you need more info regarding this let me know.

Regards,

Karthick K Eswaran