<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="urn:jboss:bean-deployer:2.0">

	<bean name="URL" class="java.net.URL">
		<constructor>
			<parameter>${jboss.server.home.url}/deploy/modeshape-services.jar/modeshape-config.xml</parameter>
		</constructor>
	</bean>

	<bean name="ModeShapeEngine" class="org.modeshape.jboss.managed.ManagedEngine">
		<property name="configURL">
			<inject bean="URL" />
		</property>
	</bean>

	<bean name="JNDIManaged" class="org.modeshape.jboss.managed.JNDIManagedRepositories">
		<property name="managedEngine">
			<inject bean="ModeShapeEngine" />
		</property>
		<property name="modeshapeUrl">jndi:jcr/local</property>
		<depends>ModeShapeEngine</depends>
	</bean>

	<bean name="ModeShapeSequencingService" class="org.modeshape.jboss.managed.ManagedSequencingService">
		<property name="managedEngine">
			<inject bean="ModeShapeEngine" />
		</property>
		<depends>ModeShapeEngine</depends>
	</bean>


</deployment>