You can use JNDI for that. Just register your object in conf/jndi.xml file. Transaction manager is registered by default under name 'javax.transaction.TransactionManager'.
For injecting the object you can use JndiObjectFactoryBean class from spring framework. Michal Dominique De Vito-2 wrote: > > Hi, > > How to reference beans of the main servicemix.xml file into one SU xml > file ? > > While writing in a SU xml file: > > <jencks:connectionTracker id="connectionTracker" > geronimoTransactionManager="#transactionManager" /> > > "#transactionManager" has to reference another bean into the *same* SU > xml file. > > How to reference a bean in the main/general servicemix.xml file used to > start ServiceMix ? > > Thank you very much. > > Regards, > Dominique > > > > > -- View this message in context: http://www.nabble.com/referencing-beans-in-SU-XML-files-tf3658748s12049.html#a12031465 Sent from the ServiceMix - User mailing list archive at Nabble.com.
