geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viol...@apache.org
Subject svn commit: r1085293 - /geronimo/server/trunk/plugins/debugviews/debugviews-portlets/src/main/java/org/apache/geronimo/console/jndiview/JNDIViewHelper.java
Date Fri, 25 Mar 2011 08:58:54 GMT
Author: violalu
Date: Fri Mar 25 08:58:54 2011
New Revision: 1085293

URL: http://svn.apache.org/viewvc?rev=1085293&view=rev
Log:
GERONIMO-5874 Change ResourceBinding type from context to resourcebinding, avoiding cast exception
in jndi portlet

Modified:
    geronimo/server/trunk/plugins/debugviews/debugviews-portlets/src/main/java/org/apache/geronimo/console/jndiview/JNDIViewHelper.java

Modified: geronimo/server/trunk/plugins/debugviews/debugviews-portlets/src/main/java/org/apache/geronimo/console/jndiview/JNDIViewHelper.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/debugviews/debugviews-portlets/src/main/java/org/apache/geronimo/console/jndiview/JNDIViewHelper.java?rev=1085293&r1=1085292&r2=1085293&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/debugviews/debugviews-portlets/src/main/java/org/apache/geronimo/console/jndiview/JNDIViewHelper.java
(original)
+++ geronimo/server/trunk/plugins/debugviews/debugviews-portlets/src/main/java/org/apache/geronimo/console/jndiview/JNDIViewHelper.java
Fri Mar 25 08:58:54 2011
@@ -37,6 +37,7 @@ import org.apache.geronimo.console.util.
 import org.apache.geronimo.gbean.AbstractName;
 import org.apache.geronimo.gbean.AbstractNameQuery;
 import org.apache.geronimo.gjndi.KernelContextGBean;
+import org.apache.geronimo.gjndi.binding.ResourceBinding;
 import org.apache.geronimo.j2ee.jndi.ContextSource;
 import org.apache.geronimo.kernel.Kernel;
 import org.apache.geronimo.naming.java.RootContext;
@@ -344,7 +345,7 @@ public class JNDIViewHelper {
         for (AbstractName name : names) {
             String nameProperty = name.getNameProperty("name");
             if ("ResourceBindings".equals(nameProperty)) {
-                globalContext = (Context) kernel.getGBean(name);
+                globalContext = ((ResourceBinding) kernel.getGBean(name)).getContext();
             }
         }
         



Mime
View raw message