[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 233 Successful tests: 38 Errors:187 Failures: 8 [time of test: 14 January 2002 3:58 GMT] [java.version: 1.3.1] [java.vendor: Sun Microsystems Inc.] [java.vm.version: 1.3.1-b24] [java.vm.name: Java HotSpot(TM) Server VM] [java.vm.info: mixed mode] [os.name: Linux] [os.arch: i386] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 233 Successful tests: 38 Errors:187 Failures: 8 [time of test: 14 January 2002 3:31 GMT] [java.version: 1.3.1] [java.vendor: Blackdown Java-Linux Team] [java.vm.version: Blackdown-1.3.1-FCS] [java.vm.name: Classic VM] [java.vm.info: green threads, nojit] [os.name: Linux] [os.arch: i386] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 233 Successful tests: 38 Errors:187 Failures: 8 [time of test: 14 January 2002 3:3 GMT] [java.version: 1.3.1] [java.vendor: Blackdown Java-Linux Team] [java.vm.version: Blackdown-1.3.1-FCS] [java.vm.name: Java HotSpot(TM) Client VM] [java.vm.info: mixed mode] [os.name: Linux] [os.arch: i386] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss Testsuite Results
JBoss daily test results SUMMARY Number of tests run: 233 Successful tests: 38 Errors:187 Failures: 8 [time of test: 14 January 2002 2:44 GMT] [java.version: 1.3.0] [java.vendor: IBM Corporation] [java.vm.version: 1.3.0] [java.vm.name: Classic VM] [java.vm.info: J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: jitc)] [os.name: Linux] [os.arch: x86] [os.version: 2.4.9-12] See http://lubega.com for full details NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. It is assumed that whoever makes change(s) to jboss that break the test will be fixing the test or jboss, as appropriate! DETAILS OF ERRORS [details not shown - as this makes the mail too big to reach the sf mailing list] PS BEFORE you commit, run the test suite. Its easy, just run the target 'run-basic-testsuite' from the main build.xml. PPS Come on people - there were a few days back in July 2001 when we had ZERO tests failing! Oh, and thanks - remember we love you too! ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Re: ejbCreate
Allen Fogleson writes: - Unless someone can make a case in the spec where stateless session (or entity) beans are allowed to have create also. but I certainly couldnt find it. I did a search on create in the spec and only found the stuff about session beans. - Section 12.2.3 of the EJB 2.0 spec details how Entity Beans must honor the ejbCreate implementation of create signatures in the home interface. Corby _ Chat with friends online, try MSN Messenger: http://messenger.msn.com ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/invocation/jrmp/server JRMPInvokerHA.java
User: patriot1burke Date: 02/01/13 17:58:30 Modified:src/main/org/jboss/invocation/jrmp/server JRMPInvokerHA.java Log: No longer attached to a partition. ProxyFactoryHA registers beans within it. It manages Replicants by accessing the registered beans HATargets. Revision ChangesPath 1.4 +64 -80 jbossmx/src/main/org/jboss/invocation/jrmp/server/JRMPInvokerHA.java Index: JRMPInvokerHA.java === RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/invocation/jrmp/server/JRMPInvokerHA.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- JRMPInvokerHA.java2002/01/08 23:56:45 1.3 +++ JRMPInvokerHA.java2002/01/14 01:58:30 1.4 @@ -7,6 +7,7 @@ package org.jboss.invocation.jrmp.server; import java.rmi.ServerException; +import java.rmi.MarshalledObject; import javax.naming.InitialContext; import javax.management.ObjectName; @@ -18,41 +19,38 @@ import javax.management.AttributeChangeNotification; import org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA; +import org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy; import org.jboss.invocation.Invocation; +import org.jboss.invocation.MarshalledInvocation; import org.jboss.invocation.Invoker; import org.jboss.logging.Logger; import org.jboss.system.Registry; -import org.jboss.ha.framework.server.HARMIServerImpl; +import org.jboss.ha.framework.interfaces.HARMIResponse; +import org.jboss.ha.framework.server.HATarget; import org.jboss.ha.framework.interfaces.LoadBalancePolicy; -import org.jboss.ha.framework.interfaces.HAPartition; -import java.util.HashSet; +import java.util.ArrayList; +import java.util.HashMap; import java.util.Iterator; -import java.util.StringTokenizer; + /** * The JRMPInvokerHA is an HA-RMI implementation that can generate Invocations from RMI/JRMP * into the JMX base * * @author mailto:[EMAIL PROTECTED]>Bill Burke * - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ public class JRMPInvokerHA extends JRMPInvoker - implements JRMPInvokerHAMBean { // Constants - - protected static final String DEFAULT_LB_POLICIES = "RoundRobin=org.jboss.ha.framework.interfaces.RoundRobin;FirstAvailable=org.jboss.ha.framework.interfaces.FirstAvailable"; // Attributes - protected String partitionName = "DefaultPartition"; - protected String loadBalancePolicies = DEFAULT_LB_POLICIES; - protected HashSet policies = new HashSet(); - protected HAPartition partition = null; - protected HARMIServerImpl rmiserver = null; + protected HashMap beanMap = new HashMap(); // Static @@ -61,22 +59,7 @@ // Public // MBean parameters - public String getPartitionName() { return partitionName; } - - public void setPartitionName(String pname) - { - if (getState() == STARTED) return; // can't set partition name dynamically - partitionName = pname; - } - public String getLoadBalancePolicies() { return loadBalancePolicies; } - - public void setLoadBalancePolicies(String lb) - { - if (getState() == STARTED) return; // can't set policies dynamically - loadBalancePolicies = lb + ";" + DEFAULT_LB_POLICIES; - } - public String getName() {return "JRMPInvokerHA";} // Service implementation --- @@ -103,8 +86,8 @@ try { - // Export CI - exportCI(); + exportCI(); + Registry.bind(serviceName, this); } catch (Exception e) { @@ -130,7 +113,7 @@ unexportCI(); } catch (Throwable e) - { + { state = FAILED; log.error("Failed", e); return; @@ -143,63 +126,64 @@ { } - // Package protected - - - // Protected - - - /** -* This method will parse loadBalancePolicies and registry an invoker in the Registry -* for each load-balance policy. This is how we allow pluggable load-balance policies. -*/ - protected void registerHAProxies() throws Exception - { - ClassLoader cl = Thread.currentThread().getContextClassLoader(); - StringTokenizer tokenizer = new StringTokenizer(loadBalancePolicies, ";"); - while (tokenizer.hasMoreTokens()) - { - String token = tokenizer.nextToken().trim(); - StringTokenizer n
[JBoss-dev] CVS update: jbossmx/src/etc cluster-service.xml
User: patriot1burke Date: 02/01/13 17:59:04 Modified:src/etc cluster-service.xml Log: config is simpler now. Revision ChangesPath 1.5 +1 -2 jbossmx/src/etc/cluster-service.xml Index: cluster-service.xml === RCS file: /cvsroot/jboss/jbossmx/src/etc/cluster-service.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- cluster-service.xml 2002/01/08 23:56:05 1.4 +++ cluster-service.xml 2002/01/14 01:59:04 1.5 @@ -39,8 +39,7 @@ - jboss:service=DefaultPartition + name="jboss:service=invoker,type=jrmpha"> ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/framework/server HATarget.java
User: patriot1burke Date: 02/01/13 17:56:29 Added: src/main/org/jboss/ha/framework/server HATarget.java Log: Heterogeneous Partitions. Also fixed problem where you could get bogus failover targets if making calls when a server starts up. This class abstracts out replicant updates. Revision ChangesPath 1.1 jbossmx/src/main/org/jboss/ha/framework/server/HATarget.java Index: HATarget.java === /* * JBoss, the OpenSource J2EE WebOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.ha.framework.server; import java.util.ArrayList; import org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener; import org.jboss.ha.framework.interfaces.LoadBalancePolicy; import org.jboss.ha.framework.interfaces.HAPartition; import java.io.Serializable; /** * This class is a holder of replicants. * * @author [EMAIL PROTECTED] * @version $Revision: 1.1 $ * * Revisions: * 2002/01/13: Bill Burke * * Initial revision * */ public class HATarget implements ReplicantListener { // Constants - // Attributes protected String replicantName; protected ArrayList replicants = new ArrayList(); protected HAPartition partition = null; protected org.jboss.logging.Logger log; protected long clusterViewId = -1; protected Serializable target; // Static // Constructors -- public HATarget(HAPartition partition, String replicantName, Serializable target) throws Exception { this.replicantName = replicantName; this.log = org.jboss.logging.Logger.getLogger(this.getClass()); this.target = target; updateHAPartition(partition); } // Public public long getCurrentViewId() { return clusterViewId; } public void destroy() { try { this.cleanExistenceInCurrentHAPartition(); } catch (Exception e) { e.printStackTrace(); } } public ArrayList getReplicants() throws Exception { return replicants; } public void updateHAPartition(HAPartition partition) throws Exception { cleanExistenceInCurrentHAPartition(); this.partition = partition; partition.getDistributedReplicantManager().registerListener(this.replicantName, this); partition.getDistributedReplicantManager().add(this.replicantName, this.target); this.clusterViewId = partition.getCurrentViewId(); } // DistributedReplicantManager.ReplicantListener implementation -- public void replicantsChanged(String key, ArrayList newReplicants) { if (log.isDebugEnabled()) log.debug("replicantsChanged '" + replicantName + "' to " + newReplicants.size()); synchronized(replicants) { // client has reference to replicants so it will automatically get // updated replicants.clear(); replicants.addAll(newReplicants); } this.clusterViewId = partition.getCurrentViewId(); } // Package protected - // Protected - protected void cleanExistenceInCurrentHAPartition() { if (this.partition != null) { try { this.partition.getDistributedReplicantManager().unregisterListener(this.replicantName, this); this.partition.getDistributedReplicantManager().remove (this.replicantName); } catch (Exception e) { e.printStackTrace (); } } } // Private --- // Inner classes - } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/etc/conf/default standardjboss.xml
User: patriot1burke Date: 02/01/13 17:59:48 Modified:src/etc/conf/default standardjboss.xml Log: changed cluster config. ProxyFactoryHA Revision ChangesPath 1.32 +6 -6 jboss/src/etc/conf/default/standardjboss.xml Index: standardjboss.xml === RCS file: /cvsroot/jboss/jboss/src/etc/conf/default/standardjboss.xml,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- standardjboss.xml 2002/01/09 00:03:12 1.31 +++ standardjboss.xml 2002/01/14 01:59:48 1.32 @@ -7,7 +7,7 @@ - + false @@ -110,7 +110,7 @@ Clustered CMP 2.x EntityBean false - org.jboss.proxy.ejb.ProxyFactory + org.jboss.proxy.ejb.ProxyFactoryHA org.jboss.ejb.plugins.LogInterceptor org.jboss.ejb.plugins.SecurityInterceptor @@ -158,7 +158,7 @@ Clustered CMP EntityBean false - org.jboss.proxy.ejb.ProxyFactory + org.jboss.proxy.ejb.ProxyFactoryHA org.jboss.ejb.plugins.LogInterceptor org.jboss.ejb.plugins.SecurityInterceptor @@ -318,7 +318,7 @@ Clustered Stateless SessionBean false - org.jboss.proxy.ejb.ProxyFactory + org.jboss.proxy.ejb.ProxyFactoryHA org.jboss.ejb.plugins.LogInterceptor org.jboss.ejb.plugins.SecurityInterceptor @@ -448,7 +448,7 @@ Clustered Stateful SessionBean false - org.jboss.proxy.ejb.ProxyFactory + org.jboss.proxy.ejb.ProxyFactoryHA org.jboss.ejb.plugins.LogInterceptor @@ -543,7 +543,7 @@ Clustered BMP EntityBean false - org.jboss.proxy.ejb.ProxyFactory + org.jboss.proxy.ejb.ProxyFactoryHA org.jboss.ejb.plugins.LogInterceptor org.jboss.ejb.plugins.SecurityInterceptor ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/proxy/ejb - New directory
User: patriot1burke Date: 02/01/13 17:54:44 jbossmx/src/main/org/jboss/proxy/ejb - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/invocation/jrmp/server JRMPInvoker.java
User: patriot1burke Date: 02/01/13 18:00:49 Modified:src/main/org/jboss/invocation/jrmp/server JRMPInvoker.java Log: made more generic for inheritance Revision ChangesPath 1.5 +2 -2 jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java Index: JRMPInvoker.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- JRMPInvoker.java 2002/01/05 12:08:53 1.4 +++ JRMPInvoker.java 2002/01/14 02:00:49 1.5 @@ -53,7 +53,7 @@ * * @author mailto:[EMAIL PROTECTED]>Marc Fleury * -* @version $Revision: 1.4 $ +* @version $Revision: 1.5 $ */ public class JRMPInvoker @@ -433,7 +433,7 @@ * Import a transaction propagation context into the local VM, and * return the corresponding Transaction. */ - private Transaction importTPC(Object tpc) + protected Transaction importTPC(Object tpc) { if (tpc != null) return tpcImporter.importTransactionPropagationContext(tpc); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/proxy/ejb ProxyFactory.java
User: patriot1burke Date: 02/01/13 18:01:07 Modified:src/main/org/jboss/proxy/ejb ProxyFactory.java Log: made more generic for inheritance Revision ChangesPath 1.5 +26 -26jboss/src/main/org/jboss/proxy/ejb/ProxyFactory.java Index: ProxyFactory.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/proxy/ejb/ProxyFactory.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ProxyFactory.java 2002/01/05 12:08:54 1.4 +++ ProxyFactory.java 2002/01/14 02:01:07 1.5 @@ -49,7 +49,7 @@ * just implementing the Proxy generation calls. Separation of concern. * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * * Revisions: * 2001/12/30: billb @@ -63,19 +63,19 @@ // Metadata for the proxies public EJBMetaData ejbMetaData ; - static Logger log = Logger.getLogger(ProxyFactory.class); - EJBHome home; - EJBObject statelessObject; - + protected static Logger log = Logger.getLogger(ProxyFactory.class); + protected EJBHome home; + protected EJBObject statelessObject; + // The name of the bean being deployed - String jndiName; + protected String jndiName; // The name of the delegate invoker - Invoker homeInvoker; - Invoker beanInvoker; + protected Invoker homeInvoker; + protected Invoker beanInvoker; // A pointer to the container this proxy factory is dedicated to - Container container; + protected Container container; // Container plugin implementation - @@ -155,26 +155,26 @@ if (log.isDebugEnabled()) log.debug("Proxy Factory for "+jndiName+" initialized"); } - + + protected void initInvokers() throws Exception + { + ObjectName oname; + + // Get the local invoker + oname = new ObjectName(container.getBeanMetaData().getHomeInvoker()); + homeInvoker = (Invoker)Registry.lookup(oname); + if (homeInvoker == null) + throw new RuntimeException("homeInvoker is null: " + oname); + oname = new ObjectName(container.getBeanMetaData().getBeanInvoker()); + beanInvoker = (Invoker)Registry.lookup(oname); + if (beanInvoker == null) + throw new RuntimeException("beanInvoker is null: " + oname); + } + public void start() throws Exception { try { - ObjectName oname; - - // Get the local invoker - oname = new ObjectName(container.getBeanMetaData().getHomeInvoker()); - homeInvoker = (Invoker)Registry.lookup(oname); - if (homeInvoker == null) -throw new RuntimeException("homeInvoker is null: " + oname); - - oname = new ObjectName(container.getBeanMetaData().getBeanInvoker()); - beanInvoker = (Invoker)Registry.lookup(oname); - if (beanInvoker == null) -throw new RuntimeException("beanInvoker is null: " + oname); - - // FIXME FIXME In the near future move to - // invoker = (Invoker) Registry.lookup(new ObjectName(container.getInvokerType())); - + initInvokers(); // Create the EJBHome this.home = (EJBHome)Proxy.newProxyInstance( ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/metadata ClusterConfigMetaData.java BeanMetaData.java
User: patriot1burke Date: 02/01/13 18:00:22 Modified:src/main/org/jboss/metadata ClusterConfigMetaData.java BeanMetaData.java Log: improved configuration. Went back to old way of configuring load-balance policies Revision ChangesPath 1.5 +31 -4 jboss/src/main/org/jboss/metadata/ClusterConfigMetaData.java Index: ClusterConfigMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/metadata/ClusterConfigMetaData.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ClusterConfigMetaData.java2001/11/26 03:17:47 1.4 +++ ClusterConfigMetaData.java2002/01/14 02:00:22 1.5 @@ -16,7 +16,7 @@ * expanded to include other cluster configuration parameters later on. * @author mailto:[EMAIL PROTECTED]";>Bill Burke. - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class ClusterConfigMetaData extends MetaData { @@ -51,12 +51,39 @@ { return this.haSessionStateName; } - + + public void init(BeanMetaData data) + { + homeLoadBalancePolicy = "org.jboss.ha.framework.interfaces.RoundRobin"; + if (beanLoadBalancePolicy == null) + { + if (data.isSession()) + { + if (((SessionMetaData)data).isStateful()) + { +beanLoadBalancePolicy = "org.jboss.ha.framework.interfaces.FirstAvailable"; + } + else + { +beanLoadBalancePolicy = "org.jboss.ha.framework.interfaces.RoundRobin"; + } + } + else if (data.isEntity()) + { + beanLoadBalancePolicy = "org.jboss.ha.framework.interfaces.FirstAvailable"; + } + else + { + beanLoadBalancePolicy = "org.jboss.ha.framework.interfaces.FirstAvailable"; + } + } + } public void importJbossXml(Element element) throws DeploymentException { partitionName = getElementContent(getOptionalChild(element, "partition-name"), DEFAULT_PARTITION); - homeLoadBalancePolicy = getElementContent(getOptionalChild(element, "home-load-balance-policy"), null); - beanLoadBalancePolicy = getElementContent(getOptionalChild(element, "bean-load-balance-policy"), null); + homeLoadBalancePolicy = getElementContent(getOptionalChild(element, "home-load-balance-policy"), homeLoadBalancePolicy); + beanLoadBalancePolicy = getElementContent(getOptionalChild(element, "bean-load-balance-policy"), beanLoadBalancePolicy); + // SFSB settings only // 1.36 +7 -34 jboss/src/main/org/jboss/metadata/BeanMetaData.java Index: BeanMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/metadata/BeanMetaData.java,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- BeanMetaData.java 2002/01/12 16:57:16 1.35 +++ BeanMetaData.java 2002/01/14 02:00:22 1.36 @@ -31,7 +31,7 @@ * @author mailto:[EMAIL PROTECTED]";>Scott Stark. * @author mailto:[EMAIL PROTECTED]";>Ole Husgaard * @author mailto:[EMAIL PROTECTED]";>Bill Burke - * @version $Revision: 1.35 $ + * @version $Revision: 1.36 $ * * Revisions: * 2001/10/16: billb @@ -109,11 +109,8 @@ private String beanInvoker = null; public static final String DEFAULT_HOME_INVOKER = "jboss:service=invoker,type=jrmp"; public static final String DEFAULT_BEAN_INVOKER = "jboss:service=invoker,type=jrmp"; - public static final String DEFAULT_CLUSTERED_HOME_INVOKER = "jboss:service=invoker,type=jrmpha,partition=DefaultPartition,load-balance=RoundRobin"; - public static final String DEFAULT_CLUSTERED_SLSB_INVOKER = "jboss:service=invoker,type=jrmpha,partition=DefaultPartition,load-balance=RoundRobin"; - public static final String DEFAULT_CLUSTERED_SFSB_INVOKER = "jboss:service=invoker,type=jrmpha,partition=DefaultPartition,load-balance=FirstAvailable"; - public static final String DEFAULT_CLUSTERED_EB_INVOKER = "jboss:service=invoker,type=jrmpha,partition=DefaultPartition,load-balance=FirstAvailable"; - public static final String DEFAULT_CLUSTERED_BEAN_INVOKER = "jboss:service=invoker,type=jrmpha,partition=DefaultPartition,load-balance=FirstAvailable"; + public static final String DEFAULT_CLUSTERED_HOME_INVOKER = "jboss:service=invoker,type=jrmpha"; + public static final String DEFAULT_CLUSTERED_BEAN_INVOKER = "jboss:service=invoker,type=jrmpha"; /** The cluster-config element info */ private ClusterConfigMetaData clusterConfig = null; @@ -520,10 +517,11 @@ Element clusterConfigElement = getOptionalChild(element, "cluster-config"); + this.clusterConfig = new ClusterConfigMetaData(); +
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/invocation/jrmp/interfaces JRMPInvokerProxyHA.java
User: patriot1burke Date: 02/01/13 17:57:05 Modified:src/main/org/jboss/invocation/jrmp/interfaces JRMPInvokerProxyHA.java Log: Heterogeneous Partitions. Also fixed problem where you could get bogus failover targets if making calls when a server starts up. Similar to HARMIClient now. Revision ChangesPath 1.2 +208 -22 jbossmx/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java Index: JRMPInvokerProxyHA.java === RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JRMPInvokerProxyHA.java 2001/12/31 20:43:49 1.1 +++ JRMPInvokerProxyHA.java 2002/01/14 01:57:05 1.2 @@ -6,51 +6,237 @@ */ package org.jboss.invocation.jrmp.interfaces; +import java.io.IOException; +import java.io.Externalizable; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +import java.rmi.ServerException; +import java.rmi.NoSuchObjectException; +import java.rmi.MarshalledObject; + +import java.util.ArrayList; +import java.util.HashSet; + +import javax.transaction.SystemException; + +import org.jboss.invocation.Invocation; +import org.jboss.invocation.MarshalledInvocation; import org.jboss.invocation.Invoker; -import org.jboss.ha.framework.interfaces.HARMIProxy; +import org.jboss.invocation.local.LocalInvoker; + +import org.jboss.security.SecurityAssociation; + +import org.jboss.tm.TransactionPropagationContextFactory; +import org.jboss.ha.framework.interfaces.HARMIResponse; +import org.jboss.ha.framework.interfaces.LoadBalancePolicy; + /** * -* JRMPInvokerProxyHA, local to the proxy and is capable of delegating to local and JRMP implementations +* JRMPInvokerProxy, local to the proxy and is capable of delegating to local and JRMP implementations * -* @author mailto:bill@burkecentral";>Bill Burke -* @version $Revision: 1.1 $ +* @author mailto:[EMAIL PROTECTED]";>Marc Fleury +* @version $Revision: 1.2 $ * -* 2001/12/31: billb +* 2001/11/19: marcf * * Initial checkin * */ -public class JRMPInvokerProxyHA extends JRMPInvokerProxy +public class JRMPInvokerProxyHA extends JRMPInvokerProxy implements Externalizable { - // Constructors -- + // Public + protected ArrayList targets = null; + protected LoadBalancePolicy loadBalancePolicy; + protected transient long currentViewId = 0; - public JRMPInvokerProxyHA() + public static final HashSet colocation = new HashSet(); + + public JRMPInvokerProxyHA() + { + } + + public JRMPInvokerProxyHA(ArrayList targets, LoadBalancePolicy policy) { - super(); + this.targets = targets; + this.loadBalancePolicy = policy; } - /** -* Create a new Proxy. -* -* @param container -* The remote interface of the container invoker of the -* container we proxy for. -*/ - public JRMPInvokerProxyHA(Invoker remoteInvoker) + public ArrayList getTargets() { - super(remoteInvoker); + return targets; } - // Public + public void setTargets(ArrayList newTargets) + { + synchronized(targets) + { + targets.clear(); + targets.addAll(newTargets); + } + } + public Object getRemoteTarget() + { + // System.out.println("number of targets: " + targets.size()); + if (targets.size() == 0) + { + return null; + } + synchronized (targets) + { + return loadBalancePolicy.chooseTarget(targets); + } + } + public void remoteTargetHasFailed(Object target) + { + removeDeadTarget(target); + } + + + protected void removeDeadTarget(Object target) + { + //System.out.println("Size before : " + Integer.toString(targets.length)); + if (targets != null) + { + synchronized(targets) + { +//System.out.println("removeDeadTarget has been called"); +int length = targets.size(); +for (int i=0; ihttps://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/invocation/jrmp/server JRMPInvokerHAMBean.java
User: patriot1burke Date: 02/01/13 17:57:37 Removed: src/main/org/jboss/invocation/jrmp/server JRMPInvokerHAMBean.java Log: No longer used. ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/proxy - New directory
User: patriot1burke Date: 02/01/13 17:54:35 jbossmx/src/main/org/jboss/proxy - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/proxy/ejb ProxyFactoryHA.java
User: patriot1burke Date: 02/01/13 17:55:46 Added: src/main/org/jboss/proxy/ejb ProxyFactoryHA.java Log: Heterogeneous Partitions. Also fixed problem where you could get bogus failover targets if making calls when a server starts up. Revision ChangesPath 1.1 jbossmx/src/main/org/jboss/proxy/ejb/ProxyFactoryHA.java Index: ProxyFactoryHA.java === /* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.proxy.ejb; import javax.management.ObjectName; import javax.naming.InitialContext; import org.jboss.ejb.Container; import org.jboss.ejb.ContainerInvoker; import org.jboss.ejb.ContainerInvokerContainer; import org.jboss.invocation.Invoker; import org.jboss.proxy.ejb.handle.HomeHandleImpl; import org.jboss.metadata.EntityMetaData; import org.jboss.metadata.SessionMetaData; import org.jboss.system.Registry; import org.jboss.util.FinderResults; import org.jboss.logging.Logger; import org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA; import org.jboss.invocation.jrmp.server.JRMPInvokerHA; import org.jboss.ha.framework.interfaces.LoadBalancePolicy; import org.jboss.ha.framework.interfaces.HAPartition; import org.jboss.ha.framework.server.HATarget; import java.util.HashMap; /** * ProxyFactory for Clustering * * @author mailto:[EMAIL PROTECTED]";>Bill Burke * @version $Revision: 1.1 $ * * Revisions: * 2002/01/13: billb * * Initial Revisition * */ public class ProxyFactoryHA extends ProxyFactory { protected JRMPInvokerHA homejrmp; protected JRMPInvokerHA beanjrmp; protected HATarget homeTarget; protected HATarget beanTarget; protected void initInvokers() throws Exception { if (container == null) System.out.println("container is null"); if (container.getBeanMetaData() == null) System.out.println("is null"); if (container.getBeanMetaData().getClusterConfigMetaData() == null) System.out.println("is null"); if (container.getBeanMetaData().getClusterConfigMetaData().getPartitionName() == null) System.out.println("is null"); String partitionName = container.getBeanMetaData().getClusterConfigMetaData().getPartitionName(); HAPartition partition = (HAPartition)new InitialContext().lookup("/HAPartition/" + partitionName); String beanName = "jboss.j2ee:service=EJB,jndiName="+container.getBeanMetaData().getJndiName(); ObjectName oname; // Get the local invoker oname = new ObjectName(container.getBeanMetaData().getHomeInvoker()); homejrmp = (JRMPInvokerHA)Registry.lookup(oname); if (homejrmp == null) throw new RuntimeException("home JRMPInvokerHA is null: " + oname); oname = new ObjectName(container.getBeanMetaData().getBeanInvoker()); beanjrmp = (JRMPInvokerHA)Registry.lookup(oname); if (beanjrmp == null) throw new RuntimeException("bean JRMPInvokerHA is null: " + oname); // If invokers are the same don't register twice. if (homejrmp == beanjrmp) { homeTarget = new HATarget(partition, beanName, homejrmp); beanTarget = homeTarget; homejrmp.registerBean(beanName, homeTarget); } else { homeTarget = new HATarget(partition, beanName + "/home", homejrmp); homejrmp.registerBean(beanName, homeTarget); beanTarget = new HATarget(partition, beanName + "/bean", beanjrmp); beanjrmp.registerBean(beanName, beanTarget); } ClassLoader cl = Thread.currentThread().getContextClassLoader(); Class clazz; LoadBalancePolicy policy; clazz = cl.loadClass(container.getBeanMetaData().getClusterConfigMetaData().getHomeLoadBalancePolicy()); policy = (LoadBalancePolicy)clazz.newInstance(); homeInvoker = homejrmp.createProxy(beanName, policy); clazz = cl.loadClass(container.getBeanMetaData().getClusterConfigMetaData().getBeanLoadBalancePolicy()); policy = (LoadBalancePolicy)clazz.newInstance(); beanInvoker = homejrmp.createProxy(beanName, policy); JRMPInvokerProxyHA.colocation.add(beanName); } public void stop() { super.stop(); try { String beanName = "jboss.j2ee:service=EJB,jndiName="+container.getBeanMetaData().getJndiName(); // If invokers are the same don't register twice. JRMPInvokerProxyHA.colocation.remove(beanName); if (homejrmp == beanjrmp) { homejrmp.unregisterBean(beanName); homeTarget.destroy(); } else { homejrmp.unregisterBean(beanName); beanjrmp.unregisterBean(beanNam
[JBoss-dev] CVS update: manual/src/xdocs resource.xml
User: d_jencks Date: 02/01/13 17:14:43 Modified:src/xdocs resource.xml Log: Moved example configurations into examples directory and replaced text with links to cvs history pages. Now you can find the config version for your jboss version. Revision ChangesPath 3.8 +34 -359 manual/src/xdocs/resource.xml Index: resource.xml === RCS file: /cvsroot/jboss/manual/src/xdocs/resource.xml,v retrieving revision 3.7 retrieving revision 3.8 diff -u -r3.7 -r3.8 --- resource.xml 2002/01/13 23:34:52 3.7 +++ resource.xml 2002/01/14 01:14:43 3.8 @@ -238,366 +238,41 @@ Examples for specific databases Please contribute your working example now! - IMPORTANT: THESE EXAMPLES ARE FOR POST JBOSS3.0ALPHA ONLY! THEY WILL NOT WORK ON JBOSS 2.4.x. TO ADAPT THEM TO JBOSS3.0ALPHA, REPLACE "depends" WITH "mbean-ref" AND "optional-attribute-name=" WITH "name=". ALSO REPLACE jboss.jca: IN THE OBJECT NAMES WITH JCA: + The example ConnectionFactoryLoader configuration files are now maintained individually in jboss cvs. Here is a http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/";>link to a cvs view of the directory containing the examples. Please examine the checkin comments to find the version appropriate for the version of jboss 3 that you are using. These examples will not work with any jboss 2.x version. + Here are links to the cvs history pages for individual examples. + + + + http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/firebird-service.xml";>Firebird jca-jdbc driver (Not Interclient) + + + + + + http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/mssql-service.xml";>MSSQL database with Atinav driver + + + + + + http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/mysql-service.xml";>MySql database. + + + + + + http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/oracle-service.xml";>Oracle 8 database + + + + + + http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/postgres-service.xml";>Postgres database + + + + - - firebirdsql - Here is a sample firebird-service.xml configuration file for the (incomplete) firebirdsql jca-jdbc driver. Note that this is not the Borland interclient driver. It does support xa transactions correctly, although recover is not yet implemented. To obtain it, visit the firebird project at sourceforge, checkout the client-java module from cvs, and build it using the ant script. This configuration is written by - - David - Jencks - -[EMAIL PROTECTED] - - - - - - - MSSQL 2000, ATINAV thin driver - Here is a sample mssqlds-service.xml for the atinav thin driver configuration file contributed by - - Alex - Pavlov - -[EMAIL PROTECTED]. This driver is available from http://www.atinav.com/products/aveconnect/aveconnect.htm";>Atinav. - - - - - - - - - Mysql - Here is a sample mysql-service.xml configuration file contributed by - - Ignacio - Coloma - -[EMAIL PROTECTED] - - - - - Oracle - Here is a sample oracle-service.xml configuration file contributed by - - Christian - Biasuzzi - -[EMAIL PROTECTED] - - - - - Postgres - Here is a sample postgres-service.xml configuration file contributed by - - Ignacio - Coloma - -[EMAIL PROTECTED] - - - - - Sybase - Here is a sample sybase-service.xml configuration file contributed by - - Peter - Levart - -[EMAIL PROTECTED] - - - Migration from older jboss versions ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/security JBossUserRealm.java
User: jules_gosnell Date: 02/01/13 16:42:26 Modified:jetty/src/main/org/jboss/jetty/security JBossUserRealm.java Log: finally fix the problem with JBossUserRealm not being Serializable. Thanks for this suggestion, Anatoly. Revision ChangesPath 1.2 +7 -3 contrib/jetty/src/main/org/jboss/jetty/security/JBossUserRealm.java Index: JBossUserRealm.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/security/JBossUserRealm.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JBossUserRealm.java 2002/01/13 13:28:49 1.1 +++ JBossUserRealm.java 2002/01/14 00:42:26 1.2 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: JBossUserRealm.java,v 1.1 2002/01/13 13:28:49 jules_gosnell Exp $ +// $Id: JBossUserRealm.java,v 1.2 2002/01/14 00:42:26 jules_gosnell Exp $ package org.jboss.jetty.security; @@ -29,7 +29,7 @@ /** An implementation of UserRealm that integrates with the JBossSX * security manager associted with the web application. * @author [EMAIL PROTECTED] - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ // TODO @@ -61,7 +61,11 @@ if(_authMgr!=null &&_authMgr.isValid(this, passwordChars)) { _log.info("JBossUserPrincipal: "+userName+" is authenticated"); - SecurityAssociation.setPrincipal(this); + + // work around the fact that we are not serialisable - thanks Anatoly + // SecurityAssociation.setPrincipal(this); + SecurityAssociation.setPrincipal(new SimplePrincipal(userName)); + SecurityAssociation.setCredential(passwordChars); authenticated=true; } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: manual/src/examples/resources/jca firebird-service.xml mssql-service.xml mysql-service.xml oracle-service.xml postgres-service.xml
User: d_jencks Date: 02/01/13 16:16:51 Modified:src/examples/resources/jca firebird-service.xml mssql-service.xml mysql-service.xml oracle-service.xml postgres-service.xml Log: This version has depends instead of mbean-ref and new jmx domain names of the form jboss.jca Revision ChangesPath 1.2 +4 -4 manual/src/examples/resources/jca/firebird-service.xml Index: firebird-service.xml === RCS file: /cvsroot/jboss/manual/src/examples/resources/jca/firebird-service.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- firebird-service.xml 2002/01/14 00:05:59 1.1 +++ firebird-service.xml 2002/01/14 00:16:51 1.2 @@ -1,5 +1,5 @@ - + @@ -27,12 +27,12 @@ + name="jboss.jca:service=ConnectionFactoryLoader,name=FirebirdDS"> Database=localhost/3050:/usr/java/jboss/co6/jboss-all/build/output/jboss-3.0.0alpha/db/firebirdsql/jbosstest.gdb DefaultDS java:/TransactionManager -JCA:service=RARDeployment,name=Firebird Database Connector -JCA:service=ConnectionManagerFactoryLoader,name=MinervaXACMFactory +jboss.jca:service=RARDeployment,name=Firebird Database Connector +jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaXACMFactory # BlockingTimeoutMillis=50 IdleTimeoutMinutes=30 1.2 +6 -9 manual/src/examples/resources/jca/mssql-service.xml Index: mssql-service.xml === RCS file: /cvsroot/jboss/manual/src/examples/resources/jca/mssql-service.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- mssql-service.xml 2002/01/14 00:06:00 1.1 +++ mssql-service.xml 2002/01/14 00:16:51 1.2 @@ -1,5 +1,5 @@ - + @@ -18,21 +18,18 @@ - - - - + +name="jboss.jca:service=ConnectionFactoryLoader,name=MSSQL2000DS"> ConnectionURL=jdbc:AvenirDriver://:/;uid=;pwd= DriverClass=net.avenir.jdbc2.Driver MSSQL2000DS java:/TransactionManager -JCA:service=RARDeployment,name=Minerva -JDBC LocalTransaction ResourceAdapter -JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory +jboss.jca:service=RARDeployment,name=Minerva +JDBC LocalTransaction ResourceAdapter +jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory # #Wed Aug 15 16:17:29 EDT 2001 BlockingTimeoutMillis=5 1.2 +4 -12 manual/src/examples/resources/jca/mysql-service.xml Index: mysql-service.xml === RCS file: /cvsroot/jboss/manual/src/examples/resources/jca/mysql-service.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- mysql-service.xml 2002/01/14 00:06:00 1.1 +++ mysql-service.xml 2002/01/14 00:16:51 1.2 @@ -1,5 +1,5 @@ - + @@ -9,28 +9,20 @@ - - - - - - - - + name="jboss.jca:service=ConnectionFactoryLoader,name=fooDS"> ConnectionURL=jdbc:mysql://localhost/foo DriverClass=org.gjt.mm.mysql.Driver UserName= fooDS java:/TransactionManager -JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter -JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory +jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter +jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory # #Wed Aug 15 16:17:29 EDT 2001 BlockingTimeoutMillis=50 1.2 +4 -3 manual/src/examples/resources/jca/oracle-service.xml Index: oracle-service.xml === RCS file: /cvsroot/jboss/manual/src/examples/resources/jca/oracle-service.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- oracle-service.xml2002/01/14 00:06:00 1.1 +++ oracle-service.xml2002/01/14 00:16:51 1.2 @@ -1,4 +1,5 @@ + @@ -18,15 +19,15 @@ "/> +name="jboss.jca:service=ConnectionFactoryLoader,name=OracleDS"> ConnectionURL=jdbc:oracle:thin:@:: DriverClass=oracle.jdbc.driver.OracleDriver OracleDS java:/TransactionManager -JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter -JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory +jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTr
[JBoss-dev] CVS update: manual/src/examples/resources/jca firebird-service.xml mssql-service.xml mysql-service.xml oracle-service.xml postgres-service.xml
User: d_jencks Date: 02/01/13 16:06:00 Added: src/examples/resources/jca firebird-service.xml mssql-service.xml mysql-service.xml oracle-service.xml postgres-service.xml Log: ConnectionFactoryLoader config files. Version for jboss 3.0 alpha of nov 30 2001 Revision ChangesPath 1.1 manual/src/examples/resources/jca/firebird-service.xml Index: firebird-service.xml === Database=localhost/3050:/usr/java/jboss/co6/jboss-all/build/output/jboss-3.0.0alpha/db/firebirdsql/jbosstest.gdb DefaultDS java:/TransactionManager JCA:service=RARDeployment,name=Firebird Database Connector JCA:service=ConnectionManagerFactoryLoader,name=MinervaXACMFactory # BlockingTimeoutMillis=50 IdleTimeoutMinutes=30 MaxSize=10 CleanupIntervalMinutes=30 MinSize=0 MaxIdleTimeoutPercent=1.0 org.jboss.resource.security.ManyToOnePrincipalMapping UserName=sysdba Password=masterkey 1.1 manual/src/examples/resources/jca/mssql-service.xml Index: mssql-service.xml === ConnectionURL=jdbc:AvenirDriver://:/;uid=;pwd= DriverClass=net.avenir.jdbc2.Driver MSSQL2000DS java:/TransactionManager JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory # #Wed Aug 15 16:17:29 EDT 2001 BlockingTimeoutMillis=5 IdleTimeoutMinutes=30 MaxSize=10 CleanupIntervalMinutes=10 MinSize=0 MaxIdleTimeoutPercent=1.0 org.jboss.resource.security.ManyToOnePrincipalMapping userName= password= 1.1 manual/src/examples/resources/jca/mysql-service.xml Index: mysql-service.xml === ConnectionURL=jdbc:mysql://localhost/foo DriverClass=org.gjt.mm.mysql.Driver UserName= fooDS java:/TransactionManager JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory # #Wed Aug 15 16:17:29 EDT 2001 BlockingTimeoutMillis=50 IdleTimeoutMinutes=30 MaxSize=10 CleanupIntervalMinutes=10 MinSize=0 MaxIdleTimeoutPercent=1.0 org.jboss.resource.security.ManyToOnePrincipalMapping UserName= 1.1 manual/src/examples/resources/jca/oracle-service.xml Index: oracle-service.xml === ConnectionURL=jdbc:oracle:thin:@:: DriverClass=oracle.jdbc.driver.OracleDriver OracleDS java:/TransactionManager JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory # #Wed Aug 15 16:17:29 EDT 2001 BlockingTimeoutMillis=5 IdleTimeoutMinutes=30 MaxSize=10 CleanupIntervalMinutes=10 MinSize=0 MaxIdleTimeoutPercent=1.0 org.jboss.resource.security.ManyToOnePrincipalMapping userName= password= 1.1 manual/src/examples/resources/jca/postgres-service.xml Index: postgres-service.xml === ConnectionURL=jdbc:postgresql://192.168.0.4:5432/foo DriverClass=org.postgresql.Driver UserName=postgres Password=postgres FooPostgresDS java:/TransactionManager JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory # #Wed Aug 15 16:17:29 EDT 2001 BlockingTimeoutMillis=50 IdleTimeoutMinutes=30 MaxSize=10 CleanupIntervalMinutes=10 MinSize=0 MaxIdleTimeoutPercent=1.0 org.jboss.resource.security.ManyToOnePrincipalMapping UserName= _
[JBoss-dev] CVS update: manual/src/examples/resources/jca - New directory
User: d_jencks Date: 02/01/13 16:03:36 manual/src/examples/resources/jca - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] more standardjboss-cmp.xml
This doesn't work. Postgres throws an exception "Unknown Types" on BIT. -dain > -Original Message- > From: Dave Smith [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 8:33 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-dev] more standardjboss-cmp.xml > > > For postgresql the Boolean mapping is wrong. Should be > > >java.lang.Boolean >BIT >BOOLEAN > > > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty JBossWebApplicationContext.java Jetty.java
User: jules_gosnell Date: 02/01/13 13:30:13 Modified:jetty/src/main/org/jboss/jetty JBossWebApplicationContext.java Jetty.java Log: a fixed watchdog ear will now deploy/undeploy happily and tests can be run: [java] [gtest] *** 333 TEST(S) PASSED! *** [java] [gtest] *** 9 TEST(S) FAILED! *** Revision ChangesPath 1.15 +3 -3 contrib/jetty/src/main/org/jboss/jetty/JBossWebApplicationContext.java Index: JBossWebApplicationContext.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/JBossWebApplicationContext.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- JBossWebApplicationContext.java 2002/01/13 13:26:45 1.14 +++ JBossWebApplicationContext.java 2002/01/13 21:30:13 1.15 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: JBossWebApplicationContext.java,v 1.14 2002/01/13 13:26:45 jules_gosnell Exp $ +// $Id: JBossWebApplicationContext.java,v 1.15 2002/01/13 21:30:13 jules_gosnell Exp $ // A Jetty HttpServer with the interface expected by JBoss' // J2EEDeployer... @@ -123,8 +123,8 @@ } else if ("distributable".equals(element)) { - _distributed=true; - getServletHandler().setSessionManager(new DistributedHttpSessionManager(this)); + _distributed=true; + getServletHandler().setSessionManager(new DistributedHttpSessionManager(this)); } // these are handled by Jetty else 1.32 +25 -13contrib/jetty/src/main/org/jboss/jetty/Jetty.java Index: Jetty.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/Jetty.java,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- Jetty.java2002/01/13 13:26:45 1.31 +++ Jetty.java2002/01/13 21:30:13 1.32 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: Jetty.java,v 1.31 2002/01/13 13:26:45 jules_gosnell Exp $ +// $Id: Jetty.java,v 1.32 2002/01/13 21:30:13 jules_gosnell Exp $ // A Jetty HttpServer with the interface expected by JBoss' // J2EEDeployer... @@ -26,6 +26,7 @@ import org.jboss.web.AbstractWebContainer.WebDescriptorParser; import org.jboss.web.WebApplication; import org.mortbay.jetty.servlet.WebApplicationContext; +import org.mortbay.util.MultiException; //-- @@ -34,7 +35,7 @@ * * @author mailto:[EMAIL PROTECTED]";>Julian Gosnell * @author mailto:[EMAIL PROTECTED]";>Andreas Schaefer. - * @version $Revision: 1.31 $ + * @version $Revision: 1.32 $ * * Revisions: * @@ -50,9 +51,9 @@ public class Jetty extends org.mortbay.jetty.Server { - static DocumentBuilderFactory _factory=DocumentBuilderFactory.newInstance(); + static DocumentBuilderFactory _factory =DocumentBuilderFactory.newInstance(); DocumentBuilder _parser; - Logger _log = Logger.getLogger(Jetty.class); + Logger_log = Logger.getLogger(Jetty.class); Jetty() { @@ -198,7 +199,7 @@ // deploy the WebApp WebApplicationContext app= - new JBossWebApplicationContext(this, contextPath, descriptorParser, wa, _parser); + new JBossWebApplicationContext(this, contextPath, descriptorParser, wa, _parser); String virtualHost=null; addContext(virtualHost, app); @@ -206,9 +207,20 @@ String fixedWarUrl=warUrl+(warUrl.endsWith("/")?"":"/"); app.initialize(fixedWarUrl, getWebDefault(), getUnpackWars()); - // finally start the app - app.start(); - + try + { + // finally start the app + app.start(); + } + catch (MultiException me) + { + _log.warn("problem deploying "+warUrl+" to "+contextPath); + for (int i=0; i= 0 ) { - index = url.lastIndexOf( '/', index ); + index = url.lastIndexOf( '/', index ); } else { - index = url.lastIndexOf( '/' ); + index = url.lastIndexOf( '/' ); } // Now add a "./" before the JAR file to add a different path if( index >= 0 ) { @@ -294,9 +306,9 @@ "/." + url.substring( index ); } else { - // Now forward slash found then there is severe problem with - // the URL but here we just ignore it - return url; + // Now forward slash found then there is severe problem with + // the URL but here we just ignore it + return url; } } } ___ Jboss-development mailing
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/session CoarseDistributedStore.java DistributedHttpSession.java DistributedHttpSessionManager.java
User: jules_gosnell Date: 02/01/13 13:30:14 Modified:jetty/src/main/org/jboss/jetty/session CoarseDistributedStore.java DistributedHttpSession.java DistributedHttpSessionManager.java Log: a fixed watchdog ear will now deploy/undeploy happily and tests can be run: [java] [gtest] *** 333 TEST(S) PASSED! *** [java] [gtest] *** 9 TEST(S) FAILED! *** Revision ChangesPath 1.2 +15 -11 contrib/jetty/src/main/org/jboss/jetty/session/CoarseDistributedStore.java Index: CoarseDistributedStore.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/session/CoarseDistributedStore.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CoarseDistributedStore.java 2002/01/13 13:26:45 1.1 +++ CoarseDistributedStore.java 2002/01/13 21:30:13 1.2 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: CoarseDistributedStore.java,v 1.1 2002/01/13 13:26:45 jules_gosnell Exp $ +// $Id: CoarseDistributedStore.java,v 1.2 2002/01/13 21:30:13 jules_gosnell Exp $ // @@ -94,23 +94,24 @@ public AbstractHttpSessionData get(String id) { +if (_home==null) + return null; + AbstractHttpSessionData data=null; try { CoarseHttpSession ejb=_home.findByPrimaryKey(id); - data= ejb.getData(); - ejb.remove(); - ejb=null; + + if (ejb!=null) + { + data= ejb.getData(); + ejb.remove(); + ejb=null; + } } -catch (RemoteException e) -{} -catch (FinderException e) +catch (Throwable e) {} -catch (RemoveException e) -{} -catch (Exception e) -{} return data; } @@ -124,6 +125,9 @@ public void set(String id, AbstractHttpSessionData data) { +if (_home==null) + return; + try { CoarseHttpSession ejb=_home.create((CoarseHttpSessionData)data); 1.2 +9 -2 contrib/jetty/src/main/org/jboss/jetty/session/DistributedHttpSession.java Index: DistributedHttpSession.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/session/DistributedHttpSession.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DistributedHttpSession.java 2002/01/13 13:26:45 1.1 +++ DistributedHttpSession.java 2002/01/13 21:30:14 1.2 @@ -136,9 +136,16 @@ } // + // Scavenger thread needs this method... - // Greg's API - where does he use it ? Should be inheriting it from - // some interface... + public DistributedHttpSessionManager +getManager() + { +return _manager; + } + + // + // SessionManager API public void access() 1.2 +50 -21 contrib/jetty/src/main/org/jboss/jetty/session/DistributedHttpSessionManager.java Index: DistributedHttpSessionManager.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/session/DistributedHttpSessionManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DistributedHttpSessionManager.java2002/01/13 13:26:45 1.1 +++ DistributedHttpSessionManager.java2002/01/13 21:30:14 1.2 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: DistributedHttpSessionManager.java,v 1.1 2002/01/13 13:26:45 jules_gosnell Exp $ +// $Id: DistributedHttpSessionManager.java,v 1.2 2002/01/13 21:30:14 jules_gosnell Exp $ // TODO @@ -41,18 +41,45 @@ //-- +class MyTimeOutNotifier + implements AbstractTimeOutManager.TimeOutNotifier +{ + public void +timeOut(Object object) + { +DistributedHttpSession session=(DistributedHttpSession)object; +// _log.info("session ("+session.getId()+") timed out - cleaning up"); +session.getManager().destroyHttpSession(session); + } +} + +class MyTimeOutTester + implements AbstractTimeOutManager.TimeOutTester +{ + public long +timeRemaining(Object object, long now, long maxInactiveInterval) + { +DistributedHttpSession session=(DistributedHttpSession)object; +return session.getLastAccessedTime()+ maxInactiveInterval- now; + } +} + +//-- /** * - * @version $Id: Distributed
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/util AbstractTimeOutManager.java NaiveTimeOutManager.java
User: jules_gosnell Date: 02/01/13 13:30:14 Modified:jetty/src/main/org/jboss/jetty/util AbstractTimeOutManager.java NaiveTimeOutManager.java Log: a fixed watchdog ear will now deploy/undeploy happily and tests can be run: [java] [gtest] *** 333 TEST(S) PASSED! *** [java] [gtest] *** 9 TEST(S) FAILED! *** Revision ChangesPath 1.2 +9 -3 contrib/jetty/src/main/org/jboss/jetty/util/AbstractTimeOutManager.java Index: AbstractTimeOutManager.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/util/AbstractTimeOutManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AbstractTimeOutManager.java 2002/01/13 13:26:46 1.1 +++ AbstractTimeOutManager.java 2002/01/13 21:30:14 1.2 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: AbstractTimeOutManager.java,v 1.1 2002/01/13 13:26:46 jules_gosnell Exp $ +// $Id: AbstractTimeOutManager.java,v 1.2 2002/01/13 21:30:14 jules_gosnell Exp $ //-- @@ -16,8 +16,8 @@ public interface AbstractTimeOutManager { - public void register(Object object, long now, long timeRemaining); - public void reregister(Object object, long now, long timeRemaining); + public void register(Object object, long now, long maxInactiveInterval); + public void reregister(Object object, long now, long maxInactiveInterval); public void deregister(Object object); public void start(); @@ -27,5 +27,11 @@ TimeOutNotifier { public void timeOut(Object object); +} + + public interface +TimeOutTester +{ + public long timeRemaining(Object object, long now, long maxInactiveInterval); } } 1.2 +17 -16 contrib/jetty/src/main/org/jboss/jetty/util/NaiveTimeOutManager.java Index: NaiveTimeOutManager.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/util/NaiveTimeOutManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- NaiveTimeOutManager.java 2002/01/13 13:26:46 1.1 +++ NaiveTimeOutManager.java 2002/01/13 21:30:14 1.2 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: NaiveTimeOutManager.java,v 1.1 2002/01/13 13:26:46 jules_gosnell Exp $ +// $Id: NaiveTimeOutManager.java,v 1.2 2002/01/13 21:30:14 jules_gosnell Exp $ //-- @@ -27,32 +27,30 @@ final List_entries=new LinkedList(); final long_interval; final TimeOutNotifier _notifier; + final TimeOutTester _tester; public -NaiveTimeOutManager(long interval, TimeOutNotifier notifier) +NaiveTimeOutManager(long interval, TimeOutNotifier notifier, TimeOutTester tester) { _interval=interval; _notifier=notifier; + _tester=tester; } class Entry { -final long _timeRegistered; -final long _timeRemaining; final Object _object; - -Entry(long timeRegistered, long timeRemaining, Object object) +final long _maxInactiveInterval; +Entry(Object object, long maxInactiveInterval) { - _timeRegistered=timeRegistered; - _timeRemaining=timeRemaining; _object=object; + _maxInactiveInterval=maxInactiveInterval; } long getTimeRemaining(long now) { - long timeSinceRegistered=now-_timeRegistered; - return _timeRemaining-timeSinceRegistered; + return _tester.timeRemaining(_object, now, _maxInactiveInterval); } void @@ -63,12 +61,12 @@ } public synchronized void -register(Object object, long timeRegistered, long timeRemaining) +register(Object object, long timeRegistered, long maxInactiveInterval) { - if (timeRemaining<0) + if (maxInactiveInterval<0) return; // never timeout - Entry entry=new Entry(timeRegistered, timeRemaining, object); + Entry entry=new Entry(object, maxInactiveInterval); synchronized (_entries) { _entries.add(entry); @@ -76,11 +74,11 @@ } public synchronized void -reregister(Object object, long timeRegistered, long timeRemaining) +reregister(Object object, long timeRegistered, long maxInactiveInterval) { // could be optimised - but this is simpler for the moment... deregister(object); - register(object, timeRegistered, timeRemaining); + register(object, timeRegistered, maxInacti
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/ejb CoarseHttpSessionBean.java
User: jules_gosnell Date: 02/01/13 13:30:13 Modified:jetty/src/main/org/jboss/jetty/ejb CoarseHttpSessionBean.java Log: a fixed watchdog ear will now deploy/undeploy happily and tests can be run: [java] [gtest] *** 333 TEST(S) PASSED! *** [java] [gtest] *** 9 TEST(S) FAILED! *** Revision ChangesPath 1.5 +1 -3 contrib/jetty/src/main/org/jboss/jetty/ejb/CoarseHttpSessionBean.java Index: CoarseHttpSessionBean.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/ejb/CoarseHttpSessionBean.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- CoarseHttpSessionBean.java2002/01/13 13:26:45 1.4 +++ CoarseHttpSessionBean.java2002/01/13 21:30:13 1.5 @@ -18,7 +18,7 @@ * The Entity bean represents an HttpSession. * * @author [EMAIL PROTECTED] - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * * @ejb:bean name="jetty/CoarseHttpSession" type="CMP" jndi-name="ejb/jetty/CoarseHttpSession" primkey-field="id" * @ejb:pk class="java.lang.String" @@ -66,7 +66,6 @@ * Create httpSession. * * @ejb:create-method - * @ejb:permission role-name="Administrator" */ public Integer ejbCreate(CoarseHttpSessionData data) throws CreateException @@ -303,7 +302,6 @@ /** * @ejb:interface-method - * @ejb:permission role-name="Administrator" * @ejb:transaction type="Supports" */ public abstract CoarseHttpSessionData getData(); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty build.xml
User: jules_gosnell Date: 02/01/13 13:30:13 Modified:jettybuild.xml Log: a fixed watchdog ear will now deploy/undeploy happily and tests can be run: [java] [gtest] *** 333 TEST(S) PASSED! *** [java] [gtest] *** 9 TEST(S) FAILED! *** Revision ChangesPath 1.20 +4 -0 contrib/jetty/build.xml Index: build.xml === RCS file: /cvsroot/jboss/contrib/jetty/build.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- build.xml 2002/01/06 23:54:16 1.19 +++ build.xml 2002/01/13 21:30:13 1.20 @@ -394,14 +394,18 @@ Undeploying old Jetty plugin... + Deploying new Jetty plugin... + https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Re: ejbCreate
I looked at my patch source at home now. Hmmm I guess we would have to define complete. Since it was a patch for a bug where session beans could not call create I would say it is a complete patch for that bug. Of course it is stateful session beans, since stateless session beans make no sense to have anything other than a create() method. Certainly I agree that it doesnt address the home but then at the time I wrote the patch that wasnt listed as missing or a bug. :) At least this patch would give a starting point on how to accomplish the home stuff. It does indeed complete the create bug. Unless someone can make a case in the spec where stateless session (or entity) beans are allowed to have create also. but I certainly couldnt find it. I did a search on create in the spec and only found the stuff about session beans. :shrug: actually right now with all the changes made since I made that patch the patch fails. It is trivial to change it to work though. Al Adrian Brock wrote: [EMAIL PROTECTED]"> Rhett Aultman wrote: It looked like something simple enough for even a >rookie like me to handle, but then I also recall >seeing a patch on Sourceforge that already addresses >this issue. I think it was patch 493604 or something >like that. If it's not being dealt with, I'm happy to >give it a shot. That patch doesn't look very complete :-(Looks like he was Stateful Session Beans :-)Regards,Adrian__View this jboss-dev thread in the online forums:http://jboss.org/forums/thread.jsp?forum=66&thread=6979___Jboss-development mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Re: ejbCreate
I looked at my patch source at home now. Hmmm I guess we would have to define complete. Since it was a patch for a bug where session beans could not call create I would say it is a complete patch for that bug. Of course it is stateful session beans, since stateless session beans make no sense to have anything other than a create() method. Certainly I agree that it doesnt address the home but then at the time I wrote the patch that wasnt listed as missing or a bug. At least this patch would give a starting point on how to accomplish the home stuff. It does indeed complete the create bug. Unless someone can make a case in the spec where stateless session beans are allowed to have create also. but I certainly couldnt find it. Al Adrian Brock wrote: >That patch doesn't look very complete :-( >Looks like he was Stateful Session Beans :-) > >Regards, >Adrian >__ >View this jboss-dev thread in the online forums: >http://jboss.org/forums/thread.jsp?forum=66&thread=6979 > >___ >Jboss-development mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] log4j and exceptions
Ok I'm an idiot. The JavaDoc states: WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead Next time I'll read the docs. :) -dain > -Original Message- > From: Dain Sundstrom [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 13, 2002 1:11 PM > To: '[EMAIL PROTECTED]' > Subject: [JBoss-dev] log4j and exceptions > > > Why don't I get the stack trace in my (debug) log when I log > an exceptions > (e.g. log.debug( new Exception() ))? I only log exceptions > when I am forced > to wrap an exception with another exception that does not > support exception > encapsulation, such as FinderException (as apposed to > EJBException, which > does support encapsulation). This makes it very hard to > debug the server. > It is the debug log after all. > > -dain > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] log4j and exceptions
Why don't I get the stack trace in my (debug) log when I log an exceptions (e.g. log.debug( new Exception() ))? I only log exceptions when I am forced to wrap an exception with another exception that does not support exception encapsulation, such as FinderException (as apposed to EJBException, which does support encapsulation). This makes it very hard to debug the server. It is the debug log after all. -dain ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/framework/server FarmMemberServiceMBean.java
User: slaboure Date: 02/01/13 09:17:43 Modified:src/main/org/jboss/ha/framework/server FarmMemberServiceMBean.java Log: Make the farming stuff partition-dependant Revision ChangesPath 1.4 +8 -1 jbossmx/src/main/org/jboss/ha/framework/server/FarmMemberServiceMBean.java Index: FarmMemberServiceMBean.java === RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/server/FarmMemberServiceMBean.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- FarmMemberServiceMBean.java 2002/01/03 04:00:52 1.3 +++ FarmMemberServiceMBean.java 2002/01/13 17:17:43 1.4 @@ -34,7 +34,7 @@ * @see Service * * @author mailto:[EMAIL PROTECTED]";>Marc Fleury - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * * 20011015 andreas schaefer: * @@ -53,6 +53,13 @@ * @param pFile File to be deployed **/ public void deploy( URL pFile ); + + + /** + * Name of the Partition used as a cluster definition for the farming + **/ + public String getPartitionName (); + public void setPartitionName (String partitionName); /** * Checks and if necessary deploys the given file on this ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/framework/server FarmMemberService.java
User: slaboure Date: 02/01/13 09:18:14 Modified:src/main/org/jboss/ha/framework/server FarmMemberService.java Log: Make the farming stuff partition-dependant Revision ChangesPath 1.5 +26 -15 jbossmx/src/main/org/jboss/ha/framework/server/FarmMemberService.java Index: FarmMemberService.java === RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/server/FarmMemberService.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- FarmMemberService.java2002/01/03 04:00:52 1.4 +++ FarmMemberService.java2002/01/13 17:18:14 1.5 @@ -42,7 +42,7 @@ * * * @author mailto:[EMAIL PROTECTED]";>Andreas Schaefer - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * * Revisions: * @@ -56,9 +56,10 @@ // Attributes - private static ObjectName sFarmMemberService = null; - private static ObjectName sDeployerService = null; - private static ObjectName sClusterPartitionService = null; + protected ObjectName sFarmMemberService = null; + protected ObjectName sDeployerService = null; + protected ObjectName sClusterPartitionService = null; + protected String backgroundPartition = "DefaultPartition"; protected final static String SERVICE_NAME = "FarmMemberService"; @@ -280,6 +281,20 @@ return null; } + public String getPartitionName () + { + return this.backgroundPartition; + } + + public void setPartitionName (String partitionName) + { + if ((this.getState () != this.STARTED) && (this.getState () != this.STARTING)) + { + this.backgroundPartition = partitionName; + + } + } + // MBeanRegistration implementation /** @@ -295,7 +310,10 @@ mServer = pServer; log.info("Farm Member Service MBean online"); - return new ObjectName( OBJECT_NAME ); + + this.sFarmMemberService = new ObjectName( OBJECT_NAME + ",Partition="+this.backgroundPartition ); + + return this.sFarmMemberService; } // Service implementation @@ -308,6 +326,9 @@ protected void startService() throws Exception { + this.sDeployerService = new ObjectName( "jboss.system:service=ServiceDeployer" ); + this.sClusterPartitionService = new ObjectName( "jboss:service=" + this.backgroundPartition ); + log.debug( "registerRPCHandler" ); HAPartition lHAPartition = (HAPartition) mServer.getAttribute( sClusterPartitionService, @@ -352,16 +373,6 @@ } e.printStackTrace(); log.error(e); - } - - static { - try { - sFarmMemberService = new ObjectName( OBJECT_NAME ); - sDeployerService = new ObjectName( "jboss.system:service=ServiceDeployer" ); - sClusterPartitionService = new ObjectName( "jboss:service=DefaultPartition" ); - } - catch( JMException jme ) { - } } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/etc farm-service.xml
User: slaboure Date: 02/01/13 09:17:16 Modified:src/etc farm-service.xml Log: Make the farming stuff partition-dependant Revision ChangesPath 1.3 +40 -41jbossmx/src/etc/farm-service.xml Index: farm-service.xml === RCS file: /cvsroot/jboss/jbossmx/src/etc/farm-service.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- farm-service.xml 2002/01/03 04:00:51 1.2 +++ farm-service.xml 2002/01/13 17:17:15 1.3 @@ -1,41 +1,40 @@ - - - - - - - - - - - - - jboss:service=Naming - jboss.system:service=ServiceDeployer - - - - - - - - - - - - - - jboss:service=FarmMember - - - ../deploy/farm - - - 3000 - - - false - - - - + + + + + + + + + + + + + jboss:service=Naming + jboss.system:service=ServiceDeployer + jboss:service=DefaultPartition + + + + + + + DefaultPartition + + + + + jboss:service=FarmMember,partition=DefaultPartition + + + ../deploy/farm + + + 3000 + + + false + + + + ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/invocation MarshalledInvocation.java
User: slaboure Date: 02/01/13 08:28:55 Modified:src/main/org/jboss/invocation MarshalledInvocation.java Log: Make Externalizable calls (writeExternal) idempotent: until now, serialization on a MarshalledInvocation could only performed once (transaction was removed and METHOD type was modified). If another call was re-using the same object (in clustering for example), the call was making a ClassCastException because of the changed METHOD type in the Map that occured in the previous call to writeExternal) Revision ChangesPath 1.3 +20 -7 jboss/src/main/org/jboss/invocation/MarshalledInvocation.java Index: MarshalledInvocation.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/invocation/MarshalledInvocation.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MarshalledInvocation.java 2001/12/31 20:49:21 1.2 +++ MarshalledInvocation.java 2002/01/13 16:28:55 1.3 @@ -58,7 +58,7 @@ * * @see * @author mailto:[EMAIL PROTECTED]";>Marc Fleury -* @version $Revision: 1.2 $ +* @version $Revision: 1.3 $ * Revisions: * * Revisions: @@ -67,6 +67,14 @@ * *Initial check-in * +* 20020113 Sacha Labourey: +* +*Make Externalizable calls (writeExternal) idempotent: until now, +* serialization on a MarshalledInvocation could only performed once (transaction was removed +* and METHOD type was modified). If another call was re-using the same object (in +* clustering for example), the call was making a ClassCastException because of +* the changed METHOD type in the Map that occured in the previous call to writeExternal) +* */ public class MarshalledInvocation extends Invocation @@ -286,11 +294,9 @@ // Write the TPC, not the local transaction out.writeObject(tpc); - payload.remove(TRANSACTION); - - // We write the hash instead of the method - payload.put(METHOD, new Long(calculateHash((Method) payload.remove(METHOD; + HashMap sentData = new HashMap (); + // Everything else is possibly tied to classloaders that exist inside the server but not in // the generic JMX land. // they will travel in the payload as Marshalled Object, see the Invocation getter logic @@ -309,11 +315,18 @@ // Bench the above for speed. //Replace the current object with a Marshalled representation - payload.put(currentKey, new MarshalledObject(payload.get(currentKey))); + if (currentKey != TRANSACTION) + { +if (currentKey == METHOD) + // We write the hash instead of the method + sentData.put(METHOD, new Long(calculateHash((Method) payload.get(METHOD; +else + sentData.put (currentKey, new MarshalledObject(payload.get(currentKey))); + } } // The map contains only serialized representations of every other object - out.writeObject(payload); + out.writeObject(sentData); } public void readExternal(java.io.ObjectInput in) ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: newsite/src/docs xmbean.dtd
On 2002.01.13 09:41:34 -0500 "Bordet, Simone" wrote: > Hi David, > > > > > > >> > getMethod CDATA #IMPLIED > > > setMethod CDATA #IMPLIED > > > persistPeriod NMTOKEN #IMPLIED > > > currencyTimeLimit NMTOKEN #IMPLIED > > > > > > It might be a good idea to include the time unit in the > > duration names. > > Also currencyTimeLimit sounds a bit like it refers to money. > > Would a name > > like instanceTimeOutMinutes work? > > Well, "currencyTimeLimit" is what is defined by the spec for modelmbean; > changing its name will require a legend that explains that > "instanceTimeOutMinutes" in the XML will map the "currencyTimeLimit" > field in the Descriptor. > I would stay with Juha here, even if the name chosen by the spec is > really awful. > > Regards > > Simon Teach me not to read the spec ;-) Could there perhaps be a comment at the top that refers to the spec? Thanks david jencks > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] CVS update: newsite/src/docs xmbean.dtd
Hi David, > > > >> getMethod CDATA #IMPLIED > > setMethod CDATA #IMPLIED > > persistPeriod NMTOKEN #IMPLIED > > currencyTimeLimit NMTOKEN #IMPLIED > > > > It might be a good idea to include the time unit in the > duration names. > Also currencyTimeLimit sounds a bit like it refers to money. > Would a name > like instanceTimeOutMinutes work? Well, "currencyTimeLimit" is what is defined by the spec for modelmbean; changing its name will require a legend that explains that "instanceTimeOutMinutes" in the XML will map the "currencyTimeLimit" field in the Descriptor. I would stay with Juha here, even if the name chosen by the spec is really awful. Regards Simon ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: newsite/src/docs xmbean.dtd
This is really cool!! a couple of minor comments inline. On 2002.01.13 06:28:51 -0500 Juha Lindfors wrote: > User: juhalindfors > Date: 02/01/13 03:28:51 > > Added: src/docs xmbean.dtd > Log: > XMBean DTD > > Revision ChangesPath > 1.1 newsite/src/docs/xmbean.dtd > > Index: xmbean.dtd > === > > > > > > > > > notification*)> > (Never | OnUpdate | NoMoreOftenThan | OnTimer) "Never" > persistPeriod NMTOKEN #IMPLIED > persistLocation CDATA #IMPLIED > persistName CDATA #IMPLIED > currencyTimeLimit NMTOKEN #IMPLIED> > > > > > > > getMethod CDATA #IMPLIED > setMethod CDATA #IMPLIED > persistPeriod NMTOKEN #IMPLIED > currencyTimeLimit NMTOKEN #IMPLIED > > It might be a good idea to include the time unit in the duration names. Also currencyTimeLimit sounds a bit like it refers to money. Would a name like instanceTimeOutMinutes work? > > impact?)> > > > > > > > > > > > > > > > > > > > > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/security JBossUserRealm.java
User: jules_gosnell Date: 02/01/13 05:28:49 Added: jetty/src/main/org/jboss/jetty/security JBossUserRealm.java Log: split into dirs Revision ChangesPath 1.1 contrib/jetty/src/main/org/jboss/jetty/security/JBossUserRealm.java Index: JBossUserRealm.java === /* * jBoss, the OpenSource EJB server * * Distributable under GPL license. * See terms of license at gnu.org. */ // $Id: JBossUserRealm.java,v 1.1 2002/01/13 13:28:49 jules_gosnell Exp $ package org.jboss.jetty.security; import java.util.Collections; import java.util.HashMap; import java.util.Set; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.security.auth.Subject; import org.jboss.logging.Logger; import org.jboss.security.AuthenticationManager; import org.jboss.security.RealmMapping; import org.jboss.security.SecurityAssociation; import org.jboss.security.SimplePrincipal; import org.jboss.security.SubjectSecurityManager; import org.mortbay.http.HttpRequest; import org.mortbay.http.UserPrincipal; import org.mortbay.http.UserRealm; /** An implementation of UserRealm that integrates with the JBossSX * security manager associted with the web application. * @author [EMAIL PROTECTED] * @version $Revision: 1.1 $ */ // TODO public class JBossUserRealm implements UserRealm// Jetty API { class JBossUserPrincipal extends SimplePrincipal // JBoss API implements UserPrincipal // Jetty API { JBossUserPrincipal(String name) { super(name); _log.info("created JBossUserRealm::JBossUserPrincipal: "+name); } protected boolean isAuthenticated(String password) { String userName = this.getName(); // needs disambiguation because our outer class boolean authenticated = false; if (password==null) password=""; char[] passwordChars = password.toCharArray(); _log.info("authenticating: Name:"+userName+" Password:"+password); if(_authMgr!=null &&_authMgr.isValid(this, passwordChars)) { _log.info("JBossUserPrincipal: "+userName+" is authenticated"); SecurityAssociation.setPrincipal(this); SecurityAssociation.setCredential(passwordChars); authenticated=true; } else { _log.warn("JBossUserPrincipal: "+userName+" is NOT authenticated"); } return authenticated; } public boolean equals(Object o) { if (o==this) return true; if (o==null) return false; if (getClass()!=o.getClass()) return false; String myName =this.getName(); String yourName=((JBossUserPrincipal)o).getName(); if (myName==null && yourName==null) return true; if (myName!=null && myName.equals(yourName)) return true; return false; } // // SimplePrincipal - for JBoss // // UserPrincipal - for Jetty public boolean authenticate(String password, HttpRequest request) { _password=password; boolean authenticated=false; authenticated=isAuthenticated(_password); // This doesn't mean anything to Jetty - but may to some // Servlets - confirm later... if (authenticated && _subjSecMgr!=null) { Subject subject = _subjSecMgr.getActiveSubject(); request.setAttribute(_subjAttrName, subject); } return authenticated; } public boolean isAuthenticated() { return isAuthenticated(_password); } public UserRealm getUserRealm() { return JBossUserRealm.this; } public boolean isUserInRole(String role) { boolean isUserInRole = false; String userName = this.getName(); Set requiredRoles = Collections.singleton(new SimplePrincipal(role)); if(_realmMapping!=null && _realmMapping.doesUserHaveRole(this, requiredRoles)) { _log.info("JBossUserPrincipal: "+userName+" is in Role: "+role); isUserInRole = true; } else { _log.warn("JBossUserPrincipal: "+userName+" is NOT in Role: "+role); } return isUserInRole; } } private Logger _log; private String _realmName; private AuthenticationManager _authMgr; private RealmMapping _realmMapping; private HashMap_users = new HashMap(); private String _subjAttrName = "j_subject"; // needs accessors
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty JBossWebApplicationContext.java Jetty.java JettyService.java AbstractHttpSessionData.java DistributedSessionManager.java JBossLogSink.java JBossUserRealm.java JettyResolver.java
User: jules_gosnell Date: 02/01/13 05:26:45 Modified:jetty/src/main/org/jboss/jetty JBossWebApplicationContext.java Jetty.java JettyService.java Removed: jetty/src/main/org/jboss/jetty AbstractHttpSessionData.java DistributedSessionManager.java JBossLogSink.java JBossUserRealm.java JettyResolver.java Log: split src into dirs check in latest DistributedSession code Revision ChangesPath 1.14 +15 -7 contrib/jetty/src/main/org/jboss/jetty/JBossWebApplicationContext.java Index: JBossWebApplicationContext.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/JBossWebApplicationContext.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- JBossWebApplicationContext.java 2002/01/12 10:57:45 1.13 +++ JBossWebApplicationContext.java 2002/01/13 13:26:45 1.14 @@ -5,20 +5,26 @@ * See terms of license at gnu.org. */ -// $Id: JBossWebApplicationContext.java,v 1.13 2002/01/12 10:57:45 jules_gosnell Exp $ +// $Id: JBossWebApplicationContext.java,v 1.14 2002/01/13 13:26:45 jules_gosnell Exp $ // A Jetty HttpServer with the interface expected by JBoss' // J2EEDeployer... +//-- + package org.jboss.jetty; +//-- + import java.io.FileNotFoundException; import java.net.URL; import java.net.URLClassLoader; import javax.xml.parsers.DocumentBuilder; +import org.jboss.jetty.security.JBossUserRealm; +import org.jboss.jetty.session.DistributedHttpSessionManager; +import org.jboss.logging.Logger; import org.jboss.web.AbstractWebContainer.WebDescriptorParser; import org.jboss.web.WebApplication; -import org.jboss.logging.Logger; import org.mortbay.http.ContextLoader; import org.mortbay.http.HttpServer; import org.mortbay.http.handler.SecurityHandler; @@ -26,6 +32,8 @@ import org.mortbay.util.Resource; import org.w3c.dom.Element; +//-- + public class JBossWebApplicationContext extends WebApplicationContext @@ -112,12 +120,12 @@ "ejb-ref".equals(element)) { //_log.info("Don't moan : "+element); + } + else if ("distributable".equals(element)) + { + _distributed=true; + getServletHandler().setSessionManager(new DistributedHttpSessionManager(this)); } - // else if ("distributable".equals(element)) - // { - // _distributed=true; - // getServletHandler().setSessionManager(new DistributedSessionManager(this)); - // } // these are handled by Jetty else super.initWebXmlElement(element, node); 1.31 +10 -3 contrib/jetty/src/main/org/jboss/jetty/Jetty.java Index: Jetty.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/Jetty.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- Jetty.java2001/12/09 06:05:49 1.30 +++ Jetty.java2002/01/13 13:26:45 1.31 @@ -5,29 +5,36 @@ * See terms of license at gnu.org. */ -// $Id: Jetty.java,v 1.30 2001/12/09 06:05:49 user57 Exp $ +// $Id: Jetty.java,v 1.31 2002/01/13 13:26:45 jules_gosnell Exp $ // A Jetty HttpServer with the interface expected by JBoss' // J2EEDeployer... +//-- + package org.jboss.jetty; +//-- + import java.net.URL; import java.util.Hashtable; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.jboss.deployment.DeploymentException; +import org.jboss.jetty.xml.JettyResolver; +import org.jboss.logging.Logger; import org.jboss.web.AbstractWebContainer.WebDescriptorParser; import org.jboss.web.WebApplication; import org.mortbay.jetty.servlet.WebApplicationContext; -import org.jboss.logging.Logger; + +//-- /** * * * @author mailto:[EMAIL PROTECTED]";>Julian Gosnell * @author mailto:[EMAIL PROTECTED]";>Andreas Schaefer. - * @version $Revision: 1.30 $ + * @version $Revision: 1.31 $ * * Revisions: * 1.37 +9 -5 contrib/jetty/src/main/org/jboss/jetty/JettyService.java Index: JettyService.java =
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/ejb CoarseHttpSessionBean.java
User: jules_gosnell Date: 02/01/13 05:26:45 Modified:jetty/src/main/org/jboss/jetty/ejb CoarseHttpSessionBean.java Log: split src into dirs check in latest DistributedSession code Revision ChangesPath 1.4 +4 -4 contrib/jetty/src/main/org/jboss/jetty/ejb/CoarseHttpSessionBean.java Index: CoarseHttpSessionBean.java === RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/ejb/CoarseHttpSessionBean.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- CoarseHttpSessionBean.java2002/01/06 23:54:17 1.3 +++ CoarseHttpSessionBean.java2002/01/13 13:26:45 1.4 @@ -1,16 +1,16 @@ package org.jboss.jetty.ejb; -import java.util.Map; import java.util.Collection; import java.util.Iterator; +import java.util.Map; import javax.ejb.CreateException; import javax.ejb.EntityBean; import javax.ejb.EntityContext; import javax.ejb.RemoveException; import org.apache.log4j.Category; -import org.jboss.jetty.AbstractHttpSessionData; import org.jboss.jetty.interfaces.CoarseHttpSession; import org.jboss.jetty.interfaces.CoarseHttpSessionData; +import org.jboss.jetty.session.AbstractHttpSessionData; // @@ -18,11 +18,11 @@ * The Entity bean represents an HttpSession. * * @author [EMAIL PROTECTED] - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * * @ejb:bean name="jetty/CoarseHttpSession" type="CMP" jndi-name="ejb/jetty/CoarseHttpSession" primkey-field="id" * @ejb:pk class="java.lang.String" - * @ejb:data-object implements="org.jboss.jetty.AbstractHttpSessionData" + * @ejb:data-object implements="org.jboss.jetty.session.AbstractHttpSessionData" * * @jboss:table-name "Jetty_CoarseHttpSession" * @jboss:create-table "true" ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/xml JettyResolver.java
User: jules_gosnell Date: 02/01/13 05:26:46 Added: jetty/src/main/org/jboss/jetty/xml JettyResolver.java Log: split src into dirs check in latest DistributedSession code Revision ChangesPath 1.1 contrib/jetty/src/main/org/jboss/jetty/xml/JettyResolver.java Index: JettyResolver.java === /* * jBoss, the OpenSource EJB server * * Distributable under GPL license. * See terms of license at gnu.org. */ //-- package org.jboss.jetty.xml; //-- import java.io.IOException; import java.net.URL; import java.util.HashMap; import org.jboss.logging.Logger; import org.xml.sax.EntityResolver; import org.xml.sax.InputSource; //-- // I could use a Hashtable instead of HashMap, but the current usage // of this class (populate/write and then use/read) makes this // unecessary. If at a later date usage changes this should be // revisited. public class JettyResolver implements EntityResolver { protected Logger _log = Logger.getLogger(JettyResolver.class); protected HashMap _map=new HashMap(); public JettyResolver() { // nothing } public InputSource resolveEntity (String publicId, String systemId) { _log.info("resolving "+publicId+" : "+systemId); URL url=(URL)_map.get(publicId); if (url==null) { _log.warn("no resolution for "+publicId+" - are you using a supported JSDK version?"); } else { _log.info("resolved "+publicId+" : "+url); try { InputSource is=new InputSource(url.openConnection().getInputStream()); return is; } catch (IOException e) { _log.error("bad resolution "+publicId+" : "+url, e); } } return null; } public void put(String key, URL val) { _map.put(key, val); } } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/log JBossLogSink.java
User: jules_gosnell Date: 02/01/13 05:26:45 Added: jetty/src/main/org/jboss/jetty/log JBossLogSink.java Log: split src into dirs check in latest DistributedSession code Revision ChangesPath 1.1 contrib/jetty/src/main/org/jboss/jetty/log/JBossLogSink.java Index: JBossLogSink.java === /* * jBoss, the OpenSource EJB server * * Distributable under GPL license. * See terms of license at gnu.org. */ // $Id: JBossLogSink.java,v 1.1 2002/01/13 13:26:45 jules_gosnell Exp $ package org.jboss.jetty.log; //-- import java.util.HashMap; import org.jboss.logging.Logger; import org.mortbay.util.Code; import org.mortbay.util.Frame; import org.mortbay.util.Log; import org.mortbay.util.LogSink; //-- /* */ /** * This class bidges the API between Jetty and Log4J. * * @author mailto:";>Jules Gosnell * @version $Id: JBossLogSink.java,v 1.1 2002/01/13 13:26:45 jules_gosnell Exp $ * @since 1.0 * @see org.mortbay.util.LogSink */ public class JBossLogSink implements LogSink { Logger _log; boolean _started = false; HashMap _dispatch = new HashMap(); interface MyLogger {void log(String s);} public JBossLogSink() { // populate the dispatch map... _dispatch.put(Log.DEBUG, new MyLogger(){public void log(String s){_log.debug(s);}}); _dispatch.put(Log.EVENT, new MyLogger(){public void log(String s){_log.info(s);}}); _dispatch.put(Log.WARN, new MyLogger(){public void log(String s){_log.warn("WARNING: "+s);}}); _dispatch.put(Log.ASSERT, new MyLogger(){public void log(String s){_log.error(s);}}); _dispatch.put(Log.FAIL, new MyLogger(){public void log(String s){_log.error(s);}}); } // 'LifeCycle' interface public void initialize(Object log) throws InterruptedException { _log = (Logger) log; } public void start() { _started = true; } public void stop() throws InterruptedException { _started = false; //_log=null; } public void destroy() { _log = null; } public boolean isStarted() { return _started; } public boolean isDestroyed() { return (_log==null); } //-- // Options interface - NYI - probably never will be... //-- public void setOptions(String dateFormat, String timezone, boolean logTimeStamps, boolean logLabels, boolean logTags, boolean logStackSize, boolean logStackTrace, boolean logOneLine) { // is it possible to translate these into JBoss logging options...? } public void setOptions(String logOptions) { // setOptions((logOptions.indexOf(OPT_TIMESTAMP) >= 0), // (logOptions.indexOf(OPT_LABEL) >= 0), // (logOptions.indexOf(OPT_TAG) >= 0), // (logOptions.indexOf(OPT_STACKSIZE) >= 0), // (logOptions.indexOf(OPT_STACKTRACE) >= 0), // (logOptions.indexOf(OPT_ONELINE) >= 0)); } public String getOptions() { // return // (_logTimeStamps?"t":"")+ // (_logLabels?"L":"")+ // (_logTags?"T":"")+ // (_logStackSize?"s":"")+ // (_logStackTrace?"S":"")+ // (_logOneLine?"O":""); return ""; } /* */ /** Log a message. * This method formats the log information as a string and calls * log(String). It should only be specialized by a derived * implementation if the format of the logged messages is to be changed. * * @param tag Tag for type of log * @param msg The message * @param frame The frame that generated the message. * @param time The time stamp of the message. */ public void log(String tag, Object msg, Frame frame, long time) { boolean debugging=Code.debug(); MyLogger logger=(MyLogger)_dispatch.get(tag); if (logger!=null) { logger.log(msg+(debugging?", "+frame:"")); } else { log(msg+" - "+tag+(debugging?", "+frame:"")); _log.warn("JBossLogSink doesn't understand tag: '"+tag+"'"); } } /* -
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/util AbstractTimeOutManager.java NaiveTimeOutManager.java
User: jules_gosnell Date: 02/01/13 05:26:46 Added: jetty/src/main/org/jboss/jetty/util AbstractTimeOutManager.java NaiveTimeOutManager.java Log: split src into dirs check in latest DistributedSession code Revision ChangesPath 1.1 contrib/jetty/src/main/org/jboss/jetty/util/AbstractTimeOutManager.java Index: AbstractTimeOutManager.java === /* * jBoss, the OpenSource EJB server * * Distributable under GPL license. * See terms of license at gnu.org. */ // $Id: AbstractTimeOutManager.java,v 1.1 2002/01/13 13:26:46 jules_gosnell Exp $ //-- package org.jboss.jetty.util; //-- public interface AbstractTimeOutManager { public void register(Object object, long now, long timeRemaining); public void reregister(Object object, long now, long timeRemaining); public void deregister(Object object); public void start(); public void stop(); public interface TimeOutNotifier { public void timeOut(Object object); } } 1.1 contrib/jetty/src/main/org/jboss/jetty/util/NaiveTimeOutManager.java Index: NaiveTimeOutManager.java === /* * jBoss, the OpenSource EJB server * * Distributable under GPL license. * See terms of license at gnu.org. */ // $Id: NaiveTimeOutManager.java,v 1.1 2002/01/13 13:26:46 jules_gosnell Exp $ //-- package org.jboss.jetty.util; //-- import java.util.Iterator; import java.util.LinkedList; import java.util.List; //-- public class NaiveTimeOutManager implements AbstractTimeOutManager { final List_entries=new LinkedList(); final long_interval; final TimeOutNotifier _notifier; public NaiveTimeOutManager(long interval, TimeOutNotifier notifier) { _interval=interval; _notifier=notifier; } class Entry { final long _timeRegistered; final long _timeRemaining; final Object _object; Entry(long timeRegistered, long timeRemaining, Object object) { _timeRegistered=timeRegistered; _timeRemaining=timeRemaining; _object=object; } long getTimeRemaining(long now) { long timeSinceRegistered=now-_timeRegistered; return _timeRemaining-timeSinceRegistered; } void timeOut() { _notifier.timeOut(_object); } } public synchronized void register(Object object, long timeRegistered, long timeRemaining) { if (timeRemaining<0) return; // never timeout Entry entry=new Entry(timeRegistered, timeRemaining, object); synchronized (_entries) { _entries.add(entry); } } public synchronized void reregister(Object object, long timeRegistered, long timeRemaining) { // could be optimised - but this is simpler for the moment... deregister(object); register(object, timeRegistered, timeRemaining); } public synchronized void deregister(Object object) { Entry p=find(object); synchronized (_entries) { _entries.remove(p); } } // utils... Entry find(Object object) { Iterator i=_entries.iterator(); while (i.hasNext()) { Entry p=(Entry)i.next(); if (p._object==object) return p; } return null; } volatile boolean _loop=true; public synchronized void start() { new Thread() { public void run() { while (_loop) { try { sleep(_interval); sweep(); } catch (InterruptedException e) {} } } }.start(); } public synchronized void stop() { _loop=false; } void sweep() { List copy; synchronized (_entries) {copy=new LinkedList(_entries);}; long now=System.currentTimeMillis(); Iterator i=copy.iterator(); while (i.hasNext()) { Entry p=(Entry)i.next(); if (p.getTimeRemaining(now)<1) {
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/session AbstractHttpSessionData.java CoarseDistributedStore.java DistributedHttpSession.java DistributedHttpSessionManager.java
User: jules_gosnell Date: 02/01/13 05:26:45 Added: jetty/src/main/org/jboss/jetty/session AbstractHttpSessionData.java CoarseDistributedStore.java DistributedHttpSession.java DistributedHttpSessionManager.java Log: split src into dirs check in latest DistributedSession code Revision ChangesPath 1.1 contrib/jetty/src/main/org/jboss/jetty/session/AbstractHttpSessionData.java Index: AbstractHttpSessionData.java === /* * jBoss, the OpenSource EJB server * * Distributable under GPL license. * See terms of license at gnu.org. */ // $Id: AbstractHttpSessionData.java,v 1.1 2002/01/13 13:26:45 jules_gosnell Exp $ // package org.jboss.jetty.session; // import java.util.Map; // /** * An abstraction of the data used for the distributed store of HttpSessions * * @author mailto:jules_gosnell@@yahoo.com";>Jules Gosnell * @version 1.0 * @since 1.0 */ public interface AbstractHttpSessionData { // from javax.servlet.http.HttpSession public long getCreationTime(); public String getId(); public long getLastAccessedTime(); public int getMaxInactiveInterval(); public void setMaxInactiveInterval(int maxInactiveInterval); // extra accessors public Map getAttributes(); public void setAttributes(Map attributes); public void setId(String id); public void setCreationTime(long creationTime); public void setLastAccessedTime(long lastAccessedTime); // extra attributes public boolean getAttributesWerePassivated(); public void setAttributesWerePassivated(boolean attributesWerePassivated); } 1.1 contrib/jetty/src/main/org/jboss/jetty/session/CoarseDistributedStore.java Index: CoarseDistributedStore.java === /* * jBoss, the OpenSource EJB server * * Distributable under GPL license. * See terms of license at gnu.org. */ // $Id: CoarseDistributedStore.java,v 1.1 2002/01/13 13:26:45 jules_gosnell Exp $ // package org.jboss.jetty.session; // import java.rmi.RemoteException; import javax.ejb.CreateException; import javax.ejb.FinderException; import javax.ejb.RemoveException; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.rmi.PortableRemoteObject; import org.jboss.jetty.interfaces.CoarseHttpSession; import org.jboss.jetty.interfaces.CoarseHttpSessionData; import org.jboss.jetty.interfaces.CoarseHttpSessionHome; import org.jboss.logging.Logger; // /** * An abstraction of a manager for the distributed store of HttpSessions * * @author mailto:jules_gosnell@@yahoo.com";>Jules Gosnell * @version 1.0 * @since 1.0 */ interface AbstractStore { public String nextId(); public AbstractHttpSessionData make(); public AbstractHttpSessionData get(String id); public void set(String id, AbstractHttpSessionData data); } // /** * An implementation of a manager of a CMP based distributed store of HttpSessions * * @author mailto:jules_gosnell@@yahoo.com";>Jules Gosnell * @version 1.0 * @since 1.0 * @see AbstractStore */ class EJBDistributedStore implements AbstractStore { Logger_log = Logger.getLogger(getClass().getName()); InitialContext_jndiContext; CoarseHttpSessionHome _home; String_name="ejb/jetty/CoarseHttpSession"; // TODO - parameterise EJBDistributedStore() { try { _jndiContext=new InitialContext(); Object o=_jndiContext.lookup(_name); _home=(CoarseHttpSessionHome)PortableRemoteObject.narrow(o, CoarseHttpSessionHome.class); _log.info("Support for EJB-based Distributed HttpSessions loaded: "+_home); } catch (NamingException e) { _log.warn("WARNING: Support for EJB-based Distributed HttpSessions does not appear to be loaded"); } } /** * create a new HttpSessionData instance, of the correct type for * this distributed store * */ public AbstractHttpSessionData make() { return new CoarseHttpSessionData(); } /** * retrieve HttpSessionData from a distributed store * * @param id a String value */ public AbstractHttpSessionData get(String id) { AbstractHttpSessionData data=null; try {
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/log - New directory
User: jules_gosnell Date: 02/01/13 05:07:49 contrib/jetty/src/main/org/jboss/jetty/log - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/session - New directory
User: jules_gosnell Date: 02/01/13 05:07:49 contrib/jetty/src/main/org/jboss/jetty/session - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/util - New directory
User: jules_gosnell Date: 02/01/13 05:07:49 contrib/jetty/src/main/org/jboss/jetty/util - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/security - New directory
User: jules_gosnell Date: 02/01/13 05:07:49 contrib/jetty/src/main/org/jboss/jetty/security - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/jetty/src/main/org/jboss/jetty/xml - New directory
User: jules_gosnell Date: 02/01/13 05:07:50 contrib/jetty/src/main/org/jboss/jetty/xml - New directory ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbossmx/src/main/org/jboss/ha/framework/server DistributedReplicantManagerImplMBean.java
User: slaboure Date: 02/01/13 03:28:53 Added: src/main/org/jboss/ha/framework/server DistributedReplicantManagerImplMBean.java Log: oups... Revision ChangesPath 1.1 jbossmx/src/main/org/jboss/ha/framework/server/DistributedReplicantManagerImplMBean.java Index: DistributedReplicantManagerImplMBean.java === /* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.ha.framework.server; /** * Used as a static MBean interface for the DRM service * * @author mailto:[EMAIL PROTECTED]";>Sacha Labourey. * @version $Revision: 1.1 $ * * Revisions: * * 12 janvier 2002 Sacha Labourey: * * First implementation * */ public interface DistributedReplicantManagerImplMBean extends org.jboss.ha.framework.interfaces.DistributedReplicantManager { public String listContent () throws Exception; public String listXmlContent () throws Exception; } ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] DistributedReplicantManagerImplMBean
Oups Sorry about it. > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Dain > Sundstrom > Envoyé : samedi, 12 janvier 2002 22:27 > À : '[EMAIL PROTECTED]' > Objet : [JBoss-dev] DistributedReplicantManagerImplMBean > > > Did someone forget to check in DistributedReplicantManagerImplMBean? > > -dain > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: newsite/src/docs xmbean.dtd
User: juhalindfors Date: 02/01/13 03:28:51 Added: src/docs xmbean.dtd Log: XMBean DTD Revision ChangesPath 1.1 newsite/src/docs/xmbean.dtd Index: xmbean.dtd === ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AUTOMATED] JBoss compilation failed
= ==THIS IS AN AUTOMATED EMAIL - SEE http://www.lubega.com FOR DETAILS= = HERE ARE THE LAST 50 LINES OF THE LOG FILE _module-admin-most: [copy] Copying 12 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/bin [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin [copy] Copying 3 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client [copy] Copying 2 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client/lib [copy] Copying 3 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client/lib [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/components [copy] Copying 2 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/components [execmodules] == == Executing 'most' in module 'cluster'... == _buildmagic:init: _buildmagic:init:child: _buildmagic:init:local-properties: _buildmagic:init:buildlog: configure: _buildmagic:init:show-environment: init: compile-classes: [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/cluster/output/classes [javac] Compiling 59 source files to /disk/orig/home/lubega/jbossro/jboss-all/cluster/output/classes /disk/orig/home/lubega/jbossro/jboss-all/cluster/src/main/org/jboss/ha/framework/server/DistributedReplicantManagerImpl.java:50: cannot resolve symbol symbol : class DistributedReplicantManagerImplMBean location: class org.jboss.ha.framework.server.DistributedReplicantManagerImpl implements DistributedReplicantManagerImplMBean, ^ /disk/orig/home/lubega/jbossro/jboss-all/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java:307: incompatible types found : org.jboss.ha.framework.server.DistributedReplicantManagerImpl required: org.jboss.ha.framework.interfaces.DistributedReplicantManager return replicantManager; ^ 2 errors BUILD FAILED /disk/orig/home/lubega/jbossro/jboss-all/cluster/build.xml:275: Compile failed, messages should have been provided. Total time: 1 minute 58 seconds ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AUTOMATED] JBoss compilation failed
= ==THIS IS AN AUTOMATED EMAIL - SEE http://www.lubega.com FOR DETAILS= = HERE ARE THE LAST 50 LINES OF THE LOG FILE _module-admin-most: [copy] Copying 12 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/bin [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin [copy] Copying 3 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client [copy] Copying 2 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client/lib [copy] Copying 3 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client/lib [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/components [copy] Copying 2 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/components [execmodules] == == Executing 'most' in module 'cluster'... == _buildmagic:init: _buildmagic:init:child: _buildmagic:init:local-properties: _buildmagic:init:buildlog: configure: _buildmagic:init:show-environment: init: compile-classes: [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/cluster/output/classes [javac] Compiling 59 source files to /disk/orig/home/lubega/jbossro/jboss-all/cluster/output/classes /disk/orig/home/lubega/jbossro/jboss-all/cluster/src/main/org/jboss/ha/framework/server/DistributedReplicantManagerImpl.java:50: cannot resolve symbol symbol : class DistributedReplicantManagerImplMBean location: class org.jboss.ha.framework.server.DistributedReplicantManagerImpl implements DistributedReplicantManagerImplMBean, ^ /disk/orig/home/lubega/jbossro/jboss-all/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java:307: incompatible types found : org.jboss.ha.framework.server.DistributedReplicantManagerImpl required: org.jboss.ha.framework.interfaces.DistributedReplicantManager return replicantManager; ^ 2 errors BUILD FAILED /disk/orig/home/lubega/jbossro/jboss-all/cluster/build.xml:275: Compile failed, messages should have been provided. Total time: 2 minutes 6 seconds ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AUTOMATED] JBoss compilation failed
= ==THIS IS AN AUTOMATED EMAIL - SEE http://www.lubega.com FOR DETAILS= = HERE ARE THE LAST 50 LINES OF THE LOG FILE _module-admin-most: [copy] Copying 12 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/bin [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin [copy] Copying 3 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client [copy] Copying 2 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client/lib [copy] Copying 3 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/client/lib [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/components [copy] Copying 2 files to /disk/orig/home/lubega/jbossro/jboss-all/build/output/testbuild/admin/components [execmodules] == == Executing 'most' in module 'cluster'... == _buildmagic:init: _buildmagic:init:child: _buildmagic:init:local-properties: _buildmagic:init:buildlog: configure: _buildmagic:init:show-environment: init: compile-classes: [mkdir] Created dir: /disk/orig/home/lubega/jbossro/jboss-all/cluster/output/classes [javac] Compiling 59 source files to /disk/orig/home/lubega/jbossro/jboss-all/cluster/output/classes /disk/orig/home/lubega/jbossro/jboss-all/cluster/src/main/org/jboss/ha/framework/server/DistributedReplicantManagerImpl.java:50: cannot resolve symbol symbol : class DistributedReplicantManagerImplMBean location: class org.jboss.ha.framework.server.DistributedReplicantManagerImpl implements DistributedReplicantManagerImplMBean, ^ /disk/orig/home/lubega/jbossro/jboss-all/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java:307: incompatible types found : org.jboss.ha.framework.server.DistributedReplicantManagerImpl required: org.jboss.ha.framework.interfaces.DistributedReplicantManager return replicantManager; ^ 2 errors BUILD FAILED /disk/orig/home/lubega/jbossro/jboss-all/cluster/build.xml:275: Compile failed, messages should have been provided. Total time: 2 minutes 11 seconds ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development