Results 1 to 3 of 3

Thread: Services and scoped plans

  1. #1
    Join Date
    Dec 2005
    Location
    Philadelphia, PA, USA
    Posts
    228

    Default Services and scoped plans

    Hi,

    I wonder if there is a way to "jail break" service from scoped plan to be visible in the global service registry? Any plans to support something like that?

    I was recently looking at the apache aries application documentation (http://incubator.apache.org/aries/applications.html) and noticed "Application-ExportService:" manifest header. This could be a very interesting addition to the plan/par capabilities.
    Thanks
    Dmitry

  2. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    We support allowing services to "punch through" from a scope into the global scope. Here's an example showing the relevant service property:
    Code:
    <service id="publishIntoGlobal" interface="java.lang.CharSequence">
    		<service-properties>
    			<beans:entry key="com.springsource.service.scope" value="global" />
    		</service-properties>
    		<beans:bean class="java.lang.String">
    			<beans:constructor-arg value="foo"/>
    		</beans:bean>
    </service>
    Glyn Normington
    SpringSource

  3. #3
    Join Date
    Dec 2005
    Location
    Philadelphia, PA, USA
    Posts
    228

    Default

    Brilliant!
    Thanks
    Dmitry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •