Changeset 2128
- Timestamp:
- 02/07/08 11:20:27 (10 months ago)
- Location:
- trunk
- Files:
-
- 6 removed
- 26 modified
- 1 moved
-
.project (modified) (1 diff)
-
components/antlib/resources/omero.xml (modified) (2 diffs)
-
components/app/build.xml (modified) (4 diffs)
-
components/app/resources/ejb.properties (deleted)
-
components/app/resources/jboss-app.xml (modified) (1 diff)
-
components/app/resources/jboss-login.xml (deleted)
-
components/app/resources/jboss-service.xml (deleted)
-
components/blitz/resources/beanRefContext.xml (modified) (1 diff)
-
components/server/.springBeans (modified) (2 diffs)
-
components/server/resources/beanRefContext.xml (modified) (2 diffs)
-
components/server/resources/ome/services/config-local.xml (modified) (1 diff)
-
components/server/resources/ome/services/datalayer.xml (moved) (moved from trunk/components/server/resources/ome/services/out-of-container.xml)
-
components/server/resources/ome/services/in-container.xml (deleted)
-
components/server/src/ome/logic/AdminImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/ConfigImpl.java (modified) (3 diffs)
-
components/server/src/ome/logic/LdapImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/PixelsImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/PojosImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/QueryImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/RenderingSettingsImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/RepositoryInfoImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/TypesImpl.java (modified) (2 diffs)
-
components/server/src/ome/logic/UpdateImpl.java (modified) (2 diffs)
-
components/server/src/ome/services/JobBean.java (modified) (2 diffs)
-
components/server/src/ome/services/RawFileBean.java (modified) (2 diffs)
-
components/server/src/ome/services/RawPixelsBean.java (modified) (2 diffs)
-
components/server/src/ome/services/RenderingBean.java (modified) (2 diffs)
-
components/server/src/ome/services/SearchBean.java (modified) (2 diffs)
-
components/server/src/ome/services/ThumbnailBean.java (modified) (2 diffs)
-
components/server/src/ome/services/delete/DeleteBean.java (modified) (2 diffs)
-
components/tools/licenses/resources/ome/services/service-ome.services.licenses.ILicense.xml (deleted)
-
etc/hibernate.properties (modified) (1 diff)
-
etc/omero-ds.xml (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.project
r1784 r2128 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> omero.git</name>3 <name>sessions.git</name> 4 4 <comment></comment> 5 5 <projects> -
trunk/components/antlib/resources/omero.xml
r2026 r2128 61 61 <not><available file="${basedir}/etc/local.properties"/></not></condition></fail> 62 62 63 <!-- copied from app/build.xml refactor -->64 <tempfile property="temp.dir" prefix="omero"/>65 <mkdir dir="${temp.dir}"/>66 <copy file="${etc.dir}/omero-ds.xml" todir="${temp.dir}" />67 <replace file="${temp.dir}/omero-ds.xml">68 <replacefilter token="@@@JDBC.URL@@@" value="${hibernate.connection.url}"/>69 <replacefilter token="@@@JDBC.DRIVER@@@" value="${hibernate.connection.driver_class}"/>70 <replacefilter token="@@@JDBC.USERNAME@@@" value="${hibernate.connection.username}"/>71 <replacefilter token="@@@JDBC.PASSWORD@@@" value="${hibernate.connection.password}"/>72 </replace>73 74 63 <!-- Touching the etc files to force update in the case that 75 64 the timezone or similar on a system has changed. Please refer to #779 … … 86 75 <fileset dir="${basedir}/etc"> 87 76 <patternset refid="etc.files"/> 88 </fileset>89 <fileset dir="${temp.dir}">90 <include name="omero-ds.xml"/>91 77 </fileset> 92 78 </jar> -
trunk/components/app/build.xml
r2100 r2128 30 30 <target name="package" depends="generate" 31 31 description="Packages the EAR by assembling all modules and deployment descriptors"> 32 32 33 33 <delete> 34 34 <fileset dir="${target.dir}/libs" includes="commons-logging*"/> … … 41 41 42 42 <useServices dir="${target.dir}/libs"/> 43 44 <!-- DataSource with replacement. --> 45 <copy file="${etc.dir}/omero-ds.xml" todir="${target.dir}" overwrite="true"/> 46 <replace file="${target.dir}/omero-ds.xml"> 47 <replacefilter token="@@@JDBC.URL@@@" value="${hibernate.connection.url}"/> 48 <replacefilter token="@@@JDBC.DRIVER@@@" value="${hibernate.connection.driver_class}"/> 49 <replacefilter token="@@@JDBC.USERNAME@@@" value="${hibernate.connection.username}"/> 50 <replacefilter token="@@@JDBC.PASSWORD@@@" value="${hibernate.connection.password}"/> 51 </replace> 52 43 53 44 <jar jarfile="${target.dir}/${ivy.module}.ear"> 54 45 <metainf dir="${resrc.dir}"> 55 46 <include name="application.xml" /> 56 47 <include name="jboss-app.xml" /> 57 <include name="jboss-login.xml" />58 48 </metainf> 59 49 <fileset dir="${target.dir}/generated/resources" includes="enums.properties"/> … … 61 51 <fileset dir="${etc.dir}" includes="hibernate.properties"/> 62 52 <fileset dir="${etc.dir}" includes="local.properties"/> 63 <fileset dir="${resrc.dir}" includes="ejb.properties"/>64 <fileset dir="${resrc.dir}" includes="jboss-service.xml"/>65 53 <fileset dir="${target.dir}/libs" includes="*.jar" /> 66 <fileset dir="${target.dir}" includes="omero-ds.xml"/>67 54 <manifest> 68 55 <attribute name="Product-Name" value="${product.name}"/> … … 82 69 83 70 <!-- This will change and all dependency on jboss will move to properties--> 84 <property name="jboss.home" value="${env.JBOSS_HOME}"/> 71 <property name="jboss.home" value="${env.JBOSS_HOME}"/> 85 72 <property name="jboss.server.config" value="default"/> 86 73 <property name="jboss.deploy.dir" value="${jboss.home}/server/${jboss.server.config}/deploy"/> -
trunk/components/app/resources/jboss-app.xml
r1167 r2128 6 6 <loader-repository> 7 7 omero:app=omero-app 8 <loader-repository-config> 9 java2ParentDelegation=false 8 <loader-repository-config> 9 java2ParentDelegation=false 10 10 </loader-repository-config> 11 11 </loader-repository> 12 <module>13 <service>omero-ds.xml</service>14 </module>15 <module>16 <service>jboss-service.xml</service>17 </module>18 12 </jboss-app> -
trunk/components/blitz/resources/beanRefContext.xml
r1813 r2128 15 15 <value>hibernate.properties</value> 16 16 <value>omero.properties</value> 17 <value>ejb.properties</value>18 17 </list> 19 18 </property> -
trunk/components/server/.springBeans
r1967 r2128 11 11 <config>resources/ome/services/service-ome.io.nio.PixelsService.xml</config> 12 12 <config>resources/ome/services/service-ome.api.ITypes.xml</config> 13 <config>resources/ome/services/in-container.xml</config>14 13 <config>resources/ome/services/services.xml</config> 15 14 <config>resources/ome/services/service-ome.api.IQuery.xml</config> … … 45 44 <config>resources/ome/services/service-ome.io.nio.PixelsService.xml</config> 46 45 <config>resources/ome/services/service-omeis.providers.re.RenderingEngine.xml</config> 47 <config>resources/ome/services/in-container.xml</config>48 46 </configs> 49 47 </configSet> -
trunk/components/server/resources/beanRefContext.xml
r2030 r2128 15 15 <value>hibernate.properties</value> 16 16 <value>omero.properties</value> 17 <value>ejb.properties</value>18 17 </list> 19 18 </property> … … 41 40 <value>classpath*:ome/services/service-*.xml</value> 42 41 <value>classpath:ome/services/hibernate.xml</value> 43 <value>classpath:ome/services/ ${container.status}.xml</value>42 <value>classpath:ome/services/datalayer.xml</value> 44 43 </list> 45 44 </constructor-arg> -
trunk/components/server/resources/ome/services/config-local.xml
r1167 r2128 38 38 <value>omero.properties</value> 39 39 <value>local.properties</value> 40 <value>ejb.properties</value>41 40 </list> 42 41 </property> -
trunk/components/server/src/ome/logic/AdminImpl.java
r2122 r2128 74 74 import org.jboss.annotation.ejb.RemoteBinding; 75 75 import org.jboss.annotation.ejb.RemoteBindings; 76 import org.jboss.annotation.security.SecurityDomain;77 76 import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; 78 77 import org.springframework.jmx.support.JmxUtils; … … 109 108 @Local(IAdmin.class) 110 109 @LocalBinding(jndiBinding = "omero/local/ome.api.IAdmin") 111 @SecurityDomain("OmeroSecurity")112 110 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 113 111 public class AdminImpl extends AbstractLevel2Service implements LocalAdmin { -
trunk/components/server/src/ome/logic/ConfigImpl.java
r1949 r2128 30 30 import org.jboss.annotation.ejb.RemoteBinding; 31 31 import org.jboss.annotation.ejb.RemoteBindings; 32 import org.jboss.annotation.security.SecurityDomain;33 32 import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; 34 33 import org.springframework.transaction.annotation.Transactional; … … 137 136 */ 138 137 @LocalBinding(jndiBinding = "omero/local/ome.api.IConfig") 139 /*140 * Source: JBoss-specific Purpose: Defines which security manager service is141 * responsible for calls to this service. This value is defined in:142 *143 * components/app/resourcs/jboss-login.xml144 *145 * and specifies where the manager should be found in JNDI.146 */147 @SecurityDomain("OmeroSecurity")148 138 /* 149 139 * Source: EJB3 Specification Purpose: List of classes (with no-arg … … 224 214 * Source: EJB3 Specification Purpose: defines the role which must have been 225 215 * obtained during authentication and authorization in order to access this 226 * method. This works in combination with the class-level @SecurityDomain227 * annotation above to fullydefine security semantics.216 * method. This works in combination with the BasicMethodSecurity to fully 217 * define security semantics. 228 218 */ 229 219 /** -
trunk/components/server/src/ome/logic/LdapImpl.java
r2100 r2128 39 39 import org.jboss.annotation.ejb.RemoteBinding; 40 40 import org.jboss.annotation.ejb.RemoteBindings; 41 import org.jboss.annotation.security.SecurityDomain;42 41 import org.springframework.jdbc.core.simple.SimpleJdbcTemplate; 43 42 import org.springframework.jmx.support.JmxUtils; … … 95 94 @Local(ILdap.class) 96 95 @LocalBinding(jndiBinding = "omero/local/ome.api.local.LocalLdap") 97 @SecurityDomain("OmeroSecurity")98 96 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 99 97 public class LdapImpl extends AbstractLevel2Service implements LocalLdap { -
trunk/components/server/src/ome/logic/PixelsImpl.java
r1966 r2128 23 23 import org.jboss.annotation.ejb.RemoteBinding; 24 24 import org.jboss.annotation.ejb.RemoteBindings; 25 import org.jboss.annotation.security.SecurityDomain;26 25 import org.springframework.transaction.annotation.Transactional; 27 26 … … 61 60 @Local(IPixels.class) 62 61 @LocalBinding(jndiBinding = "omero/local/ome.api.IPixels") 63 @SecurityDomain("OmeroSecurity")64 62 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 65 63 class PixelsImpl extends AbstractLevel2Service implements IPixels { -
trunk/components/server/src/ome/logic/PojosImpl.java
r2052 r2128 63 63 import org.jboss.annotation.ejb.RemoteBinding; 64 64 import org.jboss.annotation.ejb.RemoteBindings; 65 import org.jboss.annotation.security.SecurityDomain;66 65 import org.springframework.transaction.annotation.Transactional; 67 66 … … 85 84 @Local(IPojos.class) 86 85 @LocalBinding(jndiBinding = "omero/local/ome.api.IPojos") 87 @SecurityDomain("OmeroSecurity")88 86 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 89 87 public class PojosImpl extends AbstractLevel2Service implements IPojos { -
trunk/components/server/src/ome/logic/QueryImpl.java
r2098 r2128 47 47 import org.jboss.annotation.ejb.RemoteBinding; 48 48 import org.jboss.annotation.ejb.RemoteBindings; 49 import org.jboss.annotation.security.SecurityDomain;50 49 import org.springframework.orm.hibernate3.HibernateCallback; 51 50 import org.springframework.transaction.annotation.Propagation; … … 70 69 @Local(LocalQuery.class) 71 70 @LocalBinding(jndiBinding = "omero/local/ome.api.local.LocalQuery") 72 @SecurityDomain("OmeroSecurity")73 71 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 74 72 public class QueryImpl extends AbstractLevel1Service implements LocalQuery { -
trunk/components/server/src/ome/logic/RenderingSettingsImpl.java
r2002 r2128 32 32 import org.jboss.annotation.ejb.RemoteBinding; 33 33 import org.jboss.annotation.ejb.RemoteBindings; 34 import org.jboss.annotation.security.SecurityDomain;35 34 import org.springframework.transaction.annotation.Transactional; 36 35 … … 83 82 @Local(IRenderingSettings.class) 84 83 @LocalBinding(jndiBinding = "omero/local/ome.api.IRenderingSettings") 85 @SecurityDomain("OmeroSecurity")86 84 @TransactionManagement(TransactionManagementType.BEAN) 87 85 @Transactional -
trunk/components/server/src/ome/logic/RepositoryInfoImpl.java
r1949 r2128 27 27 import org.jboss.annotation.ejb.RemoteBinding; 28 28 import org.jboss.annotation.ejb.RemoteBindings; 29 import org.jboss.annotation.security.SecurityDomain;30 29 import org.springframework.transaction.annotation.Transactional; 31 30 … … 58 57 @Local(IRepositoryInfo.class) 59 58 @LocalBinding(jndiBinding = "omero/local/ome.api.IRepositoryInfo") 60 @SecurityDomain("OmeroSecurity")61 59 @Interceptors( { SimpleLifecycle.class }) 62 60 public class RepositoryInfoImpl extends AbstractLevel2Service implements -
trunk/components/server/src/ome/logic/TypesImpl.java
r2100 r2128 56 56 import org.jboss.annotation.ejb.RemoteBinding; 57 57 import org.jboss.annotation.ejb.RemoteBindings; 58 import org.jboss.annotation.security.SecurityDomain;59 58 import org.springframework.transaction.annotation.Transactional; 60 59 import org.springframework.util.ResourceUtils; … … 77 76 @Local(ITypes.class) 78 77 @LocalBinding(jndiBinding = "omero/local/ome.api.ITypes") 79 @SecurityDomain("OmeroSecurity")80 78 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 81 79 public class TypesImpl extends AbstractLevel2Service implements ITypes { -
trunk/components/server/src/ome/logic/UpdateImpl.java
r1949 r2128 34 34 import org.jboss.annotation.ejb.RemoteBinding; 35 35 import org.jboss.annotation.ejb.RemoteBindings; 36 import org.jboss.annotation.security.SecurityDomain;37 36 import org.springframework.orm.hibernate3.HibernateCallback; 38 37 import org.springframework.transaction.annotation.Transactional; … … 67 66 @Local(LocalUpdate.class) 68 67 @LocalBinding(jndiBinding = "omero/local/ome.api.local.LocalUpdate") 69 @SecurityDomain("OmeroSecurity")70 68 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 71 69 public class UpdateImpl extends AbstractLevel1Service implements LocalUpdate { -
trunk/components/server/src/ome/services/JobBean.java
r2008 r2128 42 42 import org.jboss.annotation.ejb.LocalBinding; 43 43 import org.jboss.annotation.ejb.RemoteBinding; 44 import org.jboss.annotation.security.SecurityDomain;45 44 import org.springframework.transaction.annotation.Transactional; 46 45 … … 60 59 @LocalBinding(jndiBinding = "omero/local/ome.api.JobHandle") 61 60 @Interceptors( { OmeroAroundInvoke.class }) 62 @SecurityDomain("OmeroSecurity")63 61 public class JobBean extends AbstractStatefulBean implements JobHandle, 64 62 ProcessCallback { -
trunk/components/server/src/ome/services/RawFileBean.java
r1949 r2128 44 44 import org.jboss.annotation.ejb.RemoteBinding; 45 45 import org.jboss.annotation.ejb.RemoteBindings; 46 import org.jboss.annotation.security.SecurityDomain;47 46 import org.springframework.transaction.annotation.Transactional; 48 47 … … 68 67 @LocalBinding(jndiBinding = "omero/local/ome.api.RawFileStore") 69 68 @Interceptors( { OmeroAroundInvoke.class }) 70 @SecurityDomain("OmeroSecurity")71 69 public class RawFileBean extends AbstractStatefulBean implements RawFileStore { 72 70 /** -
trunk/components/server/src/ome/services/RawPixelsBean.java
r1949 r2128 32 32 import org.jboss.annotation.ejb.RemoteBinding; 33 33 import org.jboss.annotation.ejb.RemoteBindings; 34 import org.jboss.annotation.security.SecurityDomain;35 34 import org.springframework.transaction.annotation.Transactional; 36 35 … … 70 69 @LocalBinding(jndiBinding = "omero/local/ome.api.RawPixelsStore") 71 70 @Interceptors( { OmeroAroundInvoke.class }) 72 @SecurityDomain("OmeroSecurity")73 71 public class RawPixelsBean extends AbstractStatefulBean implements RawPixelsStore { 74 72 /** The logger for this particular class */ -
trunk/components/server/src/ome/services/RenderingBean.java
r2011 r2128 69 69 import org.jboss.annotation.ejb.RemoteBindings; 70 70 import org.jboss.annotation.ejb.cache.Cache; 71 import org.jboss.annotation.security.SecurityDomain;72 71 import org.jboss.ejb3.cache.NoPassivationCache; 73 72 import org.springframework.transaction.annotation.Transactional; … … 109 108 @Local(RenderingEngine.class) 110 109 @LocalBinding(jndiBinding = "omero/local/omeis.providers.re.RenderingEngine") 111 @SecurityDomain("OmeroSecurity")112 110 @TransactionManagement(TransactionManagementType.BEAN) 113 111 @Transactional(readOnly = true) -
trunk/components/server/src/ome/services/SearchBean.java
r2109 r2128 51 51 import org.jboss.annotation.ejb.LocalBinding; 52 52 import org.jboss.annotation.ejb.RemoteBinding; 53 import org.jboss.annotation.security.SecurityDomain;54 53 import org.springframework.transaction.annotation.Transactional; 55 54 … … 69 68 @LocalBinding(jndiBinding = "omero/local/ome.api.Search") 70 69 @Interceptors( { OmeroAroundInvoke.class }) 71 @SecurityDomain("OmeroSecurity")72 70 public class SearchBean extends AbstractStatefulBean implements Search { 73 71 -
trunk/components/server/src/ome/services/ThumbnailBean.java
r2011 r2128 67 67 import org.jboss.annotation.ejb.RemoteBinding; 68 68 import org.jboss.annotation.ejb.RemoteBindings; 69 import org.jboss.annotation.security.SecurityDomain;70 69 import org.springframework.transaction.annotation.Transactional; 71 70 … … 93 92 @LocalBinding(jndiBinding = "omero/local/ome.api.ThumbnailStore") 94 93 @Interceptors( { OmeroAroundInvoke.class }) 95 @SecurityDomain("OmeroSecurity")96 94 public class ThumbnailBean extends AbstractLevel2Service implements 97 95 ThumbnailStore, Serializable { -
trunk/components/server/src/ome/services/delete/DeleteBean.java
r2033 r2128 55 55 import org.jboss.annotation.ejb.RemoteBinding; 56 56 import org.jboss.annotation.ejb.RemoteBindings; 57 import org.jboss.annotation.security.SecurityDomain;58 57 import org.springframework.orm.hibernate3.HibernateCallback; 59 58 import org.springframework.transaction.annotation.Transactional; … … 78 77 @Local(IDelete.class) 79 78 @LocalBinding(jndiBinding = "omero/local/ome.api.IDelete") 80 @SecurityDomain("OmeroSecurity")81 79 @Interceptors( { OmeroAroundInvoke.class, SimpleLifecycle.class }) 82 80 public class DeleteBean extends AbstractLevel2Service implements IDelete { -
trunk/etc/hibernate.properties
r2034 r2128 22 22 hibernate.validator.autoregister_listeners = false 23 23 24 container.status=out-of-container25 #This will be overwritten by ejb.properties during deployment26 24
