[jboss-cvs] JBossAS SVN: r108510 - in branches/infinispan-int/testsuite/src: main/org/jboss/test/cluster/ejb3/clusteredservice and 6 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 11 12:19:11 EDT 2010
Author: smarlow at redhat.com
Date: 2010-10-11 12:19:10 -0400 (Mon, 11 Oct 2010)
New Revision: 108510
Added:
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceBean.java
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceLocal.java
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceManagement.java
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceRemote.java
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceWeb.java
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/servlets/
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/servlets/EJBServlet.java
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/unit/
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/ejb-jar.xml
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/jboss.xml
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/ejb-jar.xml
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/jboss.xml
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/foreign/
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/foreign/testlocal-jboss-beans.xml
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/scoped/
branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/xpc/
Log:
ejb3 clusteredservice and some resources that I missed before
Added: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceBean.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceBean.java (rev 0)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceBean.java 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.clusteredservice;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+
+import org.jboss.ejb3.annotation.Clustered;
+import org.jboss.ejb3.annotation.Depends;
+import org.jboss.ejb3.annotation.Management;
+import org.jboss.ejb3.annotation.Service;
+import org.jboss.logging.Logger;
+
+/**
+ * @version <tt>$Revision$</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Service(objectName = "default:service=service")
+ at Clustered(partition = "HASingletonPartition")
+ at Remote(ServiceRemote.class)
+ at Local(ServiceLocal.class)
+ at Management(ServiceManagement.class)
+ at Depends("jboss.ha:service=HASingletonDeployer,type=Barrier")
+public class ServiceBean implements ServiceLocal, ServiceRemote, ServiceManagement
+{
+ private static final Logger log = Logger.getLogger(ServiceBean.class);
+
+ private int remoteAccessed = 0;
+
+ public synchronized void localMethod()
+ {
+ }
+
+ public synchronized void remoteMethod()
+ {
+ log.info("ACESSSED " + ++remoteAccessed);
+ }
+
+ public void create() throws Exception
+ {
+ log.info("CREATE");
+ }
+
+ public void start() throws Exception
+ {
+ log.info("START");
+ }
+
+ public void stop()
+ {
+ log.info("STOP");
+ }
+
+ public void destroy()
+ {
+ log.info("DESTROY");
+ }
+
+}
Property changes on: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceLocal.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceLocal.java (rev 0)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceLocal.java 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.clusteredservice;
+
+/**
+ * @version <tt>$Revision$</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface ServiceLocal
+{
+ void localMethod();
+}
Property changes on: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceLocal.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceManagement.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceManagement.java (rev 0)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceManagement.java 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.clusteredservice;
+
+/**
+ * @version <tt>$Revision$</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface ServiceManagement
+{
+ void create() throws Exception;
+ void start() throws Exception;
+ void stop();
+ void destroy();
+}
Property changes on: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceManagement.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceRemote.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceRemote.java (rev 0)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceRemote.java 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.clusteredservice;
+
+/**
+ * @version <tt>$Revision$</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface ServiceRemote
+{
+ void remoteMethod();
+}
Property changes on: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceRemote.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceWeb.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceWeb.java (rev 0)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceWeb.java 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.clusteredservice;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.naming.Context;
+import javax.xml.rpc.ServiceException;
+import javax.xml.rpc.server.ServiceLifecycle;
+import javax.rmi.PortableRemoteObject;
+import java.util.Properties;
+
+/**
+ * @version <tt>$Revision$</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at WebService
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public class ServiceWeb implements ServiceLifecycle
+{
+ ServiceRemote service;
+
+ public ServiceWeb() {}
+
+ @WebMethod(operationName = "RemoteMethod")
+ public void remoteMethod() {
+ System.out.println("ServiceWeb.remoteMethod");
+ try
+ {
+ service.remoteMethod();
+ } catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+ private InitialContext getContext() throws NamingException{
+ Properties p = new Properties();
+ p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
+ p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
+ p.put("jnp.partitionName", "HASingletonPartition");
+ return new InitialContext(p);
+ }
+
+ public void init(Object object) throws ServiceException {
+ try
+ {
+ service = (ServiceRemote) PortableRemoteObject.narrow(
+ getContext().lookup("ServiceBean/remote"), ServiceRemote.class);
+ } catch (NamingException e)
+ {
+ e.printStackTrace();
+ throw new ServiceException("Could not find Service in JNDI service", e);
+ }
+ }
+
+ public void destroy() {
+ }
+
+}
Property changes on: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/ServiceWeb.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/servlets/EJBServlet.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/servlets/EJBServlet.java (rev 0)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/servlets/EJBServlet.java 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,98 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.clusteredservice.servlets;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import java.util.Properties;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jboss.ejb3.test.clusteredservice.ServiceRemote;
+import org.jboss.logging.Logger;
+
+/**
+ * @version <tt>$Revision$</tt>
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class EJBServlet extends HttpServlet
+{
+ private static final Logger log = Logger.getLogger(EJBServlet.class);
+
+ protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ try
+ {
+ ServiceRemote test = (ServiceRemote) getInitialContext().lookup("ServiceBean/remote");
+ test.remoteMethod();
+
+ /* MBeanServer server = org.jboss.mx.util.MBeanServerLocator.locateJBoss();
+ ObjectName testerName = new ObjectName("default:service=service");
+ Object[] params = {};
+ String[] sig = {};
+ server.invoke(testerName, "", params, sig);*/
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+
+ throw new ServletException("Failed to call ServiceBean through remote or local interfaces", e);
+ }
+ response.setContentType("text/html");
+ PrintWriter out = response.getWriter();
+ out.println("<html>");
+ out.println("<head><title>EJBServlet</title></head>");
+ out.println("<body>Tests passed<br></body>");
+ out.println("</html>");
+ out.close();
+ }
+
+ protected InitialContext getInitialContext() throws Exception
+ {
+ Properties p = new Properties();
+ p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
+ p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
+ p.put(Context.PROVIDER_URL, "localhost:1100");
+ return new InitialContext(p);
+ }
+
+ protected void doGet(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ processRequest(request, response);
+ }
+
+ protected void doPost(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ processRequest(request, response);
+ }
+}
Property changes on: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/ejb3/clusteredservice/servlets/EJBServlet.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/ejb-jar.xml
===================================================================
--- branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/ejb-jar.xml (rev 0)
+++ branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/ejb-jar.xml 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+ version="3.0">
+ <enterprise-beans>
+ <session>
+ <ejb-name>NonAnnotationStateful</ejb-name>
+ <business-remote>org.jboss.ejb3.test.clusteredsession.StatefulRemote</business-remote>
+ <ejb-class>org.jboss.ejb3.test.clusteredsession.NonAnnotationStatefulBean</ejb-class>
+ <session-type>Stateful</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ <session>
+ <ejb-name>EjbJarOverrideAnnotationStateful</ejb-name>
+ <business-remote>org.jboss.ejb3.test.clusteredsession.StatefulRemote</business-remote>
+ <ejb-class>org.jboss.ejb3.test.clusteredsession.OverrideAnnotationStatefulBean</ejb-class>
+ <session-type>Stateful</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ </enterprise-beans>
+</ejb-jar>
Property changes on: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/jboss.xml
===================================================================
--- branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/jboss.xml (rev 0)
+++ branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/jboss.xml 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<jboss
+ xmlns="http://www.jboss.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
+ http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+ version="3.0">
+ <enterprise-beans>
+ <session>
+ <ejb-name>OverrideStateful</ejb-name>
+ <jndi-name>OverrideStatefulRemote</jndi-name>
+ <clustered>true</clustered>
+ <cluster-config>
+ <partition-name>DefaultPartition</partition-name>
+ <load-balance-policy>org.jboss.ha.framework.interfaces.RandomRobin</load-balance-policy>
+ </cluster-config>
+ </session>
+ <session>
+ <ejb-name>NonAnnotationStateful</ejb-name>
+ <clustered>true</clustered>
+ <cluster-config>
+ <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
+ <load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</load-balance-policy>
+ </cluster-config>
+ </session>
+ <session>
+ <ejb-name>OverrideAnnotationStateful</ejb-name>
+ <clustered>true</clustered>
+ <cluster-config>
+ <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
+ <load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</load-balance-policy>
+ </cluster-config>
+ </session>
+ <session>
+ <ejb-name>EjbJarOverrideAnnotationStateful</ejb-name>
+ <clustered>true</clustered>
+ <cluster-config>
+ <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
+ <load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</load-balance-policy>
+ </cluster-config>
+ </session>
+ </enterprise-beans>
+ </jboss>
\ No newline at end of file
Property changes on: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/META-INF/jboss.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/ejb-jar.xml
===================================================================
--- branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/ejb-jar.xml (rev 0)
+++ branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/ejb-jar.xml 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+ version="3.0">
+ <enterprise-beans>
+ <session>
+ <ejb-name>NonClusteredStateless</ejb-name>
+ <business-remote>org.jboss.ejb3.test.clusteredsession.islocal.VMTester</business-remote>
+ <ejb-class>org.jboss.ejb3.test.clusteredsession.islocal.VMTesterStatelessBean</ejb-class>
+ <session-type>Stateless</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ <session>
+ <ejb-name>ClusteredStateless</ejb-name>
+ <business-remote>org.jboss.ejb3.test.clusteredsession.islocal.VMTester</business-remote>
+ <ejb-class>org.jboss.ejb3.test.clusteredsession.islocal.VMTesterStatelessBean</ejb-class>
+ <session-type>Stateless</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ <session>
+ <ejb-name>NonClusteredStateful</ejb-name>
+ <business-remote>org.jboss.ejb3.test.clusteredsession.islocal.VMTester</business-remote>
+ <ejb-class>org.jboss.ejb3.test.clusteredsession.islocal.VMTesterStatefulBean</ejb-class>
+ <session-type>Stateful</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ <session>
+ <ejb-name>ClusteredStateful</ejb-name>
+ <business-remote>org.jboss.ejb3.test.clusteredsession.islocal.VMTester</business-remote>
+ <ejb-class>org.jboss.ejb3.test.clusteredsession.islocal.VMTesterStatefulBean</ejb-class>
+ <session-type>Stateful</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ </enterprise-beans>
+</ejb-jar>
Property changes on: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/jboss.xml
===================================================================
--- branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/jboss.xml (rev 0)
+++ branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/jboss.xml 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<jboss
+ xmlns="http://www.jboss.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
+ http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+ version="3.0">
+ <enterprise-beans>
+ <session>
+ <ejb-name>NonClusteredStateful</ejb-name>
+ <jndi-name>NonClusteredStatefulRemote</jndi-name>
+ </session>
+ <session>
+ <ejb-name>NonClusteredStateless</ejb-name>
+ <jndi-name>NonClusteredStatelessRemote</jndi-name>
+ </session>
+ <session>
+ <ejb-name>ClusteredStateful</ejb-name>
+ <jndi-name>ClusteredStatefulRemote</jndi-name>
+ <clustered>true</clustered>
+ <cluster-config>
+ <partition-name>${clusteredsession.islocal.partition:DefaultPartition}</partition-name>
+ </cluster-config>
+ </session>
+ <session>
+ <ejb-name>ClusteredStateless</ejb-name>
+ <jndi-name>ClusteredStatelessRemote</jndi-name>
+ <clustered>true</clustered>
+ <cluster-config>
+ <partition-name>${clusteredsession.islocal.partition:DefaultPartition}</partition-name>
+ </cluster-config>
+ </session>
+ </enterprise-beans>
+ </jboss>
\ No newline at end of file
Property changes on: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/META-INF/jboss.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/foreign/testlocal-jboss-beans.xml
===================================================================
--- branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/foreign/testlocal-jboss-beans.xml (rev 0)
+++ branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/foreign/testlocal-jboss-beans.xml 2010-10-11 16:19:10 UTC (rev 108510)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!--
+ HA services use a Cache for state management; this bean shields
+ HAPartition from having to directly use the JBoss Cache API.
+ -->
+ <bean name="Ejb3IsLocalTestPartitionCacheHandler"
+ class="org.jboss.ha.framework.server.HAPartitionCacheHandlerImpl">
+ <property name="cacheManager"><inject bean="CacheManager"/></property>
+ <property name="cacheConfigName">ha-partition</property>
+ </bean>
+
+ <bean name="Ejb3IsLocalTestPartition"
+ class="org.jboss.ha.framework.server.ClusterPartition">
+
+ <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=Ejb3IsLocalTestPartition", exposedInterface=org.jboss.ha.framework.server.ClusterPartitionMBean.class)</annotation>
+
+ <!-- ClusterPartition requires a Cache for state management -->
+ <property name="cacheHandler"><inject bean="Ejb3IsLocalTestPartitionCacheHandler"/></property>
+
+ <!-- Name of the partition being built -->
+ <property name="partitionName">Ejb3IsLocalTestPartition</property>
+
+ <!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
+ <property name="stateTransferTimeout">30000</property>
+
+ <!-- Max time (in ms) to wait for RPC calls to complete. -->
+ <property name="methodCallTimeout">60000</property>
+
+ <property name="distributedStateImpl">
+ <bean name="Ejb3IsLocalTestDistributedState"
+ class="org.jboss.ha.framework.server.DistributedStateImpl">
+ <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=DistributedState,partitionName=Ejb3IsLocalTestPartition", exposedInterface=org.jboss.ha.framework.server.DistributedStateImplMBean.class, registerDirectly=true)</annotation>
+ <property name="cacheHandler"><inject bean="Ejb3IsLocalTestPartitionCacheHandler"/></property>
+ </bean>
+ </property>
+
+ </bean>
+
+</deployment>
\ No newline at end of file
Property changes on: branches/infinispan-int/testsuite/src/resources/cluster/ejb3/clusteredsession/islocal/foreign/testlocal-jboss-beans.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
More information about the jboss-cvs-commits
mailing list