[jboss-cvs] JBossAS SVN: r58114 - trunk/testsuite/src/resources/client
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Nov 4 03:39:39 EST 2006
Author: scott.stark at jboss.org
Date: 2006-11-04 03:39:37 -0500 (Sat, 04 Nov 2006)
New Revision: 58114
Added:
trunk/testsuite/src/resources/client/urlbinding-service.xml
Removed:
trunk/testsuite/src/resources/client/JndiConfig.bsh
Modified:
trunk/testsuite/src/resources/client/jboss-app.xml
Log:
Replace bsh script with a service
Deleted: trunk/testsuite/src/resources/client/JndiConfig.bsh
===================================================================
--- trunk/testsuite/src/resources/client/JndiConfig.bsh 2006-11-04 08:38:54 UTC (rev 58113)
+++ trunk/testsuite/src/resources/client/JndiConfig.bsh 2006-11-04 08:39:37 UTC (rev 58114)
@@ -1,28 +0,0 @@
-/** A BeanShell script service that binds a URL under SomeWebSite to test
-indirect URL resource-refs
-*/
-import java.net.URL;
-import javax.naming.InitialContext;
-
-void create()
-{
- URL someWebSite = new URL("http://www.somesite.com");
- InitialContext ctx = new InitialContext();
- ctx.bind("SomeWebSite", someWebSite);
- System.out.println("Bound SomeWebSite: "+someWebSite);
-}
-
-void start()
-{
-}
-
-void stop()
-{
-}
-
-void destroy()
-{
- InitialContext ctx = new InitialContext();
- ctx.unbind("SomeWebSite");
- System.out.println("Unbound SomeWebSite");
-}
Modified: trunk/testsuite/src/resources/client/jboss-app.xml
===================================================================
--- trunk/testsuite/src/resources/client/jboss-app.xml 2006-11-04 08:38:54 UTC (rev 58113)
+++ trunk/testsuite/src/resources/client/jboss-app.xml 2006-11-04 08:39:37 UTC (rev 58114)
@@ -5,6 +5,6 @@
<jboss-app>
<module>
- <service>JndiConfig.bsh</service>
+ <service>urlbinding-service.xml</service>
</module>
</jboss-app>
Added: trunk/testsuite/src/resources/client/urlbinding-service.xml
===================================================================
--- trunk/testsuite/src/resources/client/urlbinding-service.xml 2006-11-04 08:38:54 UTC (rev 58113)
+++ trunk/testsuite/src/resources/client/urlbinding-service.xml 2006-11-04 08:39:37 UTC (rev 58114)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
+<server>
+ <mbean code="org.jboss.naming.JNDIBindingServiceMgr"
+ name="jboss.tests:service=JNDIBindingServiceMgr">
+ <attribute name="BindingsConfig" serialDataType="jbxb">
+ <jndi:bindings
+ xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:jndi="urn:jboss:jndi-binding-service:1.0"
+ xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd"
+ >
+ <jndi:binding name="SomeWebSite">
+ <jndi:value type="java.net.URL">http://www.somesite.com</jndi:value>
+ </jndi:binding>
+ </jndi:bindings>
+ </attribute>
+ </mbean>
+
+</server>
More information about the jboss-cvs-commits
mailing list