[jboss-cvs] JBossAS SVN: r64264 - branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jul 24 18:01:46 EDT 2007
Author: bdecoste
Date: 2007-07-24 18:01:45 -0400 (Tue, 24 Jul 2007)
New Revision: 64264
Modified:
branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/LocalProxy.java
Log:
[EJBTHREE-1019] fix and test for invoking Local proxies remotely. Modified Ejb3Registry to use a GUID instead of the ObjectName of the container.
Modified: branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/LocalProxy.java
===================================================================
--- branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/LocalProxy.java 2007-07-24 22:00:06 UTC (rev 64263)
+++ branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/LocalProxy.java 2007-07-24 22:01:45 UTC (rev 64264)
@@ -40,9 +40,9 @@
{
private static Logger log = Logger.getLogger(LocalProxy.class);
- // FIXME: should be private
- protected transient Container container = null;
+ private transient Container container = null;
private String containerId;
+ protected String proxyName;
protected LocalProxy()
{
@@ -51,7 +51,8 @@
protected LocalProxy(Container container)
{
this.container = container;
- this.containerId = container.getObjectName().getCanonicalName();
+ this.containerId = Ejb3Registry.guid(container);
+ proxyName = container.getEjbName();
}
protected Container getContainer()
@@ -66,8 +67,6 @@
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
{
this.containerId = in.readUTF();
- // TODO: one container is private, this won't have to be done anymore
- this.container = Ejb3Registry.findContainer(containerId);
}
public void writeExternal(ObjectOutput out) throws IOException
More information about the jboss-cvs-commits
mailing list