Skip to Content

Deprecated call in portal service framework

Hi,

I trying to implement a custom portal service, but getting a warning about a deprecated call.

I have used the eclipse wizard to create the framework provided, but the import com.sapportals.portal.prt.service.IServiceConfiguration is flagged as deprecated.

I also get the same warning for the methods; public void configure(IServiceConfiguration configuration) and public void release().

Is there something I have missed or what should I use instead?

Best regards,

Henrik

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Jun 01, 2004 at 07:05 AM

    Hi,

    from my experience, these "deprecated"-Warnings have no effect.

    I implemented a service, got these messages also, but didn't modify the code which was created by the Eclipse wizards. This portal service works,...

    Kind regards,

    Daniel

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jun 01, 2004 at 01:23 PM

    Deprecated means that it will be removed in future versions (often without warning), so utilizing these features means that you could have problems in the future.

    The javadocs http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/runtime/index.html doesn't really give alot of information .

    Instead of IService.release, use destroy

    Instead of IService.configure, it seems that you should use the init method (by fethching data from IServiceContext)

    So it seems like the IServiceContext is the way to configure a service (but I am not sure at all)

    Add comment
    10|10000 characters needed characters exceeded