cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure service

Former Member
0 Kudos

Hallo,

I'd like to configure service developed by myself with properties. I mean properties like iViews have. To make things clear - in portalapp.xml for iView (component):


<components>
    <component name="TestClass">
      <component-config>
        <property name="ClassName" value="com.sap.pct.TestClass"/>
      </component-config>
      <component-profile>
        .. there are properties ...
      <component-profile/>
    </component>
</components>

Is something similar possible in service tag? And where I can configure these properties in portal after deployment?

Best regards,

Josef Motl

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Josef,

U need to configure these attribute according to ur requirement in the services tag of the portalapp.xml

<services>
			<service alias="com.sap.portal.MyService" name="MyService">
				<service-config>
					<property name="className" value="com.customer.portal.MyService">
					</property>
					<property name="startup" value="true">
					</property>
					
					<property name="SecurityZone" value="com.customer.portal.MyService/DefaultSecurity">
					</property>
				</service-config>
				<service-profile>
					<property name="SystemAlias" value="Default_System_Alias">
					</property>
				</service-profile>
			</service>
		</services>

Hope it helps.

regards,

Joshua Kiran

Former Member
0 Kudos

Hi Joshua,

thank you for your responce. I'll try this at the moment. How to access this properties in code (same as iViews?) and what about the second question: "And where I can configure these properties in portal after deployment?"

Best regards,

Josef

Former Member
0 Kudos

Hello Josef,

have you found a solution to these problems? I am looking for a solution fo this, too. Could you please write how you managed to make your service properties configurable in the portal.

Thanks, best regards, Oliver

Former Member
0 Kudos

Hi ,

IserviceConfig should help(i guess !) :).

And for ur next question.. when u create a iview..it should show it in the iview property list.. there you should be able to add it .

Regards

Bharathwaj

Answers (1)

Answers (1)

Former Member
0 Kudos

See