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

2002-03-07 Thread marc fleury

  User: mnf999  
  Date: 02/03/07 10:25:52

  Modified:src/main/org/jboss/proxy/ejb/handle StatefulHandleImpl.java
  Log:
  Adaptation to the new interceptor design
  The proxy factory sets the chains on the server side (David, move this to 
externalized when you can see FIXME).
  All the EJB behavior is isolated in their corresponding interceptors
  
  Revision  ChangesPath
  1.7   +2 -2  
jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java
  
  Index: StatefulHandleImpl.java
  ===
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StatefulHandleImpl.java   27 Feb 2002 07:31:39 -  1.6
  +++ StatefulHandleImpl.java   7 Mar 2002 18:25:52 -   1.7
  @@ -30,7 +30,7 @@
* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
* @author a href=[EMAIL PROTECTED]Bill Burke/a
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
*
* pbRevisions:/bbr
* pb2002/01/09: billb/b
  @@ -109,7 +109,7 @@
   SecurityAssociation.getPrincipal(),
   SecurityAssociation.getCredential());

  - invocation.setContainer(new Integer(objectName));
  + invocation.setObjectName(new Integer(objectName));

// It is a home invocation
invocation.setType(Invocation.HOME);
  
  
  

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



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

2002-02-26 Thread Scott M Stark

  User: starksm 
  Date: 02/02/26 23:31:40

  Modified:src/main/org/jboss/proxy/ejb/handle StatefulHandleImpl.java
  Log:
  Remove unused imports of java.rmi.MarshalledObject
  
  Revision  ChangesPath
  1.6   +1 -2  
jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java
  
  Index: StatefulHandleImpl.java
  ===
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StatefulHandleImpl.java   6 Feb 2002 20:59:27 -   1.5
  +++ StatefulHandleImpl.java   27 Feb 2002 07:31:39 -  1.6
  @@ -9,7 +9,6 @@
   
   import java.rmi.RemoteException;
   import java.rmi.ServerException;
  -import java.rmi.MarshalledObject;
   import java.lang.reflect.Method;
   
   import java.util.Hashtable;
  @@ -31,7 +30,7 @@
* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
* @author a href=[EMAIL PROTECTED]Bill Burke/a
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
*
* pbRevisions:/bbr
* pb2002/01/09: billb/b
  
  
  

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



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

2002-02-06 Thread marc fleury

  User: mnf999  
  Date: 02/02/06 12:59:27

  Modified:src/main/org/jboss/proxy/ejb/handle StatefulHandleImpl.java
  Log:
  The invocation branching is now based on int and a case switch (SPD)
  
  Revision  ChangesPath
  1.5   +2 -2  
jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java
  
  Index: StatefulHandleImpl.java
  ===
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StatefulHandleImpl.java   2002/02/06 18:27:51 1.4
  +++ StatefulHandleImpl.java   2002/02/06 20:59:27 1.5
  @@ -31,7 +31,7 @@
* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
* @author a href=[EMAIL PROTECTED]Bill Burke/a
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
*
* pbRevisions:/bbr
* pb2002/01/09: billb/b
  @@ -113,7 +113,7 @@
invocation.setContainer(new Integer(objectName));

// It is a home invocation
  - invocation.setType(home);
  + invocation.setType(Invocation.HOME);

// Get the invoker to the target server (cluster or node)
   
  
  
  

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



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

2002-01-09 Thread Bill Burke

  User: patriot1burke
  Date: 02/01/09 15:24:00

  Modified:src/main/org/jboss/proxy/ejb/handle StatefulHandleImpl.java
  Log:
  invoker is now stored directly in StatefulHandleImpl.  Otherwise, StatefulHandleImpl
  would not create EJBObjects that can get clustering attributes.
  
  Revision  ChangesPath
  1.3   +13 -8 
jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java
  
  Index: StatefulHandleImpl.java
  ===
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StatefulHandleImpl.java   2002/01/03 04:01:00 1.2
  +++ StatefulHandleImpl.java   2002/01/09 23:24:00 1.3
  @@ -29,7 +29,16 @@
*
* @author  a href=mailto:[EMAIL PROTECTED]Marc Fleury/a
* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
  - * @version $Revision: 1.2 $
  + * @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
  + * @author a href=[EMAIL PROTECTED]Bill Burke/a
  + * @version $Revision: 1.3 $
  + *
  + * pbRevisions:/bbr
  + * pb2002/01/09: billb/b
  + * ol
  + *   liDon't go to JNDI to get Invoker, instead, store invoker directly in handle.
  + * /ol
  + * 
*/
   public class StatefulHandleImpl
  implements Handle
  @@ -52,7 +61,7 @@
  
  /** The identity of the bean. */
  public String jndiName;
  -   public String server;
  +   public Invoker invoker;
  public Object id;
  
  /**
  @@ -64,10 +73,10 @@
   * @param name  JNDI name.
   * @param idIdentity of the bean.
   */
  -   public StatefulHandleImpl(String jndiName, String server, Object id)
  +   public StatefulHandleImpl(String jndiName, Invoker invoker, Object id)
  {
 this.jndiName= jndiName;
  -  this.server = server;
  +  this.invoker = invoker;
 this.id = id;
  }
  
  @@ -88,10 +97,6 @@
   */
  public EJBObject getEJBObject() throws RemoteException {
 try {
  - // Get the invoker to the target server (cluster or node)
  - Invoker invoker = 
  - (Invoker) new InitialContext().lookup(invokers/+server+/jrmp);
  - 
Invocation invocation = 
new Invocation(
   null,
  
  
  

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



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

2002-01-02 Thread Jason Dillon

  User: user57  
  Date: 02/01/02 20:01:00

  Modified:src/main/org/jboss/proxy/ejb/handle StatefulHandleImpl.java
  Log:
   o migrated all components to a new JMX domain name model.  jboss.system
 is now where to core/spine components live.  moved all components that
 were in JBOSS-SYSTEM that did not move into a jboss.* domain into
 jboss (where the server is now registered).  The point was to limit the
 members of jboss.system to core bits only.
   o Created org.jboss.system.Server, which does the work of initialization
 that org.jboss.Main used to do.  Main now only parses the command line,
 sets up basic legecy properties and creates a Server instance.
   o Moved functionality of Shutdown (component not cl tool) into Server (
 which is bound as jboss.system:service=Server)
   o Moved more Runtime access from Info into Server.  Exposed memory info
 as attributes.
   o Logging a WARN everywhere that uses System.getProperty(jboss.system.home)
 as that should go away soon/eventually.
   o Initialized the invokerMap in the harmi impl to avoid NPE
   o Made getopt.jar a member of the lib/* dir instead of adding it to the
 run.jar and shutdown.jars each time.
   o Minor cosmetic changes along the way.
  
  Revision  ChangesPath
  1.2   +43 -63
jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java
  
  Index: StatefulHandleImpl.java
  ===
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/proxy/ejb/handle/StatefulHandleImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StatefulHandleImpl.java   2001/12/19 07:22:27 1.1
  +++ StatefulHandleImpl.java   2002/01/03 04:01:00 1.2
  @@ -1,9 +1,10 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
  +
   package org.jboss.proxy.ejb.handle;
   
   import java.rmi.RemoteException;
  @@ -24,28 +25,21 @@
   import org.jboss.security.SecurityAssociation;
   
   /**
  -* An EJB stateful session bean handle.
  -*
  -* @author  a href=mailto:[EMAIL PROTECTED]Marc Fleury/a
  -* @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
  -* @version $Revision: 1.1 $
  -*/
  + * An EJB stateful session bean handle.
  + *
  + * @author  a href=mailto:[EMAIL PROTECTED]Marc Fleury/a
  + * @author  a href=mailto:[EMAIL PROTECTED];Jason Dillon/a
  + * @version $Revision: 1.2 $
  + */
   public class StatefulHandleImpl
  -implements Handle
  +   implements Handle
   {
  -   // Constants -
  -   
  -   /** Serial Version Identifier. */
  -   //   private static final long serialVersionUID = -2592509632957623102L;
  -   
  -   // Static 
  -   
  /** A reference to {@link Handle#getEJBObject}. */
  protected static final Method GET_EJB_OBJECT;
  
  /**
  -   * Initialize ttHandle/tt method references.
  -   */
  +* Initialize ttHandle/tt method references.
  +*/
  static {
 try {
GET_EJB_OBJECT = Handle.class.getMethod(getEJBObject, new Class[0]);
  @@ -56,24 +50,20 @@
 }
  }
  
  -   // Attributes 
  -   
  /** The identity of the bean. */
  public String jndiName;
  public String server;
  public Object id;
  
  -   // Constructors --
  -   
  /**
  -   * Construct a ttStatefulHandleImpl/tt.
  -   *
  -   * @param handleThe initial context handle that will be used
  -   *  to restore the naming context or null to use
  -   *  a fresh InitialContext object.
  -   * @param name  JNDI name.
  -   * @param idIdentity of the bean.
  -   */
  +* Construct a ttStatefulHandleImpl/tt.
  +*
  +* @param handleThe initial context handle that will be used
  +*  to restore the naming context or null to use
  +*  a fresh InitialContext object.
  +* @param name  JNDI name.
  +* @param idIdentity of the bean.
  +*/
  public StatefulHandleImpl(String jndiName, String server, Object id)
  {
 this.jndiName= jndiName;
  @@ -81,26 +71,23 @@
 this.id = id;
  }
  
  -   // Public 
  -   
  /**
  -   * Handle implementation.
  -   *
  -   * This differs from Stateless and Entity handles which just invoke standard 
methods
  -   * (ttcreate/tt and ttfindByPrimaryKey/tt respectively) on the Home 
interface (proxy).
  -   * There is no equivalent option for stateful SBs, so a direct invocation on the 
container has