You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2006/12/20 04:46:20 UTC

svn commit: r488907 - in /incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb: EncReference.java EncUserTransaction.java

Author: dblevins
Date: Tue Dec 19 19:46:19 2006
New Revision: 488907

URL: http://svn.apache.org/viewvc?view=rev&rev=488907
Log:
File contents were duplicated (my fault).  Trimmed them down.

Modified:
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncReference.java
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncUserTransaction.java

Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncReference.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncReference.java?view=diff&rev=488907&r1=488906&r2=488907
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncReference.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncReference.java Tue Dec 19 19:46:19 2006
@@ -36,41 +36,3 @@
     }
 
 }
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.openejb.core.mdb;
-
-import org.apache.openejb.core.ivm.naming.Reference;
-
-import javax.naming.NameNotFoundException;
-
-public class EncReference extends org.apache.openejb.core.ivm.naming.ENCReference {
-
-    public EncReference(Reference ref) {
-        super(ref);
-    }
-
-    public void checkOperation(byte operation) throws NameNotFoundException {
-
-/*
-        if( operation != Operations.OP_BUSINESS ){
-            throw new NameNotFoundException("Operation Not Allowed");
-        }        
-*/
-    }
-
-}

Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncUserTransaction.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncUserTransaction.java?view=diff&rev=488907&r1=488906&r2=488907
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncUserTransaction.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EncUserTransaction.java Tue Dec 19 19:46:19 2006
@@ -49,54 +49,3 @@
     }
 
 }
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.openejb.core.mdb;
-
-import org.apache.openejb.core.Operations;
-import org.apache.openejb.core.ivm.naming.ObjectReference;
-
-import javax.naming.NameNotFoundException;
-
-/*
-  This class is a wrapper for CoreUserTransaction reference in the 
-  JNDI ENC of a message driven bean.  When the getObject( ) method is invoked the 
-  Operation is checked to ensure that its is allowed for the bean's current state.
-*/
-
-public class EncUserTransaction extends org.apache.openejb.core.ivm.naming.ENCReference {
-
-    /*
-    * This constructor take a new CoreUserTransaction object as the object reference
-    */
-    public EncUserTransaction(org.apache.openejb.core.CoreUserTransaction reference) {
-        super(new ObjectReference(reference));
-    }
-
-    /*
-    * This method is invoked by the ENCReference super class each time its 
-    * getObject() method is called within the container system.  This checkOperation
-    * method ensures that the message driven bean is in the correct state before the super
-    * class can return the requested reference object.
-    */
-    public void checkOperation(byte operation) throws NameNotFoundException {
-        if (operation == Operations.OP_SET_CONTEXT) {
-            throw new NameNotFoundException("Operation Not Allowed");
-        }
-    }
-
-}