You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Dominique DE VITO <do...@thalesgroup.com> on 2007/04/27 17:59:00 UTC
referencing beans in SU XML files
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
Re: referencing beans in SU XML files
Posted by Michal <ca...@yahoo.com>.
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.