[jboss-cvs] JBossAS SVN: r77564 - projects/jboss-aspects/trunk/remoting/src/test/resources/org/jboss/aspects/remoting/test/proxy.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 28 00:18:21 EDT 2008


Author: ron_sigal
Date: 2008-08-28 00:18:21 -0400 (Thu, 28 Aug 2008)
New Revision: 77564

Modified:
   projects/jboss-aspects/trunk/remoting/src/test/resources/org/jboss/aspects/remoting/test/proxy/RemotingProxyFactoryTestCase-beans.xml
Log:
JBAS-4456: Added target to test injecting jndi name with an annotation.

Modified: projects/jboss-aspects/trunk/remoting/src/test/resources/org/jboss/aspects/remoting/test/proxy/RemotingProxyFactoryTestCase-beans.xml
===================================================================
--- projects/jboss-aspects/trunk/remoting/src/test/resources/org/jboss/aspects/remoting/test/proxy/RemotingProxyFactoryTestCase-beans.xml	2008-08-28 04:17:18 UTC (rev 77563)
+++ projects/jboss-aspects/trunk/remoting/src/test/resources/org/jboss/aspects/remoting/test/proxy/RemotingProxyFactoryTestCase-beans.xml	2008-08-28 04:18:21 UTC (rev 77564)
@@ -42,20 +42,20 @@
   
   
   <!--********************************************************************
-  ********************************  PROXY  *******************************
+  ********************  PROXY (with JNDI name property) ******************
   *********************************************************************-->
-   <bean name="SampleTarget" class="org.jboss.aspects.remoting.test.proxy.SampleTarget"/>
+   <bean name="SampleTarget1" class="org.jboss.aspects.remoting.test.proxy.SampleTarget"/>
    
-   <bean name="jboss:service=proxyFactory,target=SampleTarget" class="org.jboss.aspects.remoting.RemotingProxyFactory">
-      <property name="target"><inject bean="SampleTarget"/></property>
+   <bean name="jboss:service=proxyFactory,target=SampleTarget1" class="org.jboss.aspects.remoting.RemotingProxyFactory">
+      <property name="target"><inject bean="SampleTarget1"/></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="jndiName">proxyTestJNDI</property>
+      <property name="dispatchName">proxyTest1</property>
+      <property name="jndiName">proxyTestJNDIproperty</property>
       <property name="invokerLocator">socket://0.0.0.0:4873</property>
       <property name="interceptors">
          <list elementClass="java.lang.String">
@@ -64,4 +64,46 @@
          </list>
       </property>
    </bean>
+   
+  
+  <!--********************************************************************
+  ****************  PROXY (with JNDI name from annotation) ***************
+  *********************************************************************-->
+   <bean name="SampleTarget2" class="org.jboss.aspects.remoting.test.proxy.SampleTarget"/>
+   
+   <bean name="jboss:service=proxyFactory,target=SampleTarget2" class="org.jboss.aspects.remoting.RemotingProxyFactory">
+      <property name="target"><inject bean="SampleTarget2"/></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">proxyTest2</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 name="AspectManager" class="org.jboss.aop.AspectManager">
+      <constructor factoryClass="org.jboss.aop.AspectManager" factoryMethod="instance"/>
+   </bean>
+
+   <lifecycle-configure xmlns="urn:jboss:aop-beans:1.0"
+      name="DependencyAdvice"
+      class="org.jboss.aop.microcontainer.aspects.jndi.JndiLifecycleCallback"
+      classes="@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding">
+   </lifecycle-configure>
+   
+   <bean name="jboss:service=jndiBinder,target=SampleTarget2" class="org.jboss.aspects.remoting.test.proxy.SampleInterface1">
+      <annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="proxyTestJNDIannotation")</annotation>
+      <constructor factoryMethod="getProxy">
+         <factory bean="jboss:service=proxyFactory,target=SampleTarget2"/>
+      </constructor>
+   </bean>
+	
 </deployment>
\ No newline at end of file




More information about the jboss-cvs-commits mailing list