geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r540412 - /geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
Date Tue, 22 May 2007 03:30:43 GMT
Author: djencks
Date: Mon May 21 20:30:42 2007
New Revision: 540412

URL: http://svn.apache.org/viewvc?view=rev&rev=540412
Log:
GERONIMO-3181 compute 'all' permissions from the actual service endpoint interface

Modified:
    geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java

Modified: geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java?view=diff&rev=540412&r1=540411&r2=540412
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
(original)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
Mon May 21 20:30:42 2007
@@ -207,11 +207,13 @@
                         EjbInterface.LOCAL_HOME.getJaccInterfaceName(),
                         remoteBean.getLocalHome(),
                         ejbModule.getClassLoader());
-                securityBuilder.addToPermissions(permissions,
+                if (remoteBean instanceof SessionBean) {
+                    securityBuilder.addToPermissions(permissions,
                         remoteBean.getEjbName(),
                         EjbInterface.SERVICE_ENDPOINT.getJaccInterfaceName(),
-                        remoteBean.getLocalHome(),
-                        ejbModule.getClassLoader());
+                            ((SessionBean)remoteBean).getServiceEndpoint(),
+                            ejbModule.getClassLoader());
+                }
                 if (remoteBean.getBusinessRemote() != null && !remoteBean.getBusinessRemote().isEmpty())
{
                     for (String businessRemote: remoteBean.getBusinessRemote()) {
                         securityBuilder.addToPermissions(permissions,



Mime
View raw message