User: reverbel
Date: 02/04/14 12:10:50
Modified: iiop/src/main/org/jboss/ejb/plugins/iiop/server
IIOPContainerInvoker.java
Log:
- Method setContainer() changed to take a null container
(undeployment code now performs a setContainer(null) call.
- Exception when binding EJBHome to CORBA naming context now logged.
Revision Changes Path
1.18 +7 -4
contrib/iiop/src/main/org/jboss/ejb/plugins/iiop/server/IIOPContainerInvoker.java
Index: IIOPContainerInvoker.java
===================================================================
RCS file:
/cvsroot/jboss/contrib/iiop/src/main/org/jboss/ejb/plugins/iiop/server/IIOPContainerInvoker.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- IIOPContainerInvoker.java 2 Apr 2002 21:27:58 -0000 1.17
+++ IIOPContainerInvoker.java 14 Apr 2002 19:10:50 -0000 1.18
@@ -118,7 +118,7 @@
* CORBA reference for the corresponding <code>EJBObject</code>.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Francisco Reverbel</a>
- * @version $Revision: 1.17 $
+ * @version $Revision: 1.18 $
*/
public class IIOPContainerInvoker
extends Servant
@@ -224,9 +224,11 @@
public void setContainer(Container container)
{
this.container = container;
- String loggerName = IIOPContainerInvoker.class.getName() + '.'
- + container.getBeanMetaData().getJndiName();
- logger = Logger.getLogger(loggerName);
+ if (container != null) {
+ String loggerName = IIOPContainerInvoker.class.getName() + '.'
+ + container.getBeanMetaData().getJndiName();
+ logger = Logger.getLogger(loggerName);
+ }
}
public void create() throws Exception
@@ -512,6 +514,7 @@
rebind(corbaContext, jndiName, (org.omg.CORBA.Object)ejbHome);
}
catch (Exception e) {
+ logger.error("Cannot bind EJBHome in CORBA naming service:", e);
throw new RuntimeException(
"Cannot bind EJBHome in CORBA naming service:\n" + e);
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development