[JBoss-dev] CVS update: jbossmq/src/main/org/jboss/mq/il/oil OILServerILService.java OILServerILServiceMBean.java

2001-09-29 Thread Scott M Stark

  User: starksm 
  Date: 01/09/29 17:40:17

  Modified:src/main/org/jboss/mq/il/oil OILServerILService.java
OILServerILServiceMBean.java
  Log:
  Add support for binding to a specific interface
  
  Revision  ChangesPath
  1.9   +28 -8 jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java
  
  Index: OILServerILService.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- OILServerILService.java   2001/09/27 04:21:28 1.8
  +++ OILServerILService.java   2001/09/30 00:40:16 1.9
  @@ -15,8 +15,8 @@
   import java.net.InetAddress;
   import java.net.ServerSocket;
   import java.net.Socket;
  +import java.net.UnknownHostException;
   import java.rmi.RemoteException;
  -
   import java.util.Properties;
   import javax.jms.Destination;
   import javax.jms.JMSException;
  @@ -46,7 +46,7 @@
* Implements the ServerILJMXService which is used to manage the JVM IL.
*
* @authorHiram Chirino ([EMAIL PROTECTED])
  - * @version   $Revision: 1.8 $
  + * @version   $Revision: 1.9 $
*/
   public class OILServerILService extends org.jboss.mq.il.ServerILJMXService 
implements Runnable, OILServerILServiceMBean
   {
  @@ -86,6 +86,7 @@
   
  boolean running;
  int serverBindPort = 0;
  +   InetAddress bindAddress = null;
  Thread worker;
   
  /**
  @@ -357,14 +358,15 @@
 running = true;
 this.server = lookupJMSServer();
   
  -  serverSocket = new ServerSocket(serverBindPort);
  +  serverSocket = new ServerSocket(serverBindPort, 50, bindAddress);
 serverSocket.setSoTimeout(SO_TIMEOUT);
   
  -  log.info(JBossMQ OIL service available at :  + 
InetAddress.getLocalHost().getHostAddress() + : + serverSocket.getLocalPort());
  +  InetAddress socketAddress = serverSocket.getInetAddress();
  +  log.info(JBossMQ OIL service available at :  + socketAddress + : + 
serverSocket.getLocalPort());
 worker = new Thread(server.threadGroup, this, OIL Worker);
 worker.start();
   
  -  serverIL = new OILServerIL(InetAddress.getLocalHost(), 
serverSocket.getLocalPort());
  +  serverIL = new OILServerIL(socketAddress, serverSocket.getLocalPort());
   
 bindJNDIReferences();
   
  @@ -389,15 +391,33 @@
  /** Getter for property serverBindPort.
   * @return Value of property serverBindPort.
   */
  -   public int getServerBindPort() {
  +   public int getServerBindPort()
  +   {
 return serverBindPort;
  }
  
  /** Setter for property serverBindPort.
   * @param serverBindPort New value of property serverBindPort.
   */
  -   public void setServerBindPort(int serverBindPort) {
  +   public void setServerBindPort(int serverBindPort)
  +   {
 this.serverBindPort = serverBindPort;
  }
  -   
  +
  +   /** Get the interface address the OIL server bind its listening port on */
  +   public String getBindAddress()
  +   {
  +  String addr = 0.0.0.0;
  +  if( bindAddress != null )
  + addr = bindAddress.getHostName();
  +  return addr;
  +   }
  +   /** Set the interface address the OIL server bind its listening port on */
  +   public void setBindAddress(String host) throws UnknownHostException
  +   {
  +  if( host != null || host.length() == 0 )
  + bindAddress = null;
  +  else
  + bindAddress = InetAddress.getByName(host);
  +   }   
   }
  
  
  
  1.4   +10 -1 
jbossmq/src/main/org/jboss/mq/il/oil/OILServerILServiceMBean.java
  
  Index: OILServerILServiceMBean.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/oil/OILServerILServiceMBean.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- OILServerILServiceMBean.java  2001/09/27 04:21:28 1.3
  +++ OILServerILServiceMBean.java  2001/09/30 00:40:16 1.4
  @@ -7,13 +7,22 @@
   package org.jboss.mq.il.oil;
   
   import java.lang.Object;
  +import java.net.UnknownHostException;
   
   /**
*  This interface is used to define which methods will be exposed via JMX.
*
* @createdAugust 16, 2001
*/
  -public interface OILServerILServiceMBean extends 
org.jboss.mq.il.ServerILJMXServiceMBean {
  +public interface OILServerILServiceMBean extends 
org.jboss.mq.il.ServerILJMXServiceMBean
  +{
  +   /** Get the OIL server listening port */
  public int getServerBindPort();
  +   /** Set the OIL server listening port */
  public void setServerBindPort(int serverBindPort);
  +
  +   /** Get the interface address the OIL server bind its listening port on */
  +   public String getBindAddress();
  +   /** Set the interface address the OIL server bind its listening port on */
  +   public void 

[JBoss-dev] CVS update: jbossmq/src/main/org/jboss/mq/il/uil UILServerILService.java UILServerILServiceMBean.java

2001-09-29 Thread Scott M Stark

  User: starksm 
  Date: 01/09/29 17:53:16

  Modified:src/main/org/jboss/mq/il/uil UILServerILService.java
UILServerILServiceMBean.java
  Log:
  dd support for binding to a specific interface
  
  Revision  ChangesPath
  1.9   +29 -8 jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java
  
  Index: UILServerILService.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- UILServerILService.java   2001/09/27 04:21:28 1.8
  +++ UILServerILService.java   2001/09/30 00:53:16 1.9
  @@ -15,8 +15,8 @@
   import java.net.InetAddress;
   import java.net.ServerSocket;
   import java.net.Socket;
  +import java.net.UnknownHostException;
   import java.rmi.RemoteException;
  -
   import java.util.Properties;
   import javax.jms.Destination;
   import javax.jms.JMSException;
  @@ -45,7 +45,7 @@
* Implements the ServerILJMXService which is used to manage the JVM IL.
*
* @authorHiram Chirino ([EMAIL PROTECTED])
  - * @version   $Revision: 1.8 $
  + * @version   $Revision: 1.9 $
*/
   public class UILServerILService extends org.jboss.mq.il.ServerILJMXService 
implements Runnable, UILServerILServiceMBean
   {
  @@ -86,6 +86,7 @@
   
  boolean running;
  int serverBindPort = 0;
  +   InetAddress bindAddress = null;
  Thread worker;
   
  /**
  @@ -365,14 +366,15 @@
 running = true;
 this.server = lookupJMSServer();
   
  -  serverSocket = new ServerSocket(serverBindPort);
  +  serverSocket = new ServerSocket(serverBindPort, 50, bindAddress);
 serverSocket.setSoTimeout(SO_TIMEOUT);
   
  -  log.info(JBossMQ UIL service available at :  + 
InetAddress.getLocalHost().getHostAddress() + : + serverSocket.getLocalPort());
  +  InetAddress socketAddress = serverSocket.getInetAddress();
  +  log.info(JBossMQ UIL service available at :  + socketAddress + : + 
serverSocket.getLocalPort());
 worker = new Thread(server.threadGroup, this, UIL Worker);
 worker.start();
   
  -  serverIL = new UILServerIL(InetAddress.getLocalHost(), 
serverSocket.getLocalPort());
  +  serverIL = new UILServerIL(socketAddress, serverSocket.getLocalPort());
   
 bindJNDIReferences();
   
  @@ -397,15 +399,34 @@
  /** Getter for property serverBindPort.
   * @return Value of property serverBindPort.
   */
  -   public int getServerBindPort() {
  +   public int getServerBindPort()
  +   {
 return serverBindPort;
  }
  
  /** Setter for property serverBindPort.
   * @param serverBindPort New value of property serverBindPort.
   */
  -   public void setServerBindPort(int serverBindPort) {
  +   public void setServerBindPort(int serverBindPort)
  +   {
 this.serverBindPort = serverBindPort;
  }
  -   
  +
  +   /** Get the interface address the OIL server bind its listening port on */
  +   public String getBindAddress()
  +   {
  +  String addr = 0.0.0.0;
  +  if( bindAddress != null )
  + addr = bindAddress.getHostName();
  +  return addr;
  +   }
  +   /** Set the interface address the OIL server bind its listening port on */
  +   public void setBindAddress(String host) throws UnknownHostException
  +   {
  +  if( host != null || host.length() == 0 )
  + bindAddress = null;
  +  else
  + bindAddress = InetAddress.getByName(host);
  +   }
  +
   }
  
  
  
  1.4   +11 -2 
jbossmq/src/main/org/jboss/mq/il/uil/UILServerILServiceMBean.java
  
  Index: UILServerILServiceMBean.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILServerILServiceMBean.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- UILServerILServiceMBean.java  2001/09/27 04:21:28 1.3
  +++ UILServerILServiceMBean.java  2001/09/30 00:53:16 1.4
  @@ -7,13 +7,22 @@
   package org.jboss.mq.il.uil;
   
   import java.lang.Object;
  +import java.net.UnknownHostException;
   
   /**
*  This interface is used to define which methods will be exposed via JMX.
*
* @createdAugust 16, 2001
*/
  -public interface UILServerILServiceMBean extends 
org.jboss.mq.il.ServerILJMXServiceMBean {
  +public interface UILServerILServiceMBean extends 
org.jboss.mq.il.ServerILJMXServiceMBean
  +{
  +   /** Get the UIL server listening port */
  public int getServerBindPort();
  -   public void setServerBindPort(int serverBindPort); 
  +   /** Set the UIL server listening port */
  +   public void setServerBindPort(int serverBindPort);
  +
  +   /** Get the interface address the UIL server bind its listening port on */
  +   public String getBindAddress();
  +   /** Set the interface address the UIL server 

[JBoss-dev] CVS update: jbossmq/src/main/org/jboss/mq/il/oil OILServerILService.java OILServerILServiceMBean.java

2001-09-29 Thread Scott M Stark

  User: starksm 
  Date: 01/09/29 18:14:11

  Modified:src/main/org/jboss/mq/il/oil Tag: Branch_2_4
OILServerILService.java
OILServerILServiceMBean.java
  Log:
  Add support for binding on a specific interface and port
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.2.2.2   +42 -9 jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java
  
  Index: OILServerILService.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- OILServerILService.java   2001/08/23 03:57:10 1.2.2.1
  +++ OILServerILService.java   2001/09/30 01:14:11 1.2.2.2
  @@ -15,10 +15,9 @@
   import java.io.ObjectOutputStream;
   import java.net.InetAddress;
   import java.net.ServerSocket;
  -
   import java.net.Socket;
  +import java.net.UnknownHostException;
   import java.rmi.RemoteException;
  -
   import java.util.Properties;
   import javax.jms.Destination;
   import javax.jms.JMSException;
  @@ -51,7 +50,7 @@
*
* @author Hiram Chirino ([EMAIL PROTECTED])
* @createdAugust 16, 2001
  - * @version$Revision: 1.2.2.1 $
  + * @version$Revision: 1.2.2.2 $
*/
   public class OILServerILService extends org.jboss.mq.il.ServerILJMXService 
implements Runnable, OILServerILServiceMBean {
  protected ServerSocket serverSocket;
  @@ -59,6 +58,7 @@
   
  boolean  running;
  int  serverBindPort = 0;
  +   InetAddress bindAddress = null;
  Thread   worker;
  //The server implementation
  protected static JMSServer server;
  @@ -128,15 +128,15 @@
 running = true;
 this.server = lookupJMSServer();
   
  -  serverSocket = new ServerSocket( serverBindPort );
  -  serverSocket.setSoTimeout( SO_TIMEOUT );
  +  serverSocket = new ServerSocket(serverBindPort, 50, bindAddress);
  +  serverSocket.setSoTimeout(SO_TIMEOUT);
   
  -  category.info( JBossMQ OIL service available at :  + 
InetAddress.getLocalHost().getHostAddress() + : + serverSocket.getLocalPort() );
  -  worker = new Thread( server.threadGroup, this, OIL Worker );
  +  InetAddress socketAddress = serverSocket.getInetAddress();
  +  category.info(JBossMQ OIL service available at :  + socketAddress + : + 
serverSocket.getLocalPort());
  +  worker = new Thread(server.threadGroup, this, OIL Worker);
 worker.start();
  -
  -  serverIL = new OILServerIL( InetAddress.getLocalHost(), 
serverSocket.getLocalPort() );
   
  +  serverIL = new OILServerIL(socketAddress, serverSocket.getLocalPort());
 bindJNDIReferences();
   
  }
  @@ -329,4 +329,37 @@
 }
   
  }
  +
  +   /** Getter for property serverBindPort.
  +* @return Value of property serverBindPort.
  +*/
  +   public int getServerBindPort()
  +   {
  +  return serverBindPort;
  +   }
  +   
  +   /** Setter for property serverBindPort.
  +* @param serverBindPort New value of property serverBindPort.
  +*/
  +   public void setServerBindPort(int serverBindPort)
  +   {
  +  this.serverBindPort = serverBindPort;
  +   }
  +
  +   /** Get the interface address the OIL server bind its listening port on */
  +   public String getBindAddress()
  +   {
  +  String addr = 0.0.0.0;
  +  if( bindAddress != null )
  + addr = bindAddress.getHostName();
  +  return addr;
  +   }
  +   /** Set the interface address the OIL server bind its listening port on */
  +   public void setBindAddress(String host) throws UnknownHostException
  +   {
  +  if( host != null || host.length() == 0 )
  + bindAddress = null;
  +  else
  + bindAddress = InetAddress.getByName(host);
  +   }  
   }
  
  
  
  1.2.2.2   +13 -2 
jbossmq/src/main/org/jboss/mq/il/oil/OILServerILServiceMBean.java
  
  Index: OILServerILServiceMBean.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/oil/OILServerILServiceMBean.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- OILServerILServiceMBean.java  2001/08/23 03:57:10 1.2.2.1
  +++ OILServerILServiceMBean.java  2001/09/30 01:14:11 1.2.2.2
  @@ -7,11 +7,22 @@
   package org.jboss.mq.il.oil;
   
   import java.lang.Object;
  +import java.net.UnknownHostException;
   
   /**
*  This interface is used to define which methods will be exposed via JMX.
*
  - * @createdAugust 16, 2001
  + * @version $Revision: 1.2.2.2 $
*/
  -public interface OILServerILServiceMBean extends 
org.jboss.mq.il.ServerILJMXServiceMBean {
  +public interface OILServerILServiceMBean extends 
org.jboss.mq.il.ServerILJMXServiceMBean
  +{
  

[JBoss-dev] CVS update: jbossmq/src/main/org/jboss/mq/il/uil UILServerILService.java UILServerILServiceMBean.java

2001-09-29 Thread Scott M Stark

  User: starksm 
  Date: 01/09/29 18:14:11

  Modified:src/main/org/jboss/mq/il/uil Tag: Branch_2_4
UILServerILService.java
UILServerILServiceMBean.java
  Log:
  Add support for binding on a specific interface and port
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.2.2.2   +44 -8 jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java
  
  Index: UILServerILService.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- UILServerILService.java   2001/08/23 03:57:10 1.2.2.1
  +++ UILServerILService.java   2001/09/30 01:14:11 1.2.2.2
  @@ -15,10 +15,9 @@
   import java.io.ObjectOutputStream;
   import java.net.InetAddress;
   import java.net.ServerSocket;
  -
   import java.net.Socket;
  +import java.net.UnknownHostException;
   import java.rmi.RemoteException;
  -
   import java.util.Properties;
   import javax.jms.Destination;
   import javax.jms.JMSException;
  @@ -51,7 +50,7 @@
*
* @author Hiram Chirino ([EMAIL PROTECTED])
* @createdAugust 16, 2001
  - * @version$Revision: 1.2.2.1 $
  + * @version$Revision: 1.2.2.2 $
*/
   public class UILServerILService extends org.jboss.mq.il.ServerILJMXService 
implements Runnable, UILServerILServiceMBean {
  protected ServerSocket serverSocket;
  @@ -59,6 +58,7 @@
   
  boolean  running;
  int  serverBindPort = 0;
  +   InetAddress bindAddress = null;
  Thread   worker;
  //The server implementation
  protected static JMSServer server;
  @@ -129,14 +129,15 @@
 running = true;
 this.server = lookupJMSServer();
   
  -  serverSocket = new ServerSocket( serverBindPort );
  -  serverSocket.setSoTimeout( SO_TIMEOUT );
  +  serverSocket = new ServerSocket(serverBindPort, 50, bindAddress);
  +  serverSocket.setSoTimeout(SO_TIMEOUT);
   
  -  category.info( JBossMQ UIL service available at :  + 
InetAddress.getLocalHost().getHostAddress() + : + serverSocket.getLocalPort() );
  -  worker = new Thread( server.threadGroup, this, UIL Worker );
  +  InetAddress socketAddress = serverSocket.getInetAddress();
  +  category.info(JBossMQ UIL service available at :  + socketAddress + : + 
serverSocket.getLocalPort());
  +  worker = new Thread(server.threadGroup, this, UIL Worker);
 worker.start();
   
  -  serverIL = new UILServerIL( InetAddress.getLocalHost(), 
serverSocket.getLocalPort() );
  +  serverIL = new UILServerIL(socketAddress, serverSocket.getLocalPort());
   
 bindJNDIReferences();
   
  @@ -338,4 +339,39 @@
category.warn( Connection failure during connection close., e );
 }
  }
  +
  +   /** Getter for property serverBindPort.
  +* @return Value of property serverBindPort.
  +*/
  +   public int getServerBindPort()
  +   {
  +  return serverBindPort;
  +   }
  +   
  +   /** Setter for property serverBindPort.
  +* @param serverBindPort New value of property serverBindPort.
  +*/
  +   public void setServerBindPort(int serverBindPort)
  +   {
  +  this.serverBindPort = serverBindPort;
  +   }
  +
  +   /** Get the interface address the OIL server bind its listening port on */
  +   public String getBindAddress()
  +   {
  +  String addr = 0.0.0.0;
  +  if( bindAddress != null )
  + addr = bindAddress.getHostName();
  +  return addr;
  +   }
  +   /** Set the interface address the OIL server bind its listening port on */
  +   public void setBindAddress(String host) throws UnknownHostException
  +   {
  +  if( host != null || host.length() == 0 )
  + bindAddress = null;
  +  else
  + bindAddress = InetAddress.getByName(host);
  +   }
  +
  +
   }
  
  
  
  1.2.2.2   +14 -3 
jbossmq/src/main/org/jboss/mq/il/uil/UILServerILServiceMBean.java
  
  Index: UILServerILServiceMBean.java
  ===
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILServerILServiceMBean.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- UILServerILServiceMBean.java  2001/08/23 03:57:10 1.2.2.1
  +++ UILServerILServiceMBean.java  2001/09/30 01:14:11 1.2.2.2
  @@ -7,11 +7,22 @@
   package org.jboss.mq.il.uil;
   
   import java.lang.Object;
  +import java.net.UnknownHostException;
   
   /**
*  This interface is used to define which methods will be exposed via JMX.
*
  - * @createdAugust 16, 2001
  + * @version $Revision: 1.2.2.2 $
*/
  -public interface UILServerILServiceMBean extends 
org.jboss.mq.il.ServerILJMXServiceMBean {
  -}
  +public interface 

[JBoss-dev] Automated JBoss Testsuite Results

2001-09-29 Thread chris



JBoss daily test results

SUMMARY

Number of tests run:   113



Successful tests:  92

Errors:19

Failures:  2





[time of test: 30 September 2001 3:16 GMT]
[java.version: 1.3.0]
[java.vendor: IBM Corporation]
[java.vm.version: 1.3.0]
[java.vm.name: Classic VM]
[java.vm.info: J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: jitc)]
[os.name: Linux]
[os.arch: x86]
[os.version: 2.4.3-12]

See http://lubega.com for full details

NOTE: If there are any errors shown above - this mail is only highlighting 
them - it is NOT indicating that they are being looked at by anyone.

It is assumed that whoever makes change(s) to jboss that 
break the test will be fixing the test or jboss, as appropriate!





DETAILS OF ERRORS

[details not shown - as this makes the mail too big to reach the sf mailing list]



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



Re: [JBoss-dev] Automated JBoss Testsuite Results

2001-09-29 Thread Jason Dillon

Why does the number of tests run vary from vm to vm?

--jason


On Sun, 30 Sep 2001 [EMAIL PROTECTED] wrote:



 JBoss daily test results

 SUMMARY

 Number of tests run:   113

 

 Successful tests:  92

 Errors:19

 Failures:  2

 



 [time of test: 30 September 2001 3:16 GMT]
 [java.version: 1.3.0]
 [java.vendor: IBM Corporation]
 [java.vm.version: 1.3.0]
 [java.vm.name: Classic VM]
 [java.vm.info: J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: jitc)]
 [os.name: Linux]
 [os.arch: x86]
 [os.version: 2.4.3-12]

 See http://lubega.com for full details

 NOTE: If there are any errors shown above - this mail is only highlighting
 them - it is NOT indicating that they are being looked at by anyone.

 It is assumed that whoever makes change(s) to jboss that
 break the test will be fixing the test or jboss, as appropriate!

 



 DETAILS OF ERRORS

 [details not shown - as this makes the mail too big to reach the sf mailing list]



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



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



[JBoss-dev] Packaging JBoss For Debian

2001-09-29 Thread Mitchell


Hi, 

I am interested in packaging the JBOss system and modules in to Debian packages 

I think the best way to do this is to  add the necessary files to the CVS tree so that 
people can build the packages
themselves  straight out of CVS. 


How is the best way for me to get CVS access to do this?  Or would the be a better way 
of going about this?

Thanks

From Mitchell



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



[JBoss-dev] CVS update: newsite/survey/src/ejb/org/jboss/survey/ejb/entity SurveyBean.java UserBean.java

2001-09-29 Thread Andreas Schaefer

  User: schaefera
  Date: 01/09/29 23:21:36

  Modified:survey/src/ejb/org/jboss/survey/ejb/entity SurveyBean.java
UserBean.java
  Log:
  Adjusted the JBoss Survey to XDoclet and the proper usage of some
  archvies. Also the module website contains now a target survey-jars
  which only compiles the JBoss Survey without the whole overhead of
  Snapshots.
  
  Revision  ChangesPath
  1.2   +21 -20
newsite/survey/src/ejb/org/jboss/survey/ejb/entity/SurveyBean.java
  
  Index: SurveyBean.java
  ===
  RCS file: 
/cvsroot/jboss/newsite/survey/src/ejb/org/jboss/survey/ejb/entity/SurveyBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SurveyBean.java   2001/09/29 02:02:38 1.1
  +++ SurveyBean.java   2001/09/30 06:21:36 1.2
  @@ -32,27 +32,29 @@
   import javax.naming.NamingException;
   import javax.rmi.PortableRemoteObject;
   
  -
   /**
   * The Entity bean represents a Survey.
   *
   * @author Andreas Schaefer
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   *
  -* @ejb:ejb-name jboss/survey/Survey
  -* @ejb:entity-cmp
  -* @ejb:env-entry SequenceName Survey_Seq
  -* @ejb:ejb-ref jboss/survey/SequenceGenerator
  -* @ejb:data-method false
  -* @ejb:data-extends org.jboss.survey.ejb.entity.AbstractData
  +* @ejb:bean name=jboss/survey/Survey
  +*   display-name=JBoss Survey Informations
  +*   type=CMP
  +*   jndi-name=ejb/jboss/survey/Survey
  +* @ejb:env-entry name=SequenceName
  +*value=Survey_Seq
  +* @ejb:ejb-ref ejb-name=jboss/survey/SequenceGenerator
  +* @ejb:data-object extends=org.jboss.survey.ejb.entity.AbstractData
  +*  setdata=false
  +* @ejb:finder signature=java.util.Collection findAll()
  +* @ejb:finder signature=java.util.Collection findByUser()
   *
  -* @ejb:jndi-name ejb/jboss/survey/Survey
  -* @ejb:finder Collection findAll()
  -* @ejb:finder Collection findByUser()
  -* @jboss:finder-query findByUser UserId = {0}
  -* @jboss:table-name Survey
  -* @jboss:create-table false
  -* @jboss:remove-table false
  +* @jboss:finder-query name=findByUser
  +* query=UserId = {0}
  +* @jboss:table-name table-name=Survey
  +* @jboss:create-table create=false
  +* @jboss:remove-table remove=false
   **/
   public abstract class SurveyBean
  implements EntityBean
  @@ -73,12 +75,11 @@
  *
  * @param pSurvey The Value Object containing the Survey values
  *
  -   * @ejb:remote-method
  +   * @ejb:interface-method view-type=remote
  **/
  public void setValueObject( SurveyData pSurvey )
 throws
  - InvalidValueException,
  - RemoteException
  + InvalidValueException
  {
 // Check for Data Integrity in the Value Object
 if( pSurvey == null ) {
  @@ -127,7 +128,7 @@
  * @return Returns a Survey value object containing the data within this
  *  bean.
  *
  -   * @ejb:remote-method
  +   * @ejb:interface-method view-type=remote
  **/
  public SurveyData getValueObject() {
 SurveyData aReturn = new SurveyData();
  @@ -782,12 +783,12 @@
  *
  * @param pSurvey The data used to create the Survey.
  *
  -   * @ejb:create-method
  +   * @ejb:create-method view-type=remote
  **/
  public SurveyPK ejbCreate( SurveyData pSurvey )
 throws
InvalidValueException,
  - RemoteException
  + CreateException
  {
 // Clone tht given Title Value Object to keep changed private
 SurveyData aSurvey = (SurveyData) pSurvey.clone();
  
  
  
  1.2   +27 -21newsite/survey/src/ejb/org/jboss/survey/ejb/entity/UserBean.java
  
  Index: UserBean.java
  ===
  RCS file: 
/cvsroot/jboss/newsite/survey/src/ejb/org/jboss/survey/ejb/entity/UserBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UserBean.java 2001/09/29 02:02:38 1.1
  +++ UserBean.java 2001/09/30 06:21:36 1.2
  @@ -37,24 +37,28 @@
   * The Entity bean represents a User.
   *
   * @author Andreas Schaefer
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   *
  -* @ejb:ejb-name jboss/survey/User
  -* @ejb:entity-cmp
  -* @ejb:env-entry SequenceName User_Info_Seq
  -* @ejb:ejb-ref jboss/survey/SequenceGenerator
  -* @ejb:data-method false
  -* @ejb:data-extends org.jboss.survey.ejb.entity.AbstractData
  +* @ejb:bean name=jboss/survey/User
  +*   display-name=Registered User filling out the Survey
  +*   type=CMP
  +*   jndi-name=ejb/jboss/survey/User
  +* @ejb:env-entry name=SequenceName
  +*value=User_Info_Seq
  +* @ejb:ejb-ref ejb-name=jboss/survey/SequenceGenerator
  +* @ejb:data-object extends=org.jboss.survey.ejb.entity.AbstractData
  +*  setdata=false
  +* 

[JBoss-dev] CVS update: newsite build.xml

2001-09-29 Thread Andreas Schaefer

  User: schaefera
  Date: 01/09/29 23:21:36

  Modified:.build.xml
  Log:
  Adjusted the JBoss Survey to XDoclet and the proper usage of some
  archvies. Also the module website contains now a target survey-jars
  which only compiles the JBoss Survey without the whole overhead of
  Snapshots.
  
  Revision  ChangesPath
  1.16  +50 -20newsite/build.xml
  
  Index: build.xml
  ===
  RCS file: /cvsroot/jboss/newsite/build.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- build.xml 2001/09/29 02:02:37 1.15
  +++ build.xml 2001/09/30 06:21:36 1.16
  @@ -10,7 +10,7 @@
   !----
   !-- == --
   
  -!-- $Id: build.xml,v 1.15 2001/09/29 02:02:37 schaefera Exp $ --
  +!-- $Id: build.xml,v 1.16 2001/09/30 06:21:36 schaefera Exp $ --
   
   project default=main name=JBoss/Website
   
  @@ -220,10 +220,18 @@
   property name=release.id value=${install.id}/
   property name=install.root value=${module.output}/${install.id}/
   
  +!-- Log4j --
  +property name=apache.log4j.root value=${project.thirdparty}/apache/log4j/
  +property name=apache.log4j.lib value=${apache.log4j.root}/lib/
  +path id=apache.log4j.classpath
  +  pathelement path=${apache.log4j.lib}/log4j.jar/
  +/path
  +
   !-- The combined thirdparty classpath --
   path id=thirdparty.classpath
 path refid=library.classpath/
 path refid=dependentmodule.classpath/
  +  path refid=apache.log4j.classpath/
   /path
   
   !-- This module is based on Java 1.2 --
  @@ -243,8 +251,8 @@
   !-- The classpath required to build survey. --
   path id=survey.classpath
 pathelement path=${survey.lib}/jboss-j2ee.jar/
  -  pathelement 
path=${build.snapshots}/jboss-all/thirdparty/sun/javamail/lib/mail.jar/
  -  pathelement 
path=${build.snapshots}/jboss-all/thirdparty/sun/servlet/lib/servlet.jar/
  +  pathelement path=${project.thirdparty}/sun/javamail/lib/mail.jar/
  +  pathelement path=${project.thirdparty}/sun/servlet/lib/servlet.jar/
 path refid=javac.classpath/
   /path
   property name=survey.classpath refid=survey.classpath/
  @@ -267,15 +275,24 @@
  value=:pserver:[EMAIL PROTECTED]:/cvsroot/jboss/
   property name=snapshot.modules value=jboss-all/
   
  +!-- xdoclet --
  +path id=xdoclet.task.classpath
  +  path refid=javac.classpath/
  +  path refid=survey.classpath/
  +  pathelement location=${project.tools}/lib/xdoclet.jar/
  +  pathelement location=${project.tools}/lib/ant.jar/
  +/path
  +property name=xdoclet.task.classpath 
  +   refid=xdoclet.task.classpath/
   !-- ejbdoclet --
  -path id=dreambean.ejbdoclet.task.classpath
  +!--path id=dreambean.ejbdoclet.task.classpath
 path refid=javac.classpath/
 path refid=survey.classpath/
 pathelement location=${project.root}/tools/lib/ejbdoclet.jar/
   /path
   property name=dreambean.ejbdoclet.task.classpath 
 refid=dreambean.ejbdoclet.task.classpath
  -/
  +/ --
 /target
   
   
  @@ -396,25 +413,30 @@
   mkdir dir=${build.classes}/
   mkdir dir=${build.metadata.survey}/
   mkdir dir=${build.metadata.survey}/META-INF/
  -taskdef name=ejbdoclet
  -  classname=ejbdoclet.EJBDocletTask
  +
  +
  +taskdef
  +  name=xdoclet
  +  classname=xdoclet.ejb.EjbDocletTask
   /
  -ejbdoclet
  +xdoclet
 sourcepath=${survey.ejb.source}
 destdir=${build.gen}
  -  classpath=${dreambean.ejbdoclet.task.classpath}
  +  classpath=${xdoclet.task.classpath}
 ejbspec=1.1
 excludedtags=@version,@author
   
 fileset dir=${survey.ejb.source}
   include name=org/jboss/survey/ejb/**/*Bean.java /
 /fileset
  -  dataobject pattern={0}Data/
  -  remoteinterface pattern ={0}/
  -  homeinterface pattern={0}Home/
  -  entitypk pattern={0}PK/
  -  entitybmp pattern={0}BMP/
  -  entitycmp pattern={0}CMP/
  +  dataobject/
  +  remoteinterface/
  +  homeinterface/
  +  entitypk/
  +  entitypk/
  +  entitybmp/
  +  entitycmp/
  +  session/
 deploymentdescriptor
   xmlencoding =UTF-8
   destdir=${build.metadata.survey}/META-INF
  @@ -425,7 +447,8 @@
   datasource=java:/SurveyDS
   destdir=${build.metadata.survey}/META-INF
 /
  -/ejbdoclet
  +/xdoclet
  +
 /target
 
 !-- == --
  @@ -449,7 +472,7 @@
 !-- Compile the Auxiliary Classes  --
 !-- == --
 
  

[JBoss-dev] CVS update: newsite/survey/src/ejb/org/jboss/survey/ejb/session SequenceGeneratorBean.java SurveyManagementBean.java

2001-09-29 Thread Andreas Schaefer

  User: schaefera
  Date: 01/09/29 23:21:36

  Modified:survey/src/ejb/org/jboss/survey/ejb/session
SequenceGeneratorBean.java
SurveyManagementBean.java
  Log:
  Adjusted the JBoss Survey to XDoclet and the proper usage of some
  archvies. Also the module website contains now a target survey-jars
  which only compiles the JBoss Survey without the whole overhead of
  Snapshots.
  
  Revision  ChangesPath
  1.2   +12 -11
newsite/survey/src/ejb/org/jboss/survey/ejb/session/SequenceGeneratorBean.java
  
  Index: SequenceGeneratorBean.java
  ===
  RCS file: 
/cvsroot/jboss/newsite/survey/src/ejb/org/jboss/survey/ejb/session/SequenceGeneratorBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SequenceGeneratorBean.java2001/09/29 02:02:38 1.1
  +++ SequenceGeneratorBean.java2001/09/30 06:21:36 1.2
  @@ -28,14 +28,15 @@
   * Encapsulates the retrival of DB data
   *
   * @author Andreas Schaefer
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   *
  -* @ejb:ejb-name jboss/survey/SequenceGenerator
  -* @ejb:stateless-session
  -* @ejb:env-entry DataSource_Name SurveyDS
  -* @ejb:resource_ref jdbc/SurveyDS
  -*
  -* @ejb:jndi-name ejb/jboss/survey/SequenceGenerator
  +* @ejb:bean name=jboss/survey/SequenceGenerator
  +*   display-name=Generates unique Identifier for an Entity
  +*   type=Stateless
  +*   jndi-name=ejb/jboss/survey/SequenceGenerator
  +* @ejb:env-entry name=DataSource_Name
  +*value=SurveyDS
  +* @ejb:resource_ref res-name=jdbc/SurveyDS
   **/
   public class SequenceGeneratorBean
  implements SessionBean
  @@ -66,7 +67,7 @@
   *
   * @throws RemoteException 
   *
  -* @ejb:remote-method
  +* @ejb:interface-method view-type=remote
   **/
  public int getNextNumber( String pSequenceName )
  throws
  @@ -166,13 +167,13 @@
  /**
   * Create the Session Bean
   *
  -* @throws RemoteException 
  +* @throws CreateException 
   *
  -* @ejb:create-method
  +* @ejb:create-method view-type=remote
   **/
  public void ejbCreate()
  -   throws
  -  RemoteException
  +  throws
  + CreateException
  {
  }
   
  
  
  
  1.2   +28 -22
newsite/survey/src/ejb/org/jboss/survey/ejb/session/SurveyManagementBean.java
  
  Index: SurveyManagementBean.java
  ===
  RCS file: 
/cvsroot/jboss/newsite/survey/src/ejb/org/jboss/survey/ejb/session/SurveyManagementBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SurveyManagementBean.java 2001/09/29 02:02:38 1.1
  +++ SurveyManagementBean.java 2001/09/30 06:21:36 1.2
  @@ -1,8 +1,8 @@
   // 
   // File: SurveyManagementBean.java
   // Copyright ( c ) 2001 eBuilt, Inc.  All rights reserved.
  -// Version: $Revision: 1.1 $
  -// Last Checked In: $Date: 2001/09/29 02:02:38 $
  +// Version: $Revision: 1.2 $
  +// Last Checked In: $Date: 2001/09/30 06:21:36 $
   // Last Checked In By: $Author: schaefera $
   // 
   
  @@ -46,16 +46,22 @@
   * Contains all the business logic around the Surveys management.
   *
   * @author Andreas Schaefer
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   *
  -* @ejb:ejb-name jboss/survey/SurveyManagement
  -* @ejb:ejb-ref jboss/survey/Survey
  -* @ejb:ejb-ref jboss/survey/User
  -* @ejb:resource-ref mail/Mail javax.mail.Session Container
  -* @ejb:stateless-session
  +* @ejb:bean name=jboss/survey/SurveyManagement
  +*   display-name=JBoss Survey Business Logic Session Bean
  +*   type=Stateless
  +*   jndi-name=ejb/jboss/survey/SurveyManagement
  +* @ejb:ejb-ref ejb-name=jboss/survey/Survey
  +* @ejb:ejb-ref ejb-name=jboss/survey/User
  +* @ejb:resource-ref res-name=mail/Mail
  +*   res-type=javax.mail.Session
  +*   res-auth=Container
   *
  -* @ejb:jndi-name ejb/jboss/survey/SurveyManagement
  -* @jboss:resource-manager javax.mail.Session mail/Mail Mail
  +* @--ejb:jndi-name ejb/jboss/survey/SurveyManagement
  +* @jboss:resource-manager res-man-class=javax.mail.Session
  +* res-man-jndi-name=mail/Mail
  +* res-man-name=Mail
   **/
   public class SurveyManagementBean
  implements SessionBean
  @@ -83,7 +89,7 @@
  * @throws ServiceUnavailable If the service is unaccessible or unusable
  * @throws RemoteException Necessary for a EJB
  *
  -   * @ejb:remote-method
  +   * @ejb:interface-method view-type=remote
  **/
  public Collection getSurveys()
 throws
  @@ -121,7 +127,7 @@
  * @throws