[JBoss-dev] CVS update: jbosstest/src/resources/perf roles.properties users.properties

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 00:25:40

  Added:   src/resources/perf roles.properties users.properties
  Log:
  Add security overhead performance tests
  
  Revision  ChangesPath
  1.1  jbosstest/src/resources/perf/roles.properties
  
  Index: roles.properties
  ===
  jduke=TheDuke
  
  
  1.1  jbosstest/src/resources/perf/users.properties
  
  Index: users.properties
  ===
  jduke=theduke
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/resources/perf/META-INF secure-ejb-jar.xml secure-jboss.xml ejb-jar.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 00:25:40

  Modified:src/resources/perf/META-INF ejb-jar.xml
  Added:   src/resources/perf/META-INF secure-ejb-jar.xml
secure-jboss.xml
  Log:
  Add security overhead performance tests
  
  Revision  ChangesPath
  1.5   +8 -1  jbosstest/src/resources/perf/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/resources/perf/META-INF/ejb-jar.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ejb-jar.xml   2001/07/13 17:15:23 1.4
  +++ ejb-jar.xml   2001/07/14 07:25:40 1.5
  @@ -1,4 +1,4 @@
  -
  +
   
   
  Performance test
  @@ -20,6 +20,13 @@
org.jboss.test.perf.ejb.ClientSessionBean
Stateful
Container
  + 
  +ejb/Session
  +Session
  +org.jboss.test.perf.interfaces.SessionHome
  +org.jboss.test.perf.interfaces.Session
  +Session
  + 
 
 
Probe
  
  
  
  1.1  jbosstest/src/resources/perf/META-INF/secure-ejb-jar.xml
  
  Index: secure-ejb-jar.xml
  ===
  
  
  
  
 Secure Performance test
 Secure PerfTest
  
 

   Session
   org.jboss.test.perf.interfaces.SessionHome
   org.jboss.test.perf.interfaces.Session
   org.jboss.test.perf.ejb.SessionBean
   Stateful
   Bean


   ClientSession
   org.jboss.test.perf.interfaces.SessionHome
   org.jboss.test.perf.interfaces.Session
   org.jboss.test.perf.ejb.ClientSessionBean
   Stateful
   Container
   
  ejb/Session
  Session
  org.jboss.test.perf.interfaces.SessionHome
  org.jboss.test.perf.interfaces.Session
  Session
   


   Probe
   org.jboss.test.perf.interfaces.ProbeHome
   org.jboss.test.perf.interfaces.Probe
   org.jboss.test.perf.ejb.ProbeBean
   Stateless
   Bean


   ProbeCMT
   org.jboss.test.perf.interfaces.ProbeHome
   org.jboss.test.perf.interfaces.Probe
   org.jboss.test.perf.ejb.ProbeBean
   Stateless
   Container

   
  Transacted stateless session bean
  TxSession
  org.jboss.test.perf.interfaces.TxSessionHome
  org.jboss.test.perf.interfaces.TxSession
  org.jboss.test.perf.ejb.TxSessionBean
  Stateless
  Container
  
  

   Entity
   org.jboss.test.perf.interfaces.EntityHome
   org.jboss.test.perf.interfaces.Entity
   org.jboss.test.perf.ejb.EntityBean
   Container
   org.jboss.test.perf.interfaces.EntityPK
   True
   
  the_key
   
   
  the_value
   

  

   Entity2
   org.jboss.test.perf.interfaces.Entity2Home
   org.jboss.test.perf.interfaces.Entity
   org.jboss.test.perf.ejb.Entity2Bean
   Container
   org.jboss.test.perf.interfaces.Entity2PK
   True
   
  key1
   
   
  key2
   
   
  key3
   
   
  the_value
   

  
 
  
  
   
  TheDuke
   
  
   
  TheDuke
  
 Session
 *
  
  
 ClientSession
 *
  
  
 Probe
 *
  
  
 ProbeCMT
 *
  
  
 TxSession
 *
  
  
 Entity
 *
  
  
 Entity2
 *
  
   
  
  
  
  TxSession
  requiredToSupports
  
  
  TxSession
  txRequired
  
  
  TxSession
   requiredToMandatory
  
  
  TxSession
  requiredToRequiresNew
  
  Required
  
  
  
  
  TxSession
  txSupports
  
  Supports
  
  
  
  
  TxSession
  txMandatory
  
  Mandatory
  
   

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/test TestPerf.java TestProbe.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 00:34:08

  Added:   src/main/org/jboss/test/perf/test TestPerf.java
  Removed: src/main/org/jboss/test/perf/test TestProbe.java
  Log:
  Renamed TestProbe to TestPerf
  
  Revision  ChangesPath
  1.1  jbosstest/src/main/org/jboss/test/perf/test/TestPerf.java
  
  Index: TestPerf.java
  ===
  package org.jboss.test.perf.test;
  
  import java.io.IOException;
  import java.rmi.RemoteException;
  import javax.ejb.CreateException;
  import javax.naming.InitialContext;
  import javax.naming.NamingException;
  import javax.rmi.PortableRemoteObject;
  
  import junit.framework.Test;
  import junit.framework.TestCase;
  import junit.framework.TestSuite;
  
  import org.jboss.test.perf.interfaces.Entity;
  import org.jboss.test.perf.interfaces.EntityPK;
  import org.jboss.test.perf.interfaces.Entity2PK;
  import org.jboss.test.perf.interfaces.EntityHome;
  import org.jboss.test.perf.interfaces.Entity2Home;
  import org.jboss.test.perf.interfaces.Probe;
  import org.jboss.test.perf.interfaces.ProbeHome;
  import org.jboss.test.perf.interfaces.Session;
  import org.jboss.test.perf.interfaces.SessionHome;
  import org.jboss.test.perf.interfaces.TxSession;
  import org.jboss.test.perf.interfaces.TxSessionHome;
  
  /** Test of EJB call invocation overhead.
   
   @author [EMAIL PROTECTED]
   @version $Revision: 1.1 $
   */
  public class TestPerf extends junit.framework.TestCase
  {
 static int N = 1000;
 
 public TestPerf(String name)
 {
super(name);
 }
 
 public void testClientSession() throws Exception
 {
System.out.println("+++ testClientSession()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("ClientSession");
obj = PortableRemoteObject.narrow(obj, SessionHome.class);
SessionHome home = (SessionHome) obj;
System.out.println("Found SessionHome @ jndiName=ClientSession");
Session bean = home.create("Entity");
System.out.println("Created ClientSession");
try
{
   bean.create(0, 100);
}
catch(javax.ejb.CreateException e)
{
}
long start = System.currentTimeMillis();
bean.read(0);
bean.read(0, 100);
bean.write(0);
bean.write(0, 100);
bean.remove(0, 100);
long end = System.currentTimeMillis();
long elapsed = end - start;
System.out.println("Elapsed time = "+(elapsed / N));
 }
  
 public void testTimings() throws Exception
 {
System.out.println("+++ testTimings()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("Probe");
obj = PortableRemoteObject.narrow(obj, ProbeHome.class);
ProbeHome home = (ProbeHome) obj;
System.out.println("Found ProbeHome @ jndiName=Probe");
Probe bean = home.create();
System.out.println("Created Probe");
warmup(bean);
noop(bean);
ping(bean);
echo(bean);
 }
  
 public void testTimingsCMT() throws Exception
 {
System.out.println("+++ testTimingsCMT()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("ProbeCMT");
obj = PortableRemoteObject.narrow(obj, ProbeHome.class);
ProbeHome home = (ProbeHome) obj;
System.out.println("Found ProbeHome @ jndiName=ProbeCMT");
Probe bean = home.create();
System.out.println("Created ProbeCMT");
warmup(bean);
noop(bean);
ping(bean);
echo(bean);
 }
  
 public void testTxTimings() throws Exception
 {
System.out.println("+++ testTxTimings()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("TxSession");
obj = PortableRemoteObject.narrow(obj, TxSessionHome.class);
TxSessionHome home = (TxSessionHome) obj;
System.out.println("Found TxSession @ jndiName=TxSession");
TxSession bean = home.create();
System.out.println("Created TxSession");
txRequired(bean);
txRequiresNew(bean);
txSupports(bean);
txNotSupported(bean);
requiredToSupports(bean);
requiredToMandatory(bean);
requiredToRequiresNew(bean);
 }
 public void testFindByPrimaryKey() throws Exception
 {
System.out.println("+++ testFindByPrimaryKey()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("Entity");
obj = PortableRemoteObject.narrow(obj, EntityHome.class);
EntityHome home = (EntityHome) obj;
System.out.println("Found EntityHome @ jndiName=Entity");
EntityPK key = new EntityPK(1);
Entity bean = null;
  
System.out.println("Running with 1 instance...");
  

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/test Setup.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 00:34:44

  Added:   src/main/org/jboss/test/perf/test Setup.java
  Log:
  Add security overhead performance tests
  
  Revision  ChangesPath
  1.1  jbosstest/src/main/org/jboss/test/perf/test/Setup.java
  
  Index: Setup.java
  ===
  package org.jboss.test.perf.test;
  
  import java.io.IOException;
  import java.rmi.RemoteException;
  import javax.ejb.CreateException;
  import javax.naming.InitialContext;
  import javax.naming.NamingException;
  import javax.rmi.PortableRemoteObject;
  import javax.security.auth.login.LoginContext;
  
  import junit.extensions.TestSetup;
  import junit.framework.TestSuite;
  
  import org.jboss.test.perf.interfaces.Entity;
  import org.jboss.test.perf.interfaces.EntityPK;
  import org.jboss.test.perf.interfaces.Entity2PK;
  import org.jboss.test.perf.interfaces.EntityHome;
  import org.jboss.test.perf.interfaces.Entity2Home;
  
  import org.jboss.test.util.Deploy;
  
  /** Setup utility class.
   
   @author [EMAIL PROTECTED]
   @version $Revision: 1.1 $
   */
  public class Setup extends TestSetup 
  {
 LoginContext lc = null;
 String filename;
 boolean isSecure;
  
 Setup(TestSuite suite, String filename, boolean isSecure)
 {
super(suite);
this.filename = filename;
this.isSecure = isSecure;
 }
  
 protected void setUp() throws Exception
 {
System.out.println("+++ Performing the TestSuite setup");
if( isSecure )
   login();
Deploy.deploy(filename);
createEntityBeans(1000);
createEntity2Beans(1000);
 }
 protected void tearDown() throws Exception
 {
System.out.println("+++ Performing the TestSuite tear down");
removeEntityBeans(1000);
removeEntity2Beans(1000);
Deploy.undeploy(filename);
if( isSecure )
   logout();
 }
  
 private void createEntityBeans(int max) throws Exception
 {
InitialContext jndiContext = new InitialContext();
String jndiName = isSecure ? "secure/perf/Entity" : "Entity";
Object obj = jndiContext.lookup(jndiName);
obj = PortableRemoteObject.narrow(obj, EntityHome.class);
EntityHome home = (EntityHome) obj;
System.out.println("Creating "+max+" Entity beans");
for(int n = 0; n < max; n ++)
   home.create(n, n);
 }
 private void removeEntityBeans(int max) throws Exception
 {
InitialContext jndiContext = new InitialContext();
String jndiName = isSecure ? "secure/perf/Entity" : "Entity";
Object obj = jndiContext.lookup(jndiName);
obj = PortableRemoteObject.narrow(obj, EntityHome.class);
EntityHome home = (EntityHome) obj;
System.out.println("Removing "+max+" Entity beans");
for(int n = 0; n < max; n ++)
   home.remove(new EntityPK(n));
 }
 private void createEntity2Beans(int max) throws Exception
 {
InitialContext jndiContext = new InitialContext();
String jndiName = isSecure ? "secure/perf/Entity2" : "Entity2";
Object obj = jndiContext.lookup(jndiName);
obj = PortableRemoteObject.narrow(obj, Entity2Home.class);
Entity2Home home = (Entity2Home) obj;
System.out.println("Creating "+max+" Entity2 beans");
for(int n = 0; n < max; n ++)
   home.create(n, "String"+n, new Double(n), n);
 }
 private void removeEntity2Beans(int max) throws Exception
 {
InitialContext jndiContext = new InitialContext();
String jndiName = isSecure ? "secure/perf/Entity2" : "Entity2";
Object obj = jndiContext.lookup(jndiName);
obj = PortableRemoteObject.narrow(obj, Entity2Home.class);
Entity2Home home = (Entity2Home) obj;
System.out.println("Removing "+max+" Entity2 beans");
for(int n = 0; n < max; n ++)
   home.remove(new Entity2PK(n, "String"+n, new Double(n)));
 }
  
 private void login() throws Exception
 {
String username = "jduke";
char[] password = "theduke".toCharArray();
AppCallbackHandler handler = new AppCallbackHandler(username, password);
System.out.println("Creating LoginContext(other)");
lc = new LoginContext("spec-test", handler);
lc.login();
System.out.println("Created LoginContext, subject="+lc.getSubject());
 }
 private void logout()
 {
try
{
   lc.logout();
}
catch(Exception e)
{
}
 }
  }
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/test TestSecurePerf.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 00:36:20

  Added:   src/main/org/jboss/test/perf/test TestSecurePerf.java
  Log:
  The security performance testsuite
  
  Revision  ChangesPath
  1.1  jbosstest/src/main/org/jboss/test/perf/test/TestSecurePerf.java
  
  Index: TestSecurePerf.java
  ===
  package org.jboss.test.perf.test;
  
  import java.io.IOException;
  import java.rmi.RemoteException;
  import javax.ejb.CreateException;
  import javax.naming.InitialContext;
  import javax.naming.NamingException;
  import javax.rmi.PortableRemoteObject;
  import javax.security.auth.login.LoginContext;
  
  import junit.framework.Test;
  import junit.framework.TestCase;
  import junit.framework.TestSuite;
  
  import org.jboss.test.perf.interfaces.Entity;
  import org.jboss.test.perf.interfaces.EntityPK;
  import org.jboss.test.perf.interfaces.Entity2PK;
  import org.jboss.test.perf.interfaces.EntityHome;
  import org.jboss.test.perf.interfaces.Entity2Home;
  import org.jboss.test.perf.interfaces.Probe;
  import org.jboss.test.perf.interfaces.ProbeHome;
  import org.jboss.test.perf.interfaces.Session;
  import org.jboss.test.perf.interfaces.SessionHome;
  import org.jboss.test.perf.interfaces.TxSession;
  import org.jboss.test.perf.interfaces.TxSessionHome;
  
  /** Test of EJB call invocation overhead in the presence of EJB security.
   
   @author [EMAIL PROTECTED]
   @version $Revision: 1.1 $
   */
  public class TestSecurePerf extends junit.framework.TestCase
  {
 static int N = 1000;
 static LoginContext lc = null;
  
 public TestSecurePerf(String name)
 {
super(name);
 }
  
 public void testClientSession() throws Exception
 {
System.out.println("+++ testClientSession()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("secure/perf/ClientSession");
obj = PortableRemoteObject.narrow(obj, SessionHome.class);
SessionHome home = (SessionHome) obj;
System.out.println("Found SessionHome @ jndiName=ClientSession");
Session bean = home.create("secure/perf/Entity");
System.out.println("Created ClientSession");
try
{
   bean.create(0, 100);
}
catch(javax.ejb.CreateException e)
{
}
long start = System.currentTimeMillis();
bean.read(0);
bean.read(0, 100);
bean.write(0);
bean.write(0, 100);
bean.remove(0, 100);
long end = System.currentTimeMillis();
long elapsed = end - start;
System.out.println("Elapsed time = "+(elapsed / N));
 }
  
 public void testTimings() throws Exception
 {
System.out.println("+++ testTimings()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("secure/perf/Probe");
obj = PortableRemoteObject.narrow(obj, ProbeHome.class);
ProbeHome home = (ProbeHome) obj;
System.out.println("Found ProbeHome @ jndiName=Probe");
Probe bean = home.create();
System.out.println("Created Probe");
warmup(bean);
noop(bean);
ping(bean);
echo(bean);
 }
  
 public void testTimingsCMT() throws Exception
 {
System.out.println("+++ testTimingsCMT()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("secure/perf/ProbeCMT");
obj = PortableRemoteObject.narrow(obj, ProbeHome.class);
ProbeHome home = (ProbeHome) obj;
System.out.println("Found ProbeHome @ jndiName=ProbeCMT");
Probe bean = home.create();
System.out.println("Created ProbeCMT");
warmup(bean);
noop(bean);
ping(bean);
echo(bean);
 }
  
 public void testTxTimings() throws Exception
 {
System.out.println("+++ testTxTimings()");
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("secure/perf/TxSession");
obj = PortableRemoteObject.narrow(obj, TxSessionHome.class);
TxSessionHome home = (TxSessionHome) obj;
System.out.println("Found TxSession @ jndiName=TxSession");
TxSession bean = home.create();
System.out.println("Created TxSession");
txRequired(bean);
txRequiresNew(bean);
txSupports(bean);
txNotSupported(bean);
requiredToSupports(bean);
requiredToMandatory(bean);
requiredToRequiresNew(bean);
 }
 public void testFindByPrimaryKey() throws Exception
 {
System.out.println("+++ testFindByPrimaryKey()");
  
InitialContext jndiContext = new InitialContext();
Object obj = jndiContext.lookup("secure/perf/Entity");
obj = PortableRemoteObject.narrow(obj, EntityHome.class);
EntityHome home = (EntityHome) obj;
System.out.println("Found EntityHome

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/ejb ClientSessionBean.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 00:34:44

  Modified:src/main/org/jboss/test/perf/ejb ClientSessionBean.java
  Log:
  Add security overhead performance tests
  
  Revision  ChangesPath
  1.2   +1 -1  
jbosstest/src/main/org/jboss/test/perf/ejb/ClientSessionBean.java
  
  Index: ClientSessionBean.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/ejb/ClientSessionBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClientSessionBean.java2001/07/13 17:14:33 1.1
  +++ ClientSessionBean.java2001/07/14 07:34:44 1.2
  @@ -138,7 +138,7 @@
  private Session lookupSession() throws Exception
  {
 Context context = new InitialContext();
  -  Object ref = context.lookup("Session");
  +  Object ref = context.lookup("java:comp/env/ejb/Session");
 SessionHome home = (SessionHome) PortableRemoteObject.narrow(ref, 
SessionHome.class);
 Session bean = home.create(entityName);
 return bean;
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] [ jboss-Bugs-441291 ] jbossmq - message-selector empty

2001-07-14 Thread noreply

Bugs item #441291, was opened at 2001-07-14 07:18
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=441291&group_id=22866

Category: JBossMQ
Group: v2.2 (stable)
Status: Open
Resolution: None
Priority: 1
Submitted By: Vincent Harcq (vharcq)
Assigned to: Nobody/Anonymous (nobody)
Summary: jbossmq - message-selector empty

Initial Comment:

and



doesn't not operate the same.  The second will find no 
messages.  

It is maybe normal for the spec but for debugging it 
is quite ... (can't find politically correct word) ;)


--

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=441291&group_id=22866

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/security/ejb EntityBeanImpl.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 09:02:43

  Modified:src/main/org/jboss/test/security/ejb EntityBeanImpl.java
  Log:
  Move security and perf AppCallbackHandler.java to util and import it
  from there
  
  Revision  ChangesPath
  1.4   +116 -68   
jbosstest/src/main/org/jboss/test/security/ejb/EntityBeanImpl.java
  
  Index: EntityBeanImpl.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/ejb/EntityBeanImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EntityBeanImpl.java   2001/07/11 08:30:34 1.3
  +++ EntityBeanImpl.java   2001/07/14 16:02:43 1.4
  @@ -1,68 +1,116 @@
  -package org.jboss.test.security.ejb;
  -
  -import java.rmi.RemoteException;
  -import java.security.Principal;
  -import javax.ejb.*;
  -
  -/** A BMP entity bean that creates beans on the fly with
  -a key equal to that passed to findByPrimaryKey. Obviously
  -not a real entity bean. It is used to test Principal propagation
  -using the echo method. 
  -
  -@author [EMAIL PROTECTED]
  -@version $Revision: 1.3 $
  -*/
  -public class EntityBeanImpl implements EntityBean
  -{
  -private String key;
  -private EntityContext context;
  -
  -public void ejbActivate()
  -{
  -System.out.println("EntityBean.ejbActivate() called");
  -}
  -
  -public void ejbPassivate()
  -{
  -System.out.println("EntityBean.ejbPassivate() called");
  -}
  -
  -public void ejbRemove()
  -{
  -System.out.println("EntityBean.ejbRemove() called");
  -}
  -public void ejbLoad()
  -{
  -System.out.println("EntityBean.ejbLoad() called");
  -key = (String) context.getPrimaryKey();
  -}
  -public void ejbStore()
  -{
  -System.out.println("EntityBean.ejbStore() called");
  -}
  -
  -public void setEntityContext(EntityContext context)
  -{
  -this.context = context;
  -}
  -public void unsetEntityContext()
  -{
  -this.context = null;
  -}
  -
  -public String echo(String arg)
  -{
  -System.out.println("EntityBean.echo, arg="+arg);
  -Principal p = context.getCallerPrincipal();
  -boolean isInternalRole = context.isCallerInRole("InternalRole");
  -System.out.println("EntityBean.echo, callerPrincipal="+p);
  -System.out.println("EntityBean.echo, 
isCallerInRole('InternalRole')="+isInternalRole);
  -return p.getName();
  -}
  -
  -public String ejbFindByPrimaryKey(String key)
  -{
  -System.out.println("EntityBean.ejbFindByPrimaryKey, key="+key);
  -return key;
  -}
  -}
  +package org.jboss.test.security.ejb;
  +
  +import java.lang.reflect.Method;
  +import java.lang.reflect.InvocationTargetException;
  +import java.rmi.RemoteException;
  +import java.security.Principal;
  +import javax.ejb.EJBException;
  +import javax.ejb.EntityBean;
  +import javax.ejb.EntityContext;
  +import javax.naming.InitialContext;
  +import javax.naming.NamingException;
  +import javax.security.auth.Subject;
  +
  +/** A BMP entity bean that creates beans on the fly with
  +a key equal to that passed to findByPrimaryKey. Obviously
  +not a real entity bean. It is used to test Principal propagation
  +using the echo method. 
  +
  +@author [EMAIL PROTECTED]
  +@version $Revision: 1.4 $
  +*/
  +public class EntityBeanImpl implements EntityBean
  +{
  +private String key;
  +private EntityContext context;
  +
  +public void ejbActivate()
  +{
  +System.out.println("EntityBean.ejbActivate() called");
  +}
  +
  +public void ejbPassivate()
  +{
  +System.out.println("EntityBean.ejbPassivate() called");
  +}
  +
  +public void ejbRemove()
  +{
  +System.out.println("EntityBean.ejbRemove() called");
  +}
  +public void ejbLoad()
  +{
  +System.out.println("EntityBean.ejbLoad() called");
  +key = (String) context.getPrimaryKey();
  +}
  +public void ejbStore()
  +{
  +System.out.println("EntityBean.ejbStore() called");
  +}
  +
  +public void setEntityContext(EntityContext context)
  +{
  +this.context = context;
  +}
  +public void unsetEntityContext()
  +{
  +this.context = null;
  +}
  +
  +public String echo(String arg)
  +{
  +System.out.println("EntityBean.echo, arg="+arg);
  +Principal p = context.getCallerPrincipal();
  +boolean isInternalRole = context.isCallerInRole("InternalRole");
  +System.out.println("EntityBean.echo, callerPrincipal="+p);
  +System.out.println("EntityBean.echo, 
isCallerInRole('InternalRole')="+isInternalRole);
  +// Check the java:comp/env/security/security-domain
  +try
  +{
  +   InitialContext ctx = new InitialContext();
  +   

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/security/test StatelessSessionClient.java TestEJBSpec.java TestProjRepository.java TestSecurityProxy.java AppCallbackHandler.java Deploy.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 09:02:43

  Modified:src/main/org/jboss/test/security/test
StatelessSessionClient.java TestEJBSpec.java
TestProjRepository.java TestSecurityProxy.java
  Removed: src/main/org/jboss/test/security/test
AppCallbackHandler.java Deploy.java
  Log:
  Move security and perf AppCallbackHandler.java to util and import it
  from there
  
  Revision  ChangesPath
  1.2   +1 -0  
jbosstest/src/main/org/jboss/test/security/test/StatelessSessionClient.java
  
  Index: StatelessSessionClient.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/StatelessSessionClient.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StatelessSessionClient.java   2001/03/05 10:11:07 1.1
  +++ StatelessSessionClient.java   2001/07/14 16:02:43 1.2
  @@ -12,11 +12,12 @@
   
   import org.jboss.test.security.interfaces.StatelessSession;
   import org.jboss.test.security.interfaces.StatelessSessionHome;
  +import org.jboss.test.util.AppCallbackHandler;
   
   /** Run with -Djava.security.auth.login.config=url_to_jaas_login_conf
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.1 $
  +@version $Revision: 1.2 $
   */
   public class StatelessSessionClient
   {
  
  
  
  1.10  +2 -1  jbosstest/src/main/org/jboss/test/security/test/TestEJBSpec.java
  
  Index: TestEJBSpec.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/TestEJBSpec.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TestEJBSpec.java  2001/07/10 02:34:05 1.9
  +++ TestEJBSpec.java  2001/07/14 16:02:43 1.10
  @@ -23,13 +23,14 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   
  +import org.jboss.test.util.AppCallbackHandler;
   import org.jboss.test.util.Deploy;
   
   /** Test of EJB spec conformace using the security-spec.jar
deployment unit. These test the basic role based access model.

@author [EMAIL PROTECTED]
  - @version $Revision: 1.9 $
  + @version $Revision: 1.10 $
*/
   public class TestEJBSpec
  extends TestCase
  
  
  
  1.4   +3 -3  
jbosstest/src/main/org/jboss/test/security/test/TestProjRepository.java
  
  Index: TestProjRepository.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/TestProjRepository.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestProjRepository.java   2001/07/10 02:34:05 1.3
  +++ TestProjRepository.java   2001/07/14 16:02:43 1.4
  @@ -18,12 +18,12 @@
   import org.apache.log4j.PatternLayout;
   import org.apache.log4j.Priority;
   
  -import org.jboss.test.util.Deploy;
  -
   import org.jboss.security.SimplePrincipal;
   import org.jboss.test.security.interfaces.ProjRepository;
   import org.jboss.test.security.interfaces.ProjRepositoryHome;
   import org.jboss.test.security.ejb.project.support.DefaultName;
  +import org.jboss.test.util.AppCallbackHandler;
  +import org.jboss.test.util.Deploy;
   
   /**
* The client driver for testing secure access to the ProjRepository bean.
  @@ -39,7 +39,7 @@
* is deployed.
* 
* @author [EMAIL PROTECTED]
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
*/
   public class TestProjRepository
  extends TestCase
  
  
  
  1.3   +3 -3  
jbosstest/src/main/org/jboss/test/security/test/TestSecurityProxy.java
  
  Index: TestSecurityProxy.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/TestSecurityProxy.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestSecurityProxy.java2001/07/10 02:34:05 1.2
  +++ TestSecurityProxy.java2001/07/14 16:02:43 1.3
  @@ -12,19 +12,19 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   
  -import org.jboss.test.util.Deploy;
  -
   import org.jboss.test.security.interfaces.Entity;
   import org.jboss.test.security.interfaces.EntityHome;
   import org.jboss.test.security.interfaces.IOSession;
   import org.jboss.test.security.interfaces.IOSessionHome;
  +import org.jboss.test.util.AppCallbackHandler;
  +import org.jboss.test.util.Deploy;
   
   /**
* Simple tests of security stateless, stateful and entity beans via custom
* security proxies.
* 
* @author [EMAIL PROTECTED]
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
*/
   public class TestSecurityProxy
  extends TestCase
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http:

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/util AppCallbackHandler.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 09:02:43

  Added:   src/main/org/jboss/test/util AppCallbackHandler.java
  Log:
  Move security and perf AppCallbackHandler.java to util and import it
  from there
  
  Revision  ChangesPath
  1.1  jbosstest/src/main/org/jboss/test/util/AppCallbackHandler.java
  
  Index: AppCallbackHandler.java
  ===
  package org.jboss.test.util;
  
  import java.io.IOException;
  import javax.security.auth.callback.Callback;
  import javax.security.auth.callback.CallbackHandler;
  import javax.security.auth.callback.NameCallback;
  import javax.security.auth.callback.PasswordCallback;
  import javax.security.auth.callback.UnsupportedCallbackException;
  
  /**
  
  @author  [EMAIL PROTECTED]
  @version $Revision: 1.1 $
  */
  public class AppCallbackHandler implements CallbackHandler
  {
  private String username;
  private char[] password;
  
  public AppCallbackHandler(String username, char[] password)
  {
  this.username = username;
  this.password = password;
  }
  
  public void handle(Callback[] callbacks) throws
  IOException, UnsupportedCallbackException
  {
  for(int i = 0; i < callbacks.length; i++)
  {
  if (callbacks[i] instanceof NameCallback)
  {
  NameCallback nc = (NameCallback) callbacks[i];
  nc.setName(username);
  }
  else if(callbacks[i] instanceof PasswordCallback)
  {
  PasswordCallback pc = (PasswordCallback) callbacks[i];
  pc.setPassword(password);
  }
  else
  {
  throw new UnsupportedCallbackException(callbacks[i], "Unrecognized 
Callback");
  }
  }
  }
  }
  
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/test Setup.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 09:02:42

  Modified:src/main/org/jboss/test/perf/test Setup.java
  Log:
  Move security and perf AppCallbackHandler.java to util and import it
  from there
  
  Revision  ChangesPath
  1.2   +2 -1  jbosstest/src/main/org/jboss/test/perf/test/Setup.java
  
  Index: Setup.java
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/test/Setup.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Setup.java2001/07/14 07:34:44 1.1
  +++ Setup.java2001/07/14 16:02:42 1.2
  @@ -17,12 +17,13 @@
   import org.jboss.test.perf.interfaces.EntityHome;
   import org.jboss.test.perf.interfaces.Entity2Home;
   
  +import org.jboss.test.util.AppCallbackHandler;
   import org.jboss.test.util.Deploy;
   
   /** Setup utility class.

@author [EMAIL PROTECTED]
  - @version $Revision: 1.1 $
  + @version $Revision: 1.2 $
*/
   public class Setup extends TestSetup 
   {
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosssx/src/main/org/jboss/security/plugins JaasSecurityManager.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 09:50:56

  Modified:src/main/org/jboss/security/plugins Tag: Branch_2_4
JaasSecurityManager.java
  Log:
  Clean up multiple return paths from validateCache to ensure that any
  valid credential results in the active subject being associated with
  the current thread
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.7.2.2   +476 -472  
jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java
  
  Index: JaasSecurityManager.java
  ===
  RCS file: 
/cvsroot/jboss/jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java,v
  retrieving revision 1.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- JaasSecurityManager.java  2001/07/09 08:49:37 1.7.2.1
  +++ JaasSecurityManager.java  2001/07/14 16:50:56 1.7.2.2
  @@ -1,472 +1,476 @@
  -/*
  - * JBoss, the OpenSource EJB server
  - *
  - * Distributable under LGPL license.
  - * See terms of license at gnu.org.
  - */
  -package org.jboss.security.plugins;
  -
  -import java.io.IOException;
  -import java.util.Arrays;
  -import java.util.Enumeration;
  -import java.util.Iterator;
  -import java.util.Set;
  -
  -import java.security.AccessController;
  -import java.security.Principal;
  -import java.security.acl.Group;
  -import javax.naming.InitialContext;
  -import javax.naming.NamingException;
  -import javax.security.auth.Policy;
  -import javax.security.auth.Subject;
  -import javax.security.auth.login.LoginContext;
  -import javax.security.auth.login.LoginException;
  -import javax.security.auth.callback.CallbackHandler;
  -import javax.security.auth.callback.Callback;
  -import javax.security.auth.callback.NameCallback;
  -import javax.security.auth.callback.PasswordCallback;
  -import javax.security.auth.callback.UnsupportedCallbackException;
  -
  -import org.jboss.security.AppPolicy;
  -import org.jboss.security.AuthenticationInfo;
  -import org.jboss.security.EJBSecurityManager;
  -import org.jboss.security.RealmMapping;
  -import org.jboss.security.SecurityAssociation;
  -import org.jboss.security.SecurityPolicy;
  -import org.jboss.security.SimplePrincipal;
  -import org.jboss.security.SubjectSecurityManager;
  -import org.jboss.security.auth.callback.SecurityAssociationHandler;
  -import org.jboss.util.CachePolicy;
  -import org.jboss.util.TimedCachePolicy;
  -
  -/** The JaasSecurityManager is responsible both for authenticating credentials
  -associated with principals and for role mapping. This implementation relies
  -on the JAAS LoginContext/LoginModules associated with the security
  -domain name associated with the class for authentication,
  -and the context JAAS Subject object for role mapping.
  -
  -@see #isValid(Principal, Object)
  -@see #Principal getPrincipal(Principal)
  -@see #doesUserHaveRole(Principal, Set)
  -
  -@author Oleg Nitz
  -@author [EMAIL PROTECTED]
  -@version $Revision: 1.7.2.1 $
  -*/
  -public class JaasSecurityManager implements SubjectSecurityManager, RealmMapping
  -{
  -/** The authentication cache object.
  - */
  -public static class DomainInfo
  -{
  -Subject subject;
  -Object credential;
  -Principal callerPrincipal;
  -Group roles;
  -}
  -
  -/** The current authenticate()d subject.
  - */
  -private static ThreadLocal activeSubject = new ThreadLocal();
  -/** The name of the domain this instance is securing. It is used as
  -the appName into the SecurityPolicy.
  - */
  -private String securityDomain;
  -/** A cache of DomainInfo objects keyd by Principal.
  - */
  -private CachePolicy domainCache;
  -/** The custom JAAS policy. This may be null if a custom
  -policy is not being used.
  - */
  -private SecurityPolicy securityPolicy;
  -/** Used in the absence of a SecurityPolicy specific CallbackHandler
  -to pass credential info to the LoginModule associated with the
  -securityDomain name.
  - */
  -private SecurityAssociationHandler handler = new SecurityAssociationHandler();
  -
  -/** Get the currently authenticated Subject in securityDomain.
  -@return The Subject for securityDomain if one exists, false otherwise.
  -*/
  -public static Subject getActiveSubject(String securityDomain)
  -{
  -Subject subject = null;
  -try
  -{
  -InitialContext ctx = new InitialContext();
  -String jsmName = "jaas:/"+securityDomain;
  -JaasSecurityManager jsm = (JaasSecurityManager) ctx.lookup(jsmName);
  -subject = jsm.getActiveSubject();
  -}
  -catch(NamingException e)
  -{
  -}
  -return subject;
  -}
  -/** Create a LoginContext for the currently authenticated Subject in
  - securityDomain.
 

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/security/test StatelessSessionClient.java TestEJBAccess.java TestEJBSpec.java TestProjRepository.java TestSecurityProxy.java AppCallbackHandler.java Deploy.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 10:10:53

  Modified:src/main/org/jboss/test/security/test Tag: Branch_2_4
StatelessSessionClient.java TestEJBAccess.java
TestEJBSpec.java TestProjRepository.java
TestSecurityProxy.java
  Removed: src/main/org/jboss/test/security/test Tag: Branch_2_4
AppCallbackHandler.java Deploy.java
  Log:
  Merge latest changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.1   +2 -1  
jbosstest/src/main/org/jboss/test/security/test/StatelessSessionClient.java
  
  Index: StatelessSessionClient.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/StatelessSessionClient.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- StatelessSessionClient.java   2001/03/05 10:11:07 1.1
  +++ StatelessSessionClient.java   2001/07/14 17:10:53 1.1.2.1
  @@ -12,11 +12,12 @@
   
   import org.jboss.test.security.interfaces.StatelessSession;
   import org.jboss.test.security.interfaces.StatelessSessionHome;
  +import org.jboss.test.util.AppCallbackHandler;
   
   /** Run with -Djava.security.auth.login.config=url_to_jaas_login_conf
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.1 $
  +@version $Revision: 1.1.2.1 $
   */
   public class StatelessSessionClient
   {
  
  
  
  1.1.2.1   +106 -79   
jbosstest/src/main/org/jboss/test/security/test/TestEJBAccess.java
  
  Index: TestEJBAccess.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/TestEJBAccess.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- TestEJBAccess.java2001/03/05 10:11:07 1.1
  +++ TestEJBAccess.java2001/07/14 17:10:53 1.1.2.1
  @@ -9,92 +9,119 @@
   import javax.security.auth.callback.*;
   import javax.security.auth.login.*;
   
  +import junit.framework.Test;
  +import junit.framework.TestCase;
  +import junit.framework.TestSuite;
  +
  +import org.jboss.test.util.Deploy;
  +
   import org.jboss.test.security.interfaces.StatelessSession;
   import org.jboss.test.security.interfaces.StatelessSessionHome;
   
  -/** Tests of the secure access to EJBs.
  -@author [EMAIL PROTECTED]
  +/**
  + * Tests of the secure access to EJBs.
  + * 
  + * @author [EMAIL PROTECTED]
*/
  -public class TestEJBAccess extends junit.framework.TestCase
  +public class TestEJBAccess
  +   extends TestCase
   {
  -private boolean deployed;
  +   private boolean deployed;
   
  -public TestEJBAccess(String name)
  -{
  - super(name);
  -}
  -
  -/** Deploy the security ejb jar one time
  - */
  -protected void setUp() throws Exception
  -{
  - Deploy.deploy("security.jar");
  -}
  -
  -public void testDeclarativeAccess() throws Exception
  -{
  -StatelessSessionClient.runAs("scott", "echoman".toCharArray());
  -try
  -{
  -StatelessSessionClient.runAs("stark", "javaman".toCharArray());
  -fail("stark should NOT be able to access StatelessSession bean");
  -}
  -catch(Exception e)
  -{
  -}
  -}
  +   public TestEJBAccess(String name)
  +   {
  +  super(name);
  +   }
   
  -/** Test access to a stateless session bean that 
  +   /**
  +* Setup the test suite.
   */
  -public void testUnsecureAccess() throws Exception
  -{
  -String securityDomain = System.getProperty("securityDomain");
  -/* If the security ejbs are running with a global security-domain
  -   set, then every bean has a security manager regardless of
  -   what its container config is. In this case we expect the
  -   accessUnsecureStatelessSession method to fail and will fail
  -   the test if it does not.
  -*/
  -if( securityDomain != null )
  -{
  -try
  -{
  -accessUnsecureStatelessSession();
  -fail("UnsecureStatelessSession was accessible");
  -}
  -catch(Exception e)
  -{
  -System.out.println("UnsecureStatelessSession not accessible");
  -}
  -}
  -else
  -{/* There is not global security-domain so the UnsecureStatelessSession
  -bean should be accessible without any login
  - */
  -accessUnsecureStatelessSession();
  -}
  -}
  +   public static Test suite() {
  +  TestSuite suite = new TestSuite();
  +
  +  // add a test case to deploy our support applications
  +  String filename = "security.jar";
  +  suite.addTest(new D

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/security/ejb EntityBeanImpl.java RunAsMDB.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 10:10:53

  Modified:src/main/org/jboss/test/security/ejb Tag: Branch_2_4
EntityBeanImpl.java RunAsMDB.java
  Log:
  Merge latest changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.2.2.1   +52 -2 
jbosstest/src/main/org/jboss/test/security/ejb/EntityBeanImpl.java
  
  Index: EntityBeanImpl.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/ejb/EntityBeanImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- EntityBeanImpl.java   2001/06/13 04:55:50 1.2
  +++ EntityBeanImpl.java   2001/07/14 17:10:52 1.2.2.1
  @@ -1,8 +1,15 @@
   package org.jboss.test.security.ejb;
   
  +import java.lang.reflect.Method;
  +import java.lang.reflect.InvocationTargetException;
   import java.rmi.RemoteException;
   import java.security.Principal;
  -import javax.ejb.*;
  +import javax.ejb.EJBException;
  +import javax.ejb.EntityBean;
  +import javax.ejb.EntityContext;
  +import javax.naming.InitialContext;
  +import javax.naming.NamingException;
  +import javax.security.auth.Subject;
   
   /** A BMP entity bean that creates beans on the fly with
   a key equal to that passed to findByPrimaryKey. Obviously
  @@ -10,7 +17,7 @@
   using the echo method. 
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.2 $
  +@version $Revision: 1.2.2.1 $
   */
   public class EntityBeanImpl implements EntityBean
   {
  @@ -54,7 +61,50 @@
   {
   System.out.println("EntityBean.echo, arg="+arg);
   Principal p = context.getCallerPrincipal();
  +boolean isInternalRole = context.isCallerInRole("InternalRole");
   System.out.println("EntityBean.echo, callerPrincipal="+p);
  +System.out.println("EntityBean.echo, 
isCallerInRole('InternalRole')="+isInternalRole);
  +// Check the java:comp/env/security/security-domain
  +try
  +{
  +   InitialContext ctx = new InitialContext();
  +   Object securityMgr = 
ctx.lookup("java:comp/env/security/security-domain");
  +   System.out.println("Checking java:comp/env/security/security-domain");
  +   if( securityMgr == null )
  +  throw new EJBException("Failed to find security mgr under: 
java:comp/env/security/security-domain");
  +   System.out.println("Found SecurityManager: "+securityMgr);
  +   /* I'm using this runtime introspection to determin if the security
  +manager supports a getActiveSubject() method because the 
  +org.jboss.security.SubjectSecurityManager interface is not part of
  +the standard client jars which are used to build the jbosstest suite.
  +Not legal EJB code, but this is test code.
  +*/
  +   Class securityMgrClass = securityMgr.getClass();
  +   Class[] parameterTypes = {};
  +   Method getActiveSubject = 
securityMgrClass.getDeclaredMethod("getActiveSubject", parameterTypes);
  +   Object[] args = {};
  +   Subject activeSubject = (Subject) getActiveSubject.invoke(securityMgr, 
args);
  +   System.out.println("ActiveSubject: "+activeSubject);
  +   if( activeSubject == null )
  +  throw new EJBException("No ActiveSubject found");
  +}
  +catch(NoSuchMethodException e)
  +{
  +   // Ok, not a SubjectSecurityManager
  +}
  +catch(InvocationTargetException e)
  +{
  +   // Ok, not a SubjectSecurityManager
  +}
  +catch(IllegalAccessException e)
  +{
  +   // Ok, not a SubjectSecurityManager
  +}
  +catch(NamingException e)
  +{
  +   e.printStackTrace();
  +   throw new EJBException("Naming exception: "+e.toString(true));
  +}
   return p.getName();
   }
   
  
  
  
  1.1.2.2   +1 -1  jbosstest/src/main/org/jboss/test/security/ejb/RunAsMDB.java
  
  Index: RunAsMDB.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/ejb/RunAsMDB.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- RunAsMDB.java 2001/07/09 08:54:12 1.1.2.1
  +++ RunAsMDB.java 2001/07/14 17:10:52 1.1.2.2
  @@ -23,7 +23,7 @@
the InternalRole assigned in the MDB descriptor run-as element.

@author [EMAIL PROTECTED]
  - @version $Revision: 1.1.2.1 $
  + @version $Revision: 1.1.2.2 $
*/
   public class RunAsMDB implements MessageDrivenBean, MessageListener
   {
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/build/subprojects build-perf.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 10:15:57

  Modified:src/build/subprojects build-perf.xml
  Log:
  Add secure-perf.jar definition
  
  Revision  ChangesPath
  1.3   +22 -3 jbosstest/src/build/subprojects/build-perf.xml
  
  Index: build-perf.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/subprojects/build-perf.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build-perf.xml2001/06/26 18:23:30 1.2
  +++ build-perf.xml2001/07/14 17:15:57 1.3
  @@ -24,9 +24,8 @@
  
  
 
  -  
  - 
  -  
  +  
  +  
 


  +  
  +
  +
  +  
  +  
  +  
  +  
  +  
  +
  +   
  +   
  +
  +  
  +  
  + 
  + 
  + 
  + 
  + 
  + 
 
  
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] EntityInstanceInterceptor change

2001-07-14 Thread Hiram Chirino


Jason,

then I have a feeling that this could have something to do with the changes 
that I recently made to the threading model that JBossMQ uses.

What's the easiest way you think I could reproduce the bug on my systems??

Regards,
Hiram

>From: Jason Dillon <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [JBoss-dev] EntityInstanceInterceptor change
>Date: Fri, 13 Jul 2001 19:38:42 -0700 (PDT)
>
>Ok, I have verified that if the jbossmq.jar (and jbossmq-client.jar) from
>the 2.1-BETA-Mar-26-2001 build are used that everything works fine.  The
>only thing I had to change was the router jboss.jcml changing INVM stuff to
>RMI (which it was not even using) and remove the INVM stuff from
>jbossmq.xml.
>
>I ran the exact same test and it finished flawlessly.
>
>--jason
>
>
>On Fri, 13 Jul 2001, Scott M Stark wrote:
>
> > Do you have the timeout msg that is logged?
> >
> > >
> > > The first odd thing is that when it times out a message is logged, but 
>the
> > > thread still hangs.  Should it be interrupted or something?
> > >
> >
> >
> >
> > ___
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-development
> >
>
>
>___
>Jboss-development mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-development

_
Get your FREE download of MSN Explorer at http://explorer.msn.com


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] EntityInstanceInterceptor change

2001-07-14 Thread Jason Dillon

Not sure.  I think a start might be to seperate the JBossMQService into a
seperate VM when running tests.  So run the testsuite in one vm, with its
JMS config pointed to the vm running JBossMQService.

I do not know if just by doing that if you will see the problem, but it
might get you closer.

On a similar note, I think that it might be a good idea to setup some
multi-vm tests, but I am stuck on what the best way to do that would be.  I
am thinking that we could define a few extra config's like test1...testn (or
something like that).

Perhaps the current default config would remain the same for running all
invm test, then test1 through testn would be used for multi vm tests.  We
will definatly have to come up with something to test distributed
transactions and such.

There are some tricky bits, like how to deploy (do you just deploy to one
vm, leaving the other vanilla from its startup config).  I think as a start
this might work and possibly even produce the problem that I am seeing,
though I am not sure.  It might be that I need to deploy to at least to
2 vm's with a total of 3, one for the seperate JMS server).

I am going to ponder this some more, if you or anyone has any ideas I would
like to hear them.

In the mean time I am going to backport some parts of my app to the previous
version of JBoss, which might take some time, but will releave some stress.

I also wanted to write up something on the build system that I started using
here at work and with some of my other projects, which I think will fit in
perfectly here.  I was going to write that sooner, but then I ran into this
wall.  =|

--jason


On Sat, 14 Jul 2001, Hiram Chirino wrote:
>
> Jason,
>
> then I have a feeling that this could have something to do with the changes
> that I recently made to the threading model that JBossMQ uses.
>
> What's the easiest way you think I could reproduce the bug on my systems??
>
> Regards,
> Hiram
>
> >From: Jason Dillon <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: [JBoss-dev] EntityInstanceInterceptor change
> >Date: Fri, 13 Jul 2001 19:38:42 -0700 (PDT)
> >
> >Ok, I have verified that if the jbossmq.jar (and jbossmq-client.jar) from
> >the 2.1-BETA-Mar-26-2001 build are used that everything works fine.  The
> >only thing I had to change was the router jboss.jcml changing INVM stuff to
> >RMI (which it was not even using) and remove the INVM stuff from
> >jbossmq.xml.
> >
> >I ran the exact same test and it finished flawlessly.
> >
> >--jason
> >
> >
> >On Fri, 13 Jul 2001, Scott M Stark wrote:
> >
> > > Do you have the timeout msg that is logged?
> > >
> > > >
> > > > The first odd thing is that when it times out a message is logged, but
> >the
> > > > thread still hangs.  Should it be interrupted or something?
> > > >
> > >
> > >
> > >
> > > ___
> > > Jboss-development mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-development
> > >
> >
> >
> >___
> >Jboss-development mailing list
> >[EMAIL PROTECTED]
> >http://lists.sourceforge.net/lists/listinfo/jboss-development
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/build/subprojects build-perf.xml build-security.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:23:13

  Modified:src/build/subprojects Tag: Branch_2_4 build-perf.xml
build-security.xml
  Log:
  Clean up inclusion of resources into deployment jars
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.2   +22 -3 jbosstest/src/build/subprojects/build-perf.xml
  
  Index: build-perf.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/subprojects/build-perf.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- build-perf.xml2001/07/09 01:06:01 1.1.2.1
  +++ build-perf.xml2001/07/14 21:23:13 1.1.2.2
  @@ -24,9 +24,8 @@
  
  
 
  -  
  - 
  -  
  +  
  +  
 


  +  
  +
  +
  +  
  +  
  +  
  +  
  +  
  +
  +   
  +   
  +
  +  
  +  
  + 
  + 
  + 
  + 
  + 
  + 
 
  
   
  
  
  
  1.2.2.1   +12 -6 jbosstest/src/build/subprojects/build-security.xml
  
  Index: build-security.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/subprojects/build-security.xml,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- build-security.xml2001/06/13 04:53:14 1.2
  +++ build-security.xml2001/07/14 21:23:13 1.2.2.1
  @@ -41,8 +41,10 @@

 
 
  -  
  -  
  + 
  +  
  +  
  + 
   
   
   
  @@ -56,8 +58,10 @@
   
   
   
  -
  -
  + 
  +  
  +  
  + 
   
   
   
  @@ -78,8 +82,10 @@
   
   
   
  -
  -
  + 
  +  
  +  
  + 
   
   
   

[JBoss-dev] CVS update: jbosstest/src/build run_tests.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:23:13

  Modified:src/build Tag: Branch_2_4 run_tests.xml
  Log:
  Clean up inclusion of resources into deployment jars
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.15.2.3  +8 -4  jbosstest/src/build/run_tests.xml
  
  Index: run_tests.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/run_tests.xml,v
  retrieving revision 1.15.2.2
  retrieving revision 1.15.2.3
  diff -u -r1.15.2.2 -r1.15.2.3
  --- run_tests.xml 2001/07/09 01:06:01 1.15.2.2
  +++ run_tests.xml 2001/07/14 21:23:12 1.15.2.3
  @@ -2,7 +2,7 @@
   
   
   
   
  @@ -123,6 +123,7 @@
   
   
   
  +
   
   
   
  @@ -152,6 +153,7 @@
   
   
   
  +
   
   
   
  @@ -166,7 +168,8 @@
-->
 
   
  -
   
  @@ -228,7 +231,7 @@

   
   
  -
   
  @@ -280,9 +283,10 @@
   -->
 
   
  -
  +
   
   
  +
   
   
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/resources/security/META-INF ejb-jar.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:23:51

  Modified:src/resources/security/META-INF Tag: Branch_2_4 ejb-jar.xml
  Log:
  Merge changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.7.2.2   +290 -286  jbosstest/src/resources/security/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/resources/security/META-INF/ejb-jar.xml,v
  retrieving revision 1.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- ejb-jar.xml   2001/07/09 08:54:12 1.7.2.1
  +++ ejb-jar.xml   2001/07/14 21:23:51 1.7.2.2
  @@ -1,286 +1,290 @@
  -
  -http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
  -
  -
  -SecurityTests
  -
  -
  -  A secured project repository stateful session 
bean
  -ProjRepository
  -org.jboss.test.security.interfaces.ProjRepositoryHome
  -org.jboss.test.security.interfaces.ProjRepository
  -
org.jboss.test.security.ejb.project.ProjRepositoryBean
  -Stateful
  -Container
  -
  -
  -
  -A secured trival echo session bean
  -StatelessSession
  -org.jboss.test.security.interfaces.StatelessSessionHome
  -org.jboss.test.security.interfaces.StatelessSession
  -org.jboss.test.security.ejb.StatelessSessionBean
  -Stateless
  -Container
  -
  -
  -EchoCaller
  -Echo
  -
  -
  -
  -
  -A secured trival echo session bean that uses 
Entity
  -StatelessSession2
  -org.jboss.test.security.interfaces.StatelessSessionHome
  -org.jboss.test.security.interfaces.StatelessSession
  -org.jboss.test.security.ejb.StatelessSessionBean2
  -Stateless
  -Container
  -
  -ejb/Entity
  -Entity
  -org.jboss.test.security.interfaces.EntityHome
  -org.jboss.test.security.interfaces.Entity
  -Entity
  -
  -
  -ejb/Session
  -Session
  -org.jboss.test.security.interfaces.StatelessSessionHome
  -org.jboss.test.security.interfaces.StatelessSession
  -StatelessSession
  -
  -
  -
  -
  -A secured trival echo session bean that uses PrivateEntity,
  -StatelessSession and itself via a runAs identity
  -RunAsStatelessSession
  -org.jboss.test.security.interfaces.StatelessSessionHome
  -org.jboss.test.security.interfaces.StatelessSession
  -org.jboss.test.security.ejb.StatelessSessionBean3
  -Stateless
  -Container
  -
  -ejb/Entity
  -Entity
  -org.jboss.test.security.interfaces.EntityHome
  -org.jboss.test.security.interfaces.Entity
  -PrivateEntity
  -
  -
  -ejb/Session
  -Session
  -org.jboss.test.security.interfaces.StatelessSessionHome
  -org.jboss.test.security.interfaces.StatelessSession
  -StatelessSession
  -
  -
  -Use a role that is not assigned to any users to
  -access restricted server side functionallity
  -
  -InternalRole
  -
  -
  -
  -
  - 
  - An unsecured trival echo session bean
  - UnsecureStatelessSession
  - org.jboss.test.security.interfaces.StatelessSessionHome
  - org.jboss.test.security.interfaces.StatelessSession
  - org.jboss.test.security.ejb.StatelessSessionBean
  - Stateless
  - Container
  - 
  - 
  - An unsecured trival echo session bean type 2
  - UnsecureStatelessSession2
  - org.jboss.test.security.interfaces.StatelessSessionHome
  - org.jboss.test.security.interfaces.StatelessSession
  - org.jboss.test.security.ejb.StatelessSessionBean2
  - Stateless
  - Container
  - 
  - ejb/Entity
  - Entity
  - org.jboss.test.security.interfaces.EntityHome
  - org.jboss.test.security.interfaces.Entity
  - Entity
  - 
  - 
  - ejb/Session
  - Session
  - org.jboss.test.security.interfaces.StatelessSessionHome
  - org.jboss.test.security.interfaces.StatelessSession
  - StatelessSession
  - 
  - 
  -
  -  
  - A trival echo entity bean
 

[JBoss-dev] CVS update: jbosstest/src/resources/perf roles.properties users.properties

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:24:45

  Added:   src/resources/perf Tag: Branch_2_4 roles.properties
users.properties
  Log:
  Merge changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.1   +0 -0  jbosstest/src/resources/perf/roles.properties
  
  Index: roles.properties
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/resources/perf/roles.properties,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  
  1.1.2.1   +0 -0  jbosstest/src/resources/perf/users.properties
  
  Index: users.properties
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/resources/perf/users.properties,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/resources/perf/META-INF secure-ejb-jar.xml secure-jboss.xml ejb-jar.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:24:45

  Modified:src/resources/perf/META-INF Tag: Branch_2_4 ejb-jar.xml
  Added:   src/resources/perf/META-INF Tag: Branch_2_4
secure-ejb-jar.xml secure-jboss.xml
  Log:
  Merge changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.2   +115 -1jbosstest/src/resources/perf/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/resources/perf/META-INF/ejb-jar.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- ejb-jar.xml   2001/07/09 01:06:07 1.1.2.1
  +++ ejb-jar.xml   2001/07/14 21:24:45 1.1.2.2
  @@ -1,4 +1,4 @@
  -
  +
   
   
  Performance test
  @@ -14,6 +14,21 @@
Bean
 
 
  + ClientSession
  + org.jboss.test.perf.interfaces.SessionHome
  + org.jboss.test.perf.interfaces.Session
  + org.jboss.test.perf.ejb.ClientSessionBean
  + Stateful
  + Container
  + 
  +ejb/Session
  +Session
  +org.jboss.test.perf.interfaces.SessionHome
  +org.jboss.test.perf.interfaces.Session
  +Session
  + 
  +  
  +  
Probe
org.jboss.test.perf.interfaces.ProbeHome
org.jboss.test.perf.interfaces.Probe
  @@ -29,6 +44,15 @@
Stateless
Container
 
  + 
  +Transacted stateless session bean
  +TxSession
  +org.jboss.test.perf.interfaces.TxSessionHome
  +org.jboss.test.perf.interfaces.TxSession
  +org.jboss.test.perf.ejb.TxSessionBean
  +Stateless
  +Container
  +
   
 
Entity
  @@ -45,5 +69,95 @@
   the_value

 
  +
  +  
  + Entity2
  + org.jboss.test.perf.interfaces.Entity2Home
  + org.jboss.test.perf.interfaces.Entity
  + org.jboss.test.perf.ejb.Entity2Bean
  + Container
  + org.jboss.test.perf.interfaces.Entity2PK
  + True
  + 
  +key1
  + 
  + 
  +key2
  + 
  + 
  +key3
  + 
  + 
  +the_value
  + 
  +  
  +
  
  +
  +
  +
  +
  +TxSession
  +requiredToSupports
  +
  +
  +TxSession
  +txRequired
  +
  +
  +TxSession
  + requiredToMandatory
  +
  +
  +TxSession
  +requiredToRequiresNew
  +
  +Required
  +
  +
  +
  +
  +TxSession
  +txSupports
  +
  +Supports
  +
  +
  +
  +
  +TxSession
  +txMandatory
  +
  +Mandatory
  +
  +  
  +
  +
  +TxSession
  +*
  +
  +
  +TxSession
  +txRequiresNew
  +
  +RequiresNew
  +
  +
  +
  +
  +TxSession
  +txNever
  +
  +Never
  +
  +
  +
  +
  +TxSession
  +txNotSupported
  +
  +NotSupported
  +
  +
  +
   
  
  
  
  No   revision
  
  
  No   revision
  
  
  1.1.2.1   +0 -0  jbosstest/src/resources/perf/META-INF/secure-ejb-jar.xml
  
  Index: secure-ejb-jar.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/resources/perf/META-INF/secure-ejb-jar.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  
  1.1.2.1   +0 -0  jbosstest/src/resources/perf/META-INF/secure-jboss.xml
  
  Index: secure-jboss.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/resources/perf/META-INF/secure-jboss.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/interfaces Entity2Home.java Entity2PK.java TxSession.java TxSessionHome.java Session.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:27:36

  Modified:src/main/org/jboss/test/perf/interfaces Tag: Branch_2_4
Session.java
  Added:   src/main/org/jboss/test/perf/interfaces Tag: Branch_2_4
Entity2Home.java Entity2PK.java TxSession.java
TxSessionHome.java
  Log:
  Merge changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.1   +2 -1  jbosstest/src/main/org/jboss/test/perf/interfaces/Session.java
  
  Index: Session.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/interfaces/Session.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- Session.java  2000/08/25 13:43:44 1.1
  +++ Session.java  2001/07/14 21:27:36 1.1.2.1
  @@ -1,7 +1,8 @@
   package org.jboss.test.perf.interfaces;
   // Session.java
   
  -public interface Session extends javax.ejb.EJBObject {
  +public interface Session extends javax.ejb.EJBObject
  +{
   
 public void create(int low, int high) 
   throws java.rmi.RemoteException, javax.ejb.CreateException;
  
  
  
  No   revision
  
  
  No   revision
  
  
  1.1.2.1   +0 -0  
jbosstest/src/main/org/jboss/test/perf/interfaces/Entity2Home.java
  
  Index: Entity2Home.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/interfaces/Entity2Home.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  
  1.1.2.1   +0 -0  jbosstest/src/main/org/jboss/test/perf/interfaces/Entity2PK.java
  
  Index: Entity2PK.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/interfaces/Entity2PK.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  
  1.1.2.1   +0 -0  jbosstest/src/main/org/jboss/test/perf/interfaces/TxSession.java
  
  Index: TxSession.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/interfaces/TxSession.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  
  1.1.2.1   +0 -0  
jbosstest/src/main/org/jboss/test/perf/interfaces/TxSessionHome.java
  
  Index: TxSessionHome.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/interfaces/TxSessionHome.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/ejb ClientSessionBean.java Entity2Bean.java TxSessionBean.java SessionBean.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:27:36

  Modified:src/main/org/jboss/test/perf/ejb Tag: Branch_2_4
SessionBean.java
  Added:   src/main/org/jboss/test/perf/ejb Tag: Branch_2_4
ClientSessionBean.java Entity2Bean.java
TxSessionBean.java
  Log:
  Merge changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.1   +122 -104  jbosstest/src/main/org/jboss/test/perf/ejb/SessionBean.java
  
  Index: SessionBean.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/ejb/SessionBean.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- SessionBean.java  2000/08/25 13:43:43 1.1
  +++ SessionBean.java  2001/07/14 21:27:36 1.1.2.1
  @@ -1,121 +1,139 @@
   package org.jboss.test.perf.ejb;
   // SessionBean.java
   
  +import java.rmi.RemoteException;
  +import java.rmi.ServerException;
  +import javax.ejb.CreateException;
  +import javax.ejb.RemoveException;
  +import javax.ejb.SessionContext;
  +import javax.naming.Context;
  +import javax.naming.InitialContext;
  +import javax.naming.NamingException;
  +import javax.rmi.PortableRemoteObject;
  +
   import org.jboss.test.perf.interfaces.EntityHome;
   import org.jboss.test.perf.interfaces.Entity;
   import org.jboss.test.perf.interfaces.EntityPK;
   
  -public class SessionBean implements javax.ejb.SessionBean {
  +public class SessionBean implements javax.ejb.SessionBean
  +{
  +   private EntityHome entityHome;
  +   
  +   public void setSessionContext(SessionContext context)
  +   {
  +   }
  +
  +   public void ejbCreate(String entityName) throws CreateException
  +   {
  +  try
  +  {
  + Context context = new InitialContext();
  + Object ref = context.lookup(entityName);
  + entityHome = (EntityHome) PortableRemoteObject.narrow(ref, 
EntityHome.class);
  +  }
  +  catch(NamingException e)
  +  {
  + throw new CreateException("Cound not resolve name: " + e);
  +  }
  +   }
   
  -  private EntityHome _entityHome;
  +   private Entity findByPrimaryKey(int key) throws java.rmi.RemoteException
  +   {
  +  try
  +  {
  + EntityPK primaryKey = new EntityPK(key);
  + return entityHome.findByPrimaryKey(primaryKey);
  +  }
  +  catch(javax.ejb.FinderException e)
  +  {
  + throw new ServerException("Cound not find Entity: " + key, e);
  +  }
  +   }
   
  -  public void setSessionContext(javax.ejb.SessionContext context) {
  -  }
  +   private java.util.Enumeration findInRange(int min, int max) throws 
java.rmi.RemoteException
  +   {
  +  try
  +  {
  + return entityHome.findInRange(min, max);
  +  }
  +  catch(javax.ejb.FinderException e)
  +  {
  + throw new ServerException("Cound not findInRange(" + min + ", " + max + 
"): ", e);
  +  }
  +   }
   
  -  public void ejbCreate(String entityName) throws javax.ejb.CreateException {
  -try {
  -  javax.naming.Context context = new javax.naming.InitialContext();
  -  Object ref = context.lookup(entityName);
  -
  -  _entityHome = (EntityHome) ref;
  -  /** CHANGES: Note that WebLogic does not support the EJB Spec
  -   ** compliant way of casting, this code is commented out
  -   ** and a Java cast is used to enable code compilation
  -_entityHome = (EntityHome) javax.rmi.PortableRemoteObject.narrow(ref, 
EntityHome.class);
  -   **/
  -}
  -catch(javax.naming.NamingException e) {
  -  throw new javax.ejb.CreateException("Cound not resolve name: " + e);
  -}
  -  }
  -
  -  private Entity findByPrimaryKey(int key) throws java.rmi.RemoteException {
  -try {
  -  EntityPK primaryKey = new EntityPK(key);
  -  return _entityHome.findByPrimaryKey(primaryKey);
  -}
  -catch(javax.ejb.FinderException e) {
  -  throw new java.rmi.ServerException("Cound not find Entity: " + key, e);
  -}
  -  }
  -
  -  private java.util.Enumeration findInRange(int min, int max) throws 
java.rmi.RemoteException {
  -try {
  -  return _entityHome.findInRange(min, max);
  -}
  -catch(javax.ejb.FinderException e) {
  -  throw new java.rmi.ServerException
  -("Cound not findInRange(" + min + ", " + max + "): ", e);
  -}
  -  }
  -
  -  public void create(int low, int high) 
  -throws java.rmi.RemoteException, javax.ejb.CreateException {
  -for(int i = low; i < high; i++) {
  -  _entityHome.create(i, 0);
  -}
  -  }
  -
  -  public void remove(int low, int high) 
  -throws java.rmi.RemoteException, javax.ejb.RemoveException {
  -if(low + 1 == high) {
  -  Entity entity = findByPrimaryKey(low);
  -  entity.remove();
  -}
  -else {
  -  java.util.Enumeration elemen

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/util AppCallbackHandler.java Deploy.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:27:37

  Modified:src/main/org/jboss/test/util Tag: Branch_2_4 Deploy.java
  Added:   src/main/org/jboss/test/util Tag: Branch_2_4
AppCallbackHandler.java
  Log:
  Merge changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.2   +108 -96   jbosstest/src/main/org/jboss/test/util/Deploy.java
  
  Index: Deploy.java
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/util/Deploy.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- Deploy.java   2001/07/09 01:06:06 1.1.2.1
  +++ Deploy.java   2001/07/14 21:27:37 1.1.2.2
  @@ -17,107 +17,119 @@
*
* @author  [EMAIL PROTECTED]
* @author  mailto:[EMAIL PROTECTED]";>Jason Dillon
  - * @version $Revision: 1.1.2.1 $
  + * @version $Revision: 1.1.2.2 $
*/
   public class Deploy
   {
  -/** A map of jarname -> Boolean deployment status. */
  -private static Map deployed = new Hashtable();
  +   /** A map of jarname -> Boolean deployment status. */
  +   private static Map deployed = new Hashtable();
   
  -/**
  - * Check if a jar is deployed.
  - */
  -private static boolean isDeployed(final String jarName) {
  -Boolean bool = (Boolean)deployed.get(jarName);
  -if (bool == null)
  -return false;
  -return bool.booleanValue();
  -}
  -
  -/**
  - * Mark a jar as deployed or undeployed.
  - */
  -private static void setDeployed(final String jarName, final boolean flag)
  -{
  -deployed.put(jarName, new Boolean(flag));
  -}
  -
  -/** Return the deployment directory to use. */
  -private static String getDeployFilename(final String filename) {
  -String deployDir = System.getProperty("jbosstest.deploy.dir");
  -if (deployDir == null) {
  -deployDir = "../deploy";
  -}
  -return deployDir + "/" + filename;
  -}
  +   /**
  +* Check if a jar is deployed.
  +*/
  +   private static boolean isDeployed(final String jarName) {
  +  Boolean bool = (Boolean)deployed.get(jarName);
  +  if (bool == null)
  + return false;
  +  return bool.booleanValue();
  +   }
  +
  +   /**
  +* Mark a jar as deployed or undeployed.
  +*/
  +   private static void setDeployed(final String jarName, final boolean flag)
  +   {
  +  deployed.put(jarName, new Boolean(flag));
  +   }
  +
  +   /** Return the deployment directory to use. */
  +   private static String getDeployFilename(final String filename) {
  +  String deployDir = System.getProperty("jbosstest.deploy.dir");
  +  if (deployDir == null) {
  + deployDir = "../deploy";
  +  }
  +  return deployDir + "/" + filename;
  +   }
   
  -/**
  - * Deploy the security ejb jar one time.
  - */
  -public static void deploy(final String jarName) throws Exception
  -{
  -String noDeploy = System.getProperty("no-deploy");
  -if (noDeploy != null || isDeployed(jarName)) {
  -return;
  -}
  -
  -String filename = getDeployFilename(jarName);
  -System.out.print("Deploying: "+ jarName + "...");
  -new org.jboss.jmx.client.Deployer().deploy(filename);
  -setDeployed(jarName, true);
  -System.out.println("Done");
  -}
  -
  -/**
  - * Undeploy an archive from a the remote JBoss server.
  - */
  -public static void undeploy(final String jarName) throws Exception
  -{
  -String noUndeploy = System.getProperty("no-undeploy");
  -if (noUndeploy != null || !isDeployed(jarName)) {
  -return;
  -}
  -
  -String filename = getDeployFilename(jarName);
  -System.out.print("Undeploying: "+ jarName + "...");
  -new org.jboss.jmx.client.Deployer().undeploy(filename);
  -setDeployed(jarName, false);
  -System.out.println("Done");
  -}
  -
  -/**
  - * A psuedo test case, which provides hooks to deploy.
  - */
  -public static class Deployer
  -extends TestCase
  -{
  -String jarName;
  -
  -public Deployer(final String jarName) {
  -super("deploy");
  -this.jarName = jarName;
  -}
  -
  -public void deploy() throws Exception {
  -Deploy.deploy(this.jarName);
  -}
  -}
  +   /**
  +* Deploy the security ejb jar one time.
  +*/
  +   public static void deploy(final String jarName) throws Exception
  +   {
  +  String noDeploy = System.getProperty("no-deploy");
  +  if (noDeploy != null || isDeployed(jarName)) {
  + return;
  +  }
  +
  +  String filename = getDeployFilename(jarName);
  +  System.out

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/perf/test Setup.java TestPerf.java TestSecurePerf.java TestProbe.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:27:36

  Added:   src/main/org/jboss/test/perf/test Tag: Branch_2_4 Setup.java
TestPerf.java TestSecurePerf.java
  Removed: src/main/org/jboss/test/perf/test Tag: Branch_2_4
TestProbe.java
  Log:
  Merge changes from main
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.2.2.1   +1 -1  jbosstest/src/main/org/jboss/test/perf/test/Setup.java
  
  Index: Setup.java
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/test/Setup.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- Setup.java2001/07/14 16:02:42 1.2
  +++ Setup.java2001/07/14 21:27:36 1.2.2.1
  @@ -23,7 +23,7 @@
   /** Setup utility class.

@author [EMAIL PROTECTED]
  - @version $Revision: 1.2 $
  + @version $Revision: 1.2.2.1 $
*/
   public class Setup extends TestSetup 
   {
  
  
  
  1.1.2.1   +1 -1  jbosstest/src/main/org/jboss/test/perf/test/TestPerf.java
  
  Index: TestPerf.java
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/test/TestPerf.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- TestPerf.java 2001/07/14 07:34:08 1.1
  +++ TestPerf.java 2001/07/14 21:27:36 1.1.2.1
  @@ -26,7 +26,7 @@
   /** Test of EJB call invocation overhead.

@author [EMAIL PROTECTED]
  - @version $Revision: 1.1 $
  + @version $Revision: 1.1.2.1 $
*/
   public class TestPerf extends junit.framework.TestCase
   {
  
  
  
  1.1.2.1   +1 -1  jbosstest/src/main/org/jboss/test/perf/test/TestSecurePerf.java
  
  Index: TestSecurePerf.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/test/TestSecurePerf.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- TestSecurePerf.java   2001/07/14 07:36:20 1.1
  +++ TestSecurePerf.java   2001/07/14 21:27:36 1.1.2.1
  @@ -27,7 +27,7 @@
   /** Test of EJB call invocation overhead in the presence of EJB security.

@author [EMAIL PROTECTED]
  - @version $Revision: 1.1 $
  + @version $Revision: 1.1.2.1 $
*/
   public class TestSecurePerf extends junit.framework.TestCase
   {
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:43:25

  Modified:src/main/org/jboss/ejb/plugins/jaws/metadata Tag: Branch_2_4
JawsEntityMetaData.java
  Log:
  Undo all changes made to the jaws package in Rel_2_4_0_16 as this broke
  the jbosstest suite
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.9.4.3   +205 -213  
jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java
  
  Index: JawsEntityMetaData.java
  ===
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v
  retrieving revision 1.9.4.2
  retrieving revision 1.9.4.3
  diff -u -r1.9.4.2 -r1.9.4.3
  --- JawsEntityMetaData.java   2001/07/11 15:03:26 1.9.4.2
  +++ JawsEntityMetaData.java   2001/07/14 21:43:25 1.9.4.3
  @@ -36,61 +36,58 @@
*   @author Sebastien Alborini
*  @author mailto:[EMAIL PROTECTED]";>Dirk Zimmermann
*  @author mailto:[EMAIL PROTECTED]";>Vinay Menon
  - *   @version $Revision: 1.9.4.2 $
  + *   @version $Revision: 1.9.4.3 $
*/
   public class JawsEntityMetaData extends MetaData implements XmlLoadable {
  -   // Constants -
  + // Constants -
   
  -   // Attributes 
  + // Attributes 
   
  -   // parent metadata structures
  -   private JawsApplicationMetaData jawsApplication;
  -   private EntityMetaData entity;
  + // parent metadata structures
  + private JawsApplicationMetaData jawsApplication;
  + private EntityMetaData entity;
   
  -   // the name of the bean (same as entity.getEjbName())
  -   private String ejbName = null;
  + // the name of the bean (same as entity.getEjbName())
  + private String ejbName = null;
   
  -   // the name of the table to use for this bean
  -   private String tableName = null;
  + // the name of the table to use for this bean
  + private String tableName = null;
   
  -   // do we have to try and create the table on deployment?
  -   private boolean createTable;
  + // do we have to try and create the table on deployment?
  + private boolean createTable;
   
  -   // do we have to drop the table on undeployment?
  -   private boolean removeTable;
  + // do we have to drop the table on undeployment?
  + private boolean removeTable;
   
  -   // do we use tuned updates?
  -   private boolean tunedUpdates;
  + // do we use tuned updates?
  + private boolean tunedUpdates;
   
  -   //Enable fast updates based on stable row id column
  -   private String stableRowIdColumn;
  -
  // do we use 'SELECT ... FOR UPDATE' syntax?
  private boolean selectForUpdate;
   
  -   // is the bean read-only?
  -   private boolean readOnly;
  -   private int timeOut;
  + // is the bean read-only?
  + private boolean readOnly;
  + private int timeOut;
   
  -   // should the table have a primary key constraint?
  -   private boolean pkConstraint;
  + // should the table have a primary key constraint?
  + private boolean pkConstraint;
   
  -   // is the bean's primary key a composite object
  -   private boolean compositeKey;
  + // is the bean's primary key a composite object
  + private boolean compositeKey;
   
  -   // the class of the primary key
  -   private Class primaryKeyClass;
  + // the class of the primary key
  + private Class primaryKeyClass;
   
  -   // the fields we must persist for this bean
  -   private Hashtable cmpFields = new Hashtable();
  + // the fields we must persist for this bean
  + private Hashtable cmpFields = new Hashtable();
   
  -   // the fields that belong to the primary key (if composite)
  -   private ArrayList pkFields = new ArrayList();
  + // the fields that belong to the primary key (if composite)
  + private ArrayList pkFields = new ArrayList();
   
  -   // finders for this bean
  -   private ArrayList finders = new ArrayList();
  + // finders for this bean
  + private ArrayList finders = new ArrayList();
   
  -   // the bean level datasource
  + // the bean level datasource
   /**
* This will now support datasources at the bean level. If no datasource
* has been specified at the bean level then the global datasource is used
  @@ -99,106 +96,104 @@
* different datasources for different beans.
*
*/
  -   private DataSource dataSource=null;
  + private DataSource dataSource=null;
   
  -   /**
  -* Here we store the basename of all detailed fields in jaws.xml
  -* (e.g., "data" for "data.categoryPK").
  -*/
  -   private HashMap detailedFieldDescriptions = new HashMap();
  + /**
  +  * Here we store the basename of all detailed f

[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb Container.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:45:28

  Modified:src/main/org/jboss/ejb Tag: Branch_2_4 Container.java
  Log:
  Bind the bean security domain to java:comp/env/security/security-domain
  rather than java:comp/env/security-domain
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.44.2.1  +3 -3  jboss/src/main/org/jboss/ejb/Container.java
  
  Index: Container.java
  ===
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/Container.java,v
  retrieving revision 1.44
  retrieving revision 1.44.2.1
  diff -u -r1.44 -r1.44.2.1
  --- Container.java2001/06/13 04:42:42 1.44
  +++ Container.java2001/07/14 21:45:28 1.44.2.1
  @@ -73,7 +73,7 @@
*   @author Rickard Öberg ([EMAIL PROTECTED])
*   @author Marc Fleury
*   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.44 $
  + *   @version $Revision: 1.44.2.1 $
*/
   public abstract class Container
   {
  @@ -597,8 +597,8 @@
securityDomain = metaData.getApplicationMetaData().getSecurityDomain();
if( securityDomain != null )
{
  -  Logger.debug("Binding securityDomain: "+securityDomain+ " to JDNI ENC 
as: security-domain");
  -  bind(envCtx, "security-domain", new LinkRef(securityDomain));
  +  Logger.debug("Binding securityDomain: "+securityDomain+ " to JDNI ENC 
as: security/security-domain");
  +  bind(envCtx, "security/security-domain", new LinkRef(securityDomain));
}
   
Logger.debug("End java:comp/env for EJB: "+beanMetaData.getEjbName());
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/client jbosssx-client.jar

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:47:29

  Modified:src/client Tag: Branch_2_4 jbosssx-client.jar
  Log:
  Merge the Rel_2_4_0_17 change from JBossSX that corrects a problem with
  the active subject not being associated with the current thread for
  anonymous users.
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.8.2.2   +46 -46jboss/src/client/jbosssx-client.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jboss/src/lib jboss-jaas.jar jbosssx.jar

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 14:47:30

  Modified:src/lib  Tag: Branch_2_4 jboss-jaas.jar jbosssx.jar
  Log:
  Merge the Rel_2_4_0_17 change from JBossSX that corrects a problem with
  the active subject not being associated with the current thread for
  anonymous users.
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.11.2.2  +108 -108  jboss/src/lib/jboss-jaas.jar
  
<>
  
  
  1.11.2.2  +186 -190  jboss/src/lib/jbosssx.jar
  
<>
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] JAWS Rel_2_4_0_16 changes have been removed

2001-07-14 Thread Scott M Stark

I removed all changes made in the org.jboss.ejb.plugins.jaws package
as part of the Rel_2_4_0_16 release as these broken the jbosstest suite
and no one stepped up to fix the issue. Don't add these back without
ensuring that they don't break existing tests AND adding a testcase for
the changes.



___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] JAWS Rel_2_4_0_16 changes have been removed

2001-07-14 Thread Scott M Stark

These are the changes that were undone:

[starksm@banshee-int jaws]$ cvs update -j Rel_2_4_0_16 -j Rel_2_4_0_15  
cvs server: Updating .
cvs server: Updating bmp
cvs server: Updating jdbc
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCBeanExistsCommand.java,v
retrieving revision 1.7.6.1
retrieving revision 1.7
Merging differences between 1.7.6.1 and 1.7 into JDBCBeanExistsCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java,v
retrieving revision 1.33.2.1
retrieving revision 1.33
Merging differences between 1.33.2.1 and 1.33 into JDBCCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCreateEntityCommand.java,v
retrieving revision 1.6.6.1
retrieving revision 1.6
Merging differences between 1.6.6.1 and 1.6 into JDBCCreateEntityCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCDefinedFinderCommand.java,v
retrieving revision 1.14.2.3
retrieving revision 1.14.2.2
Merging differences between 1.14.2.3 and 1.14.2.2 into JDBCDefinedFinderCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFindByCommand.java,v
retrieving revision 1.10.2.1
retrieving revision 1.10
Merging differences between 1.10.2.1 and 1.10 into JDBCFindByCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCInitCommand.java,v
retrieving revision 1.12.6.2
retrieving revision 1.12.6.1
Merging differences between 1.12.6.2 and 1.12.6.1 into JDBCInitCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCLoadEntitiesCommand.java,v
retrieving revision 1.4.2.1
retrieving revision 1.4
Merging differences between 1.4.2.1 and 1.4 into JDBCLoadEntitiesCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCLoadEntityCommand.java,v
retrieving revision 1.11.2.1
retrieving revision 1.11
Merging differences between 1.11.2.1 and 1.11 into JDBCLoadEntityCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCRemoveEntityCommand.java,v
retrieving revision 1.5.6.1
retrieving revision 1.5
Merging differences between 1.5.6.1 and 1.5 into JDBCRemoveEntityCommand.java
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCStoreEntityCommand.java,v
retrieving revision 1.7.6.1
retrieving revision 1.7
Merging differences between 1.7.6.1 and 1.7 into JDBCStoreEntityCommand.java
cvs server: Updating metadata
RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v
retrieving revision 1.9.4.2
retrieving revision 1.9.4.1
Merging differences between 1.9.4.2 and 1.9.4.1 into JawsEntityMetaData.java




___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/build/subprojects build-perf.xml build-security.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 17:13:18

  Modified:src/build/subprojects build-perf.xml build-security.xml
  Log:
  Clean up resource copying to avoid conflicts
  
  Revision  ChangesPath
  1.4   +4 -8  jbosstest/src/build/subprojects/build-perf.xml
  
  Index: build-perf.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/subprojects/build-perf.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build-perf.xml2001/07/14 17:15:57 1.3
  +++ build-perf.xml2001/07/15 00:13:18 1.4
  @@ -44,19 +44,15 @@
 
 
 
  -  
  -
  -   
  -   
  -
  -  
 




  - 
  - 
  + 
  +
  +
  + 
 
  
   
  
  
  
  1.3   +13 -12jbosstest/src/build/subprojects/build-security.xml
  
  Index: build-security.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/subprojects/build-security.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build-security.xml2001/06/13 04:53:14 1.2
  +++ build-security.xml2001/07/15 00:13:18 1.3
  @@ -23,15 +23,14 @@
   
   
   
  -
  -
  -
  +
   
   
 
   
  +
   
 
  @@ -41,12 +40,10 @@

 
 
  -  
  -  
   
   
   
  -
  +
   
   
  @@ -56,14 +53,16 @@
   
   
   
  -
  -
  +
  +   
  +   
  +
   
   
   
  -
  -
   
  @@ -78,8 +77,10 @@
   
   
   
  -
  -
  +
  +   
  +   
  +
   
   
   

[JBoss-dev] CVS update: jbosstest/src/build run_tests.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 17:35:15

  Modified:src/build run_tests.xml
  Log:
  Add the org.jboss.test.perf.test.TestSecurePerf test to the basic-security-tests
  target
  
  Revision  ChangesPath
  1.22  +4 -2  jbosstest/src/build/run_tests.xml
  
  Index: run_tests.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/run_tests.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- run_tests.xml 2001/07/11 21:42:20 1.21
  +++ run_tests.xml 2001/07/15 00:35:15 1.22
  @@ -2,7 +2,7 @@
   
   
   
   
  @@ -123,6 +123,7 @@
   
   
   
  +
   
   
   
  @@ -152,6 +153,7 @@
   
   
   
  +
   
   
   
  @@ -318,7 +320,7 @@
   
   
   
  -
  +
   
   
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/util Deploy.java

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 17:36:21

  Modified:src/main/org/jboss/test/util Deploy.java
  Log:
  Unwrap any javax.management.MBeanException seen on deploy/undeploy
  
  Revision  ChangesPath
  1.6   +45 -16jbosstest/src/main/org/jboss/test/util/Deploy.java
  
  Index: Deploy.java
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/util/Deploy.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Deploy.java   2001/07/10 02:34:05 1.5
  +++ Deploy.java   2001/07/15 00:36:21 1.6
  @@ -9,6 +9,7 @@
   
   import java.util.Map;
   import java.util.Hashtable;
  +import javax.management.MBeanException;
   
   import junit.framework.TestCase;
   
  @@ -17,7 +18,7 @@
*
* @author  [EMAIL PROTECTED]
* @author  mailto:[EMAIL PROTECTED]";>Jason Dillon
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
*/
   public class Deploy
   {
  @@ -27,7 +28,8 @@
  /**
   * Check if a jar is deployed.
   */
  -   private static boolean isDeployed(final String jarName) {
  +   private static boolean isDeployed(final String jarName)
  +   {
 Boolean bool = (Boolean)deployed.get(jarName);
 if (bool == null)
return false;
  @@ -43,27 +45,38 @@
  }
   
  /** Return the deployment directory to use. */
  -   private static String getDeployFilename(final String filename) {
  +   private static String getDeployFilename(final String filename)
  +   {
 String deployDir = System.getProperty("jbosstest.deploy.dir");
  -  if (deployDir == null) {
  +  if (deployDir == null)
  +  {
deployDir = "../deploy";
 }
 return deployDir + "/" + filename;
  }
  -
  +
  /**
   * Deploy the security ejb jar one time.
   */
  public static void deploy(final String jarName) throws Exception
  {
 String noDeploy = System.getProperty("no-deploy");
  -  if (noDeploy != null || isDeployed(jarName)) {
  +  if (noDeploy != null || isDeployed(jarName))
  +  {
return;
 }
   
 String filename = getDeployFilename(jarName);
 System.out.print("Deploying: "+ jarName + "...");
  -  new org.jboss.jmx.client.Deployer().deploy(filename);
  +  try
  +  {
  + new org.jboss.jmx.client.Deployer().deploy(filename);
  +  }
  +  catch(MBeanException e)
  +  {
  + e.printStackTrace();
  + throw e.getTargetException();
  +  }
 setDeployed(jarName, true);
 System.out.println("Done");
  }
  @@ -80,7 +93,15 @@
   
 String filename = getDeployFilename(jarName);
 System.out.print("Undeploying: "+ jarName + "...");
  -  new org.jboss.jmx.client.Deployer().undeploy(filename);
  +  try
  +  {
  + new org.jboss.jmx.client.Deployer().undeploy(filename);
  +  }
  +  catch(MBeanException e)
  +  {
  + e.printStackTrace();
  + throw e.getTargetException();
  +  }
 setDeployed(jarName, false);
 System.out.println("Done");
  }
  @@ -93,17 +114,21 @@
  {
 String[] jarNames;
   
  -  public Deployer(final String[] jarNames) {
  +  public Deployer(final String[] jarNames)
  +  {
super("deploy");
this.jarNames = jarNames;
 }
 
  -  public Deployer(final String jarName) {
  +  public Deployer(final String jarName)
  +  {
this(new String[] { jarName });
 }
   
  -  public void deploy() throws Exception {
  - for (int i=0; ihttp://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] EntityInstanceInterceptor change

2001-07-14 Thread Jason Dillon

Isn't it SIGQUIT... SIGHUP does not seem to produce a thread dump on Linux.

--jason


On Wed, 11 Jul 2001, Scott M Stark wrote:

> Generate a thread dump using SIGHUP or Ctrl-\ on unix/linux or Ctrl-Break on
> win32.
> This should be the first step to any deadlock/starvation investigation. The
> sun vm
> tends to produce garbage dumps with HotSpot so turn it off using
> the -classic
> switch.
>
> MDBs are involed in the lock unit test so what are you running?
>
> - Original Message -
> From: "Jason Dillon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 8:57 PM
> Subject: [JBoss-dev] EntityInstanceInterceptor change
>
>
> > What was the problem... the diff is more or less the entire file.  I am
> > curious, because I am still running into a hang, though it seems like it
> > might be MDB or SB related (not sure at the moment).
> >
> > --jason
> >
>
>
>
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] EntityInstanceInterceptor change

2001-07-14 Thread Scott M Stark

Until there is a JBoss 3.0 that allows the server to be downloaded and setup with
a given configuration I don't think distributed tests are worth the trouble to setup.
Once you have the ability to instatiate a configuration dynamically then the test
wanting to perform a multi-server test simply spawns the remote configuration
that is required for the test.

> On a similar note, I think that it might be a good idea to setup some
> multi-vm tests, but I am stuck on what the best way to do that would be.  I
> am thinking that we could define a few extra config's like test1...testn (or
> something like that).
> 
> Perhaps the current default config would remain the same for running all
> invm test, then test1 through testn would be used for multi vm tests.  We
> will definatly have to come up with something to test distributed
> transactions and such.
> 
> There are some tricky bits, like how to deploy (do you just deploy to one
> vm, leaving the other vanilla from its startup config).  I think as a start
> this might work and possibly even produce the problem that I am seeing,
> though I am not sure.  It might be that I need to deploy to at least to
> 2 vm's with a total of 3, one for the seperate JMS server).
> 
> I am going to ponder this some more, if you or anyone has any ideas I would
> like to hear them.
> 
> In the mean time I am going to backport some parts of my app to the previous
> version of JBoss, which might take some time, but will releave some stress.
> 
> I also wanted to write up something on the build system that I started using
> here at work and with some of my other projects, which I think will fit in
> perfectly here.  I was going to write that sooner, but then I ran into this
> wall.  =|
> 
> --jason
> 
> 
> On Sat, 14 Jul 2001, Hiram Chirino wrote:
> >
> > Jason,
> >
> > then I have a feeling that this could have something to do with the changes
> > that I recently made to the threading model that JBossMQ uses.
> >
> > What's the easiest way you think I could reproduce the bug on my systems??
> >
> > Regards,
> > Hiram
> >
> > >From: Jason Dillon <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>
> > >Subject: Re: [JBoss-dev] EntityInstanceInterceptor change
> > >Date: Fri, 13 Jul 2001 19:38:42 -0700 (PDT)
> > >
> > >Ok, I have verified that if the jbossmq.jar (and jbossmq-client.jar) from
> > >the 2.1-BETA-Mar-26-2001 build are used that everything works fine.  The
> > >only thing I had to change was the router jboss.jcml changing INVM stuff to
> > >RMI (which it was not even using) and remove the INVM stuff from
> > >jbossmq.xml.
> > >
> > >I ran the exact same test and it finished flawlessly.
> > >
> > >--jason
> > >
> > >
> > >On Fri, 13 Jul 2001, Scott M Stark wrote:
> > >
> > > > Do you have the timeout msg that is logged?
> > > >
> > > > >
> > > > > The first odd thing is that when it times out a message is logged, but
> > >the
> > > > > thread still hangs.  Should it be interrupted or something?
> > > > >
> > > >
> > > >
> > > >
> > > > ___
> > > > Jboss-development mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-development
> > > >
> > >
> > >
> > >___
> > >Jboss-development mailing list
> > >[EMAIL PROTECTED]
> > >http://lists.sourceforge.net/lists/listinfo/jboss-development
> >
> > _
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >
> > ___
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-development
> >
> 
> 
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
> 


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] EntityInstanceInterceptor change

2001-07-14 Thread Scott M Stark

Yes, kill -QUIT is the correct way.

- Original Message - 
From: "Jason Dillon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 14, 2001 5:41 PM
Subject: Re: [JBoss-dev] EntityInstanceInterceptor change


> Isn't it SIGQUIT... SIGHUP does not seem to produce a thread dump on Linux.
> 
> --jason
> 
> 
> On Wed, 11 Jul 2001, Scott M Stark wrote:
> 
> > Generate a thread dump using SIGHUP or Ctrl-\ on unix/linux or Ctrl-Break on
> > win32.
> > This should be the first step to any deadlock/starvation investigation. The
> > sun vm
> > tends to produce garbage dumps with HotSpot so turn it off using
> > the -classic
> > switch.
> >
> > MDBs are involed in the lock unit test so what are you running?
> >
> > - Original Message -
> > From: "Jason Dillon" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 11, 2001 8:57 PM
> > Subject: [JBoss-dev] EntityInstanceInterceptor change
> >
> >
> > > What was the problem... the diff is more or less the entire file.  I am
> > > curious, because I am still running into a hang, though it seems like it
> > > might be MDB or SB related (not sure at the moment).
> > >
> > > --jason
> > >
> >
> >
> >
> > ___
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-development
> >
> 
> 
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
> 


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/build run_tests.xml

2001-07-14 Thread Scott M Stark

  User: starksm 
  Date: 01/07/14 18:01:09

  Modified:src/build Tag: Branch_2_4 run_tests.xml
  Log:
  The name of the security perf test was wrong
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.15.2.4  +3 -3  jbosstest/src/build/run_tests.xml
  
  Index: run_tests.xml
  ===
  RCS file: /cvsroot/jboss/jbosstest/src/build/run_tests.xml,v
  retrieving revision 1.15.2.3
  retrieving revision 1.15.2.4
  diff -u -r1.15.2.3 -r1.15.2.4
  --- run_tests.xml 2001/07/14 21:23:12 1.15.2.3
  +++ run_tests.xml 2001/07/15 01:01:09 1.15.2.4
  @@ -2,7 +2,7 @@
   
   
   
   
  @@ -123,7 +123,7 @@
   
   
   
  -
  +
   
   
   
  @@ -153,7 +153,7 @@
   
   
   
  -
  +
   
   
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] jboss daily test results

2001-07-14 Thread chris



JBoss daily test results

SUMMARY

Number of tests run:   132



Successful tests:  132

Errors:0

Failures:  0



[time of test: 15 July 2001 2:53 GMT]

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



___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development