The JNDI binding could be done via an @JNDI annotation:
| <bean name="SampleTarget"
class="org.jboss.aspects.remoting.test.proxy.SampleTarget"/>
|
| <bean name="SampleTargetProxyFactory"
class="org.jboss.aspects.remoting.RemotingProxyFactory">
| <property name="target"><inject
bean="SampleTarget"/></property>
| <property name="interfaces">
| <array elementClass="java.lang.Class">
|
<value>org.jboss.aspects.remoting.test.proxy.SampleInterface1</value>
|
<value>org.jboss.aspects.remoting.test.proxy.SampleInterface2</value>
| </array>
| </property>
| <property name="dispatchName">proxyTest</property>
| <property
name="invokerLocator">socket://0.0.0.0:4873</property>
| <property name="interceptors">
| <list elementClass="java.lang.String">
|
<value>org.jboss.aspects.remoting.test.proxy.FactorInterceptor</value>
|
<value>org.jboss.aspects.remoting.test.proxy.AddendInterceptor</value>
| </list>
| </property>
| </bean>
|
| <bean
class="org.jboss.aspects.remoting.test.proxy.SampleInterface1">
|
| <annotation>
|
@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="proxyTestJNDI")
| </annotation>
|
| <constructor factoryMethod="getProxy">
| <factory bean="SampleTargetProxyFactory"/>
| </constructor>
|
| </bean>
|
If the "factory" element supported a nested "bean" element it would be
a bit cleaner.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166517#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...