[jboss-user] JBoss shutdown dependency issue
Richard Huddleston
rhuddusa at gmail.com
Thu Jul 3 16:59:18 EDT 2008
I'm working with apache jackrabbit and have it persisting its data in
my DefaultDS (which I've converted over to MySQL).
My jcr-ds.xml looks like this:
<connection-factories>
<tx-connection-factory>
<jndi-name>jcr/local</jndi-name>
<xa-transaction />
<rar-name>jackrabbit-jca-1.4.rar</rar-name>
<connection-definition>javax.jcr.Repository</connection-definition>
<config-property name="homeDir"
type="java.lang.String">${java.io.tmpdir}/jackrabbit5</config-property>
<config-property name="configFile"
type="java.lang.String">${jboss.server.home.dir}/conf/jcr-repository.xml</config-property>
<config-property name="bindSessionToTransaction"
type="java.lang.Boolean">true</config-property>
<depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
</tx-connection-factory>
</connection-factories>
Which is working fine.
But shutdown is where I have my issue.
11:55:31,609 INFO [ConnectionFactoryBindingService] Unbound
ConnectionManager
'jboss.jca:service=ConnectionFactoryBinding,name=jcr/local' from JNDI
name 'java:jcr/local'
11:55:31,609 INFO [ConnectionFactoryBindingService] Unbound
ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS'
from JNDI name 'java:DefaultDS'
11:55:31,624 INFO [RepositoryImpl] Shutting down repository...
11:55:31,624 INFO [IndexMerger] IndexMerger terminated
11:55:31,640 INFO [SearchIndex] Index closed:
R:\Temp\/jackrabbit5/repository/index
11:55:31,640 INFO [RepositoryImpl] shutting down workspace 'default'...
11:55:31,640 INFO [ObservationDispatcher] Notification of
EventListeners stopped.
11:55:31,640 INFO [IndexMerger] IndexMerger terminated
11:55:31,640 INFO [SearchIndex] Index closed:
R:\Temp\jackrabbit5\workspaces\default/index
11:55:31,656 INFO [TxConnectionManager] throwable from unregister connection
>>> TERRIBLE EXCEPTIONS
So it looks like JBoss is shutting down the DefaultDS before it shuts
down Jackrabbit, even though I have a depency on the DefaultDS in
Jackrabbit.
How can I fix this issue?
More information about the jboss-user
mailing list