Results 1 to 2 of 2

Thread: Maintaining State of the Object

  1. #1
    Join Date
    Aug 2004
    Posts
    4

    Default Maintaining State of the Object

    Hi,

    I am developing an application web using Spring, Hibernate and Struts the architecture is based in services that are instanciados directly for Spring. I noticed that the state of my objects is maintained even without me to define that, as if I had using EJB of the type statefull, proém I don't want to maintain the state of the object where I define that ?

    Thank you,

    Fábio Ribereite

    my applicationContext.xml


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">

    <beans>
    <!-- ##### DECLARACAO DO DATA SOURCE ##### -->
    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
    <property name="driverClassName">
    <value>com.inet.tds.TdsDriver</value>
    </property>
    <property name="url">
    <value>jdbc:inetdae:floripa:1433?database=sansys </value>
    </property>
    <property name="username">
    <value>sa</value>
    </property>
    <property name="password">
    <value>jtech</value>
    </property>
    </bean>

    <!-- ##### DECLARACAO DO HIBERNATE FACTORY ##### -->
    <bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSess ionFactoryBean">
    <property name="dataSource">
    <ref local="dataSource"/>
    </property>
    <property name="mappingResources">
    <list>
    <value>br/com/sansys/infraestrutura/dominio/sansysArrecadacao.hbm.xml</value>
    <value>br/com/sansys/infraestrutura/dominio/sansysCadastros.hbm.xml</value>
    <value>br/com/sansys/infraestrutura/dominio/sansysFaturamento.hbm.xml</value>
    <value>br/com/sansys/infraestrutura/dominio/sansysInfra.hbm.xml</value>
    <value>br/com/sansys/infraestrutura/dominio/sansysOperacional.hbm.xml</value>
    <value>br/com/sansys/infraestrutura/dominio/sansysSeguranca.hbm.xml</value>
    <value>br/com/sansys/infraestrutura/dominio/sansysTabelas.hbm.xml</value>
    </list>
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">net.sf.hibernate.dialect.S QLServerDialect</prop>
    <prop key="hibernate.show_sql">false</prop>
    </props>
    </property>
    </bean>

    <!-- ##### DECLARACAO DO CONTROLE TRANSACIONAL ##### -->
    <bean id="transactionManager"
    class="org.springframework.orm.hibernate.Hibernate TransactionManager">
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- ##### DECLARACAO DE SERVICOS ##### -->
    <!-- ##### MODULO TABELAS ##### -->

    <!-- Manter Endereço Cliente -->
    <bean id="servicoManterEnderecoCliente" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterEnderecoCliente"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterEnderecoCliente" class="br.com.sansys.cadastros.servico.ManterEnder ecoClienteServicoImpl">

    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterClienteDAO">
    <ref local="manterClienteDAO"/>
    </property>

    </bean>

    <!-- Manter Cliente -->
    <bean id="servicoManterCliente" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterCliente"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterCliente" class="br.com.sansys.cadastros.servico.ManterClien teServicoImpl">
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manter Usuario -->
    <bean id="servicoSegurancaUsuario" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplSegurancaUsuario"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplSegurancaUsuario" class="br.com.sansys.seguranca.servico.ManterUsuar ioServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterUsuarioDAO">
    <ref local="manterUsuarioDAO"/>
    </property>
    </bean>

    <!-- Manter Perfil Acesso -->
    <bean id="servicoSegurancaPerfilAcesso" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplSegurancaPerfilAcesso"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplSegurancaPerfilAcesso" class="br.com.sansys.seguranca.servico.ManterPerfi lAcessoServicoImpl">
    <property name="manterPerfilAcessoDAO">
    <ref local="manterPerfilAcessoDAO"/>
    </property>
    </bean>

    <!-- Logar Usuario -->
    <bean id="logarServico" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="logarServicoImpl"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="logarServicoImpl" class="br.com.sansys.seguranca.servico.LogarServic oImpl">
    <property name="carregarContextoDAO"><ref local="carregarContextoDAO"/></property>
    <property name="manterUsuarioDAO"><ref local="manterUsuarioDAO"/></property>
    <property name="activeRecordDAO"><ref local="activeRecordDAO"/></property>
    </bean>

    <!-- Delegar Perfil Acesso -->
    <bean id="servicoDelegarPerfilAcesso" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="delegarFuncionalidadePerfilAcessoServico"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="delegarFuncionalidadePerfilAcessoServico" class="br.com.sansys.seguranca.servico.DelegarFunc ionalidadePerfilAcessoServicoImpl">
    <property name="manterPerfilAcessoDAO">
    <ref local="manterPerfilAcessoDAO"/>
    </property>
    <property name="manterModuloDAO">
    <ref local="manterModuloDAO"/>
    </property>
    <property name="manterFuncionalidadePerfilDAO">
    <ref local="manterFuncionalidadePerfilDAO"/>
    </property>
    <property name="manterAcaoFuncionalidadeDAO">
    <ref local="manterAcaoFuncionalidadeDAO"/>
    </property>
    <property name="manterPermissaoDAO">
    <ref local="manterPermissaoDAO"/>
    </property>
    </bean>

    <!--Componente de pesquisa -->
    <bean id="componentePesquisaServico" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target"><ref local="componenteImplServicoPesquisa"/></property>
    <property name="transactionAttributes">
    <props>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="componenteImplServicoPesquisa" class="br.com.sansys.infraestrutura.servico.Compon entePesquisaServicoImpl">
    <property name="efetuarPesquisaDAO"><ref local="efetuarPesquisaDAO"/>
    </property>
    </bean>

    <!-- Manter Municipio -->
    <bean id="servicoManterMunicipio" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterMunicipio"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterMunicipio" class="br.com.sansys.tabelas.servico.ManterMunicip ioServicoImpl">
    <property name="manterMunicipioDAO">
    <ref local="manterMunicipioDAO"/>
    </property>
    <property name="manterAtivoDAO">
    <ref local="manterAtivoDAO"/>
    </property>
    <property name="manterUfDAO">
    <ref local="manterUfDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    </bean>

    <!-- Manter Tabelas Basicas -->
    <bean id="servicoManterTabelasBasicas" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTabelasBasicas"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTabelasBasicas" class="br.com.sansys.tabelas.servico.ManterTabelas BasicasServicoImpl">
    <property name="manterTabelasBasicasDAO">
    <ref local="manterTabelasBasicasDAO"/>
    </property>
    <property name="tabelaBasicaDAO">
    <ref local="tabelaBasicaDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    </bean>

    <!-- Manter Marca Hidrometro -->
    <bean id="servicoManterMarcaHidrometro" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplMarcaHidrometro"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplMarcaHidrometro" class="br.com.sansys.tabelas.servico.ManterMarcaHi drometroServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterAtivoDAO">
    <ref local="manterAtivoDAO"/>
    </property>
    </bean>

    <!-- Manter Bairro -->
    <bean id="servicoManterBairro" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterBairro"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterBairro" class="br.com.sansys.tabelas.servico.ManterBairroS ervicoImpl">
    <property name="manterMunicipioDAO">
    <ref local="manterMunicipioDAO"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    </bean>

    <!-- Manter Agencia -->
    <bean id="servicoManterAgencia" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterAgencia"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterAgencia" class="br.com.sansys.tabelas.servico.ManterAgencia ServicoImpl">
    <property name="manterAgenciaDAO">
    <ref local="manterAgenciaDAO"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>


    <!-- Manter Agente Arrecadador -->
    <bean id="servicoManterAgenteArrecadador" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterAgenteArrecadador"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterAgenteArrecadador" class="br.com.sansys.tabelas.servico.ManterAgenteA rrecadadorServicoImpl">

    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manter Logradouro -->
    <bean id="servicoManterLogradouro" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterLogradouro"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterLogradouro" class="br.com.sansys.tabelas.servico.ManterLogrado uroServicoImpl">
    <property name="manterAtivoDAO">
    <ref local="manterAtivoDAO"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterBairroDAO">
    <ref local="manterBairroDAO"/>
    </property>
    <property name="manterMunicipioDAO">
    <ref local="manterMunicipioDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    </bean>

    <!-- Manter Faixa Leitura Esperada -->
    <bean id="servicoManterFaixaLeituraEsperada" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterFaixaLeituraEsperada"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>

    <bean id="servicoImplManterFaixaLeituraEsperada" class="br.com.sansys.tabelas.servico.ManterFaixaLe ituraEsperadaServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manter Faixa Logradouro -->
    <bean id="servicoManterFaixaLogradouro" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterFaixaLogradouro"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterFaixaLogradouro" class="br.com.sansys.tabelas.servico.ManterFaixaLo gradouroServicoImpl">
    <property name="manterAtivoDAO">
    <ref local="manterAtivoDAO"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterBairroDAO">
    <ref local="manterBairroDAO"/>
    </property>
    <property name="manterLogradouroDAO">
    <ref local="manterLogradouroDAO"/>
    </property>
    <property name="manterMunicipioDAO">
    <ref local="manterMunicipioDAO"/>
    </property>
    </bean>

    <!-- Manter Capacidade Hidrometro -->
    <bean id="servicoManterCapacidadeHidrometro" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterCapacidadeHidrometro"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterCapacidadeHidrometro" class="br.com.sansys.tabelas.servico.ManterCapacid adeHidrometroServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterCapacidadeHidrometroDAO">
    <ref local="manterCapacidadeHidrometroDAO"/>
    </property>
    </bean>

    <!-- Manter Titulo Patente -->
    <bean id="servicoManterTituloPatente" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTituloPatente"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTituloPatente" class="br.com.sansys.tabelas.servico.ManterTituloP atenteServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    </bean>

    <!-- Manter Modelo Hidrometro -->
    <bean id="servicoManterModeloHidrometro" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterModeloHidrometro"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterModeloHidrometro" class="br.com.sansys.tabelas.servico.ManterModeloH idrometroServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    <property name="manterModeloHidrometroDAO">
    <ref local="manterModeloHidrometroDAO"/>
    </property>
    </bean>

    <!-- Manter Tipo Logradouro -->
    <bean id="servicoManterTipoLogradouro" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTipoLogradouro"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTipoLogradouro" class="br.com.sansys.tabelas.servico.ManterTipoLog radouroServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    </bean>

    <!-- Manter Servico Definicao -->
    <bean id="servicoManterServicoDefinicao" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterServicoDefinicao"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterServicoDefinicao" class="br.com.sansys.tabelas.servico.ManterServico DefinicaoServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manter Classe Servico -->
    <bean id="servicoManterClasseServico" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterClasseServico"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterClasseServico" class="br.com.sansys.tabelas.servico.ManterClasseS ervicoServicoImpl">
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manter Tomadas -->
    <bean id="servicoManterTomada" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTomada"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTomada" class="br.com.sansys.tabelas.servico.ManterTomadaS ervicoImpl">
    <property name="manterTomadaDAO">
    <ref local="manterTomadaDAO"/>
    </property>
    <property name="gerenciadorChaves">
    <ref local="gerenciadorChaves"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manter Tipo Estrutura Empresa -->
    <bean id="servicoManterTipoEstruturaEmpresa" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTipoEstruturaEmpresa"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTipoEstruturaEmpresa" class="br.com.sansys.tabelas.servico.ManterTipoEst ruturaEmpresaServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterTipoEstruturaEmpresaDAO">
    <ref local="manterTipoEstruturaEmpresaDAO"/>
    </property>
    </bean>

    <!-- Pesquisar Estrutura Empresa Localizacao -->
    <bean id="servicoPesquisarEstruturaLocalizacao" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplPesquisarEstruturaEmpresaLocaliz acao"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplPesquisarEstruturaEmpresaLocalizaca o" class="br.com.sansys.tabelas.servico.PesquisarEstr uturaEmpresaLocalizacaoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterEstruturaEmpresaDAO">
    <ref local="manterEstruturaEmpresaDAO"/>
    </property>
    <property name="componentePesquisaServico">
    <ref bean="componentePesquisaServico"/>
    </property>
    <property name="pesquisarEstruturaLocalizacaoDAO">
    <ref bean="pesquisarEstruturaLocalizacaoDAO"/>
    </property>
    </bean>

    <!-- Help -->
    <bean id="componenteHelpServico" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="componenteHelpServicoImpl"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="componenteHelpServicoImpl" class="br.com.sansys.infraestrutura.servico.Compon enteHelpServicoImpl">
    <property name="componenteHelpNegocio">
    <ref local="componenteHelpNegocio"/>
    </property>

    </bean>
    <!-- Manter Categoria Tipo Tarifa -->
    <bean id="servicoManterCategoriaTipoTarifa" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterCategoriaTipoTarifa"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterCategoriaTipoTarifa" class="br.com.sansys.tabelas.servico.ManterCategor iaTipoTarifaServicoImpl">

    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>


    <!-- Manutenção de Estrutura Empresa -->
    <bean id="servicoManterEstruturaEmpresa" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterEstruturaEmpresa"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterEstruturaEmpresa" class="br.com.sansys.tabelas.servico.ManterEstrutu raEmpresaServicoImpl">

    <property name="manterEstruturaEmpresaDAO">
    <ref local="manterEstruturaEmpresaDAO"/>
    </property>

    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>

    <property name="manterMunicipioDAO">
    <ref local="manterMunicipioDAO"/>
    </property>
    </bean>

    <!-- Manutenção de Tarifa -->
    <bean id="servicoManterTarifa" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTarifa"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTarifa" class="br.com.sansys.tabelas.servico.ManterTarifaS ervicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manutenção de Tabela Tarifaria -->
    <bean id="servicoManterTabelaTarifaria" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTabelaTarifaria"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTabelaTarifaria" class="br.com.sansys.tabelas.servico.ManterTabelaT arifariaServicoImpl">

    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manutenção de Faixa Tarifa -->
    <bean id="servicoManterFaixaTarifa" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterFaixaTarifa"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterFaixaTarifa" class="br.com.sansys.tabelas.servico.ManterFaixaTa rifaServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="manterFaixaTarifaDAO">
    <ref local="manterFaixaTarifaDAO"/>
    </property>
    </bean>
    <!-- Manter Localização -->
    <bean id="servicoManterLocalizacao" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterLocalizacao"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterLocalizacao" class="br.com.sansys.tabelas.servico.ManterLocaliz acaoServicoImpl">

    <property name="manterLocalizacaoDAO">
    <ref local="manterLocalizacaoDAO"/>
    </property>

    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Manter Tipo Localizacao -->
    <bean id="servicoManterTipoLocalizacao" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterTipoLocalizacao"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplManterTipoLocalizacao" class="br.com.sansys.tabelas.servico.ManterTipoLoc alizacaoServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>


    <!-- Tabela Tarifaria Existente -->
    <bean id="servicoProcessoTabelaTarifariaExistente" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplProcessoTabelaTarifariaExistente "/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>

    <bean id="servicoImplProcessoTabelaTarifariaExistente" class="br.com.sansys.tabelas.servico.ProcessoTabel aTarifariaExistenteServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    <property name="processoTabelaTarifariaExistenteNegocio">
    <ref local="processoTabelaTarifariaExistenteNegocio"/>
    </property>
    </bean>

    <bean id="processoTabelaTarifariaExistenteNegocio" class="br.com.sansys.tabelas.negocio.ProcessoTabel aTarifariaExistenteNegocioImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Serviço Manter Economia -->
    <bean id="servicoManterEconomia" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplManterEconomia"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>

    <bean id="servicoImplManterEconomia" class="br.com.sansys.cadastros.servico.ManterEcono miaServicoImpl">
    <property name="manterEconomiaDAO">
    <ref local="manterEconomiaDAO"/>
    </property>
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- Componente Pesquisar Endereco -->
    <bean id="servicoComponentePesquisaEndereco" class="org.springframework.transaction.interceptor .DefaultTransactionAttribute">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="preInterceptors">
    <list>
    <ref local="sansysInterceptador"/>
    </list>
    </property>
    <property name="target">
    <ref local="servicoImplComponentePesquisaEndereco"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="alterar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="excluir*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="gravar*">PROPAGATION_REQUIRED, -Exception</prop>
    <prop key="*">PROPAGATION_REQUIRED, -Exception</prop>
    </props>
    </property>
    </bean>
    <bean id="servicoImplComponentePesquisaEndereco" class="br.com.sansys.infraestrutura.servico.Compon entePesquisaEnderecoServicoImpl">
    <property name="activeRecordDAO">
    <ref local="activeRecordDAO"/>
    </property>
    </bean>

    <!-- ##### DECLARACAO DE DAO ##### -->

    <!-- Manter Usuario -->
    <bean id="manterUsuarioDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterUsuarioHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Perfil de Acesso -->
    <bean id="manterPerfilUsuarioDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterPerfilUsuarioHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Perfil Acesso -->
    <bean id="manterPerfilAcessoDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterPerfilAcessoHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Logar Usuario -->
    <bean id="carregarContextoDAO" class="br.com.sansys.seguranca.integracao.hibernat e.CarregarContextoHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>


    <!-- Manter Modulo -->
    <bean id="manterModuloDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterModuloHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Funcionalidade Modulo -->
    <bean id="manterFuncionalidadePerfilDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterFuncionalidadePerfilHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Acao Funcionalidade -->
    <bean id="manterAcaoFuncionalidadeDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterAcaoFuncionalidadeHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Permissao -->
    <bean id="manterPermissaoDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterPermissaoHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Funcionalidade -->
    <bean id="manterFuncionalidadeDAO" class="br.com.sansys.seguranca.integracao.hibernat e.ManterFuncionalidadeHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Agencia -->
    <bean id="manterAgenciaDAO" class="br.com.sansys.tabelas.integracao.hibernate. ManterAgenciaHibernate">
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Gerenciador de Chaves -->
    <bean id="gerenciadorChaves" class="br.com.sansys.infraestrutura.util.component e.GerenciadorChaves">
    <property name="tabelaBasicaDAO">
    <ref local="tabelaBasicaDAO"/>
    </property>
    </bean>
    <bean id="tabelaBasicaDAO" class="br.com.sansys.infraestrutura.integracao.hib ernate.TabelaBasicaHibernate">
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Gerenciador Log -->
    <bean id="gerenciadorLog" class="br.com.sansys.infraestrutura.util.component e.GerenciadorLog">
    <property name="gerenciadorLogDAO">
    <ref local="gerenciadorLogDAO"/>
    </property>
    </bean>

    <bean id="gerenciadorLogDAO" class="br.com.sansys.infraestrutura.integracao.hib ernate.GerenciadorLogHibernate">
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Interceptador -->
    <bean id="sansysInterceptador" class="br.com.sansys.infraestrutura.util.intercept ador.SansysInterceptador"/>


    <!--Componente de pesquisa -->
    <bean id="efetuarPesquisaDAO" class="br.com.sansys.infraestrutura.integracao.hib ernate.EfetuarPesquisaHibernate">
    <property name="sessionFactory"><ref local="sessionFactory"/>
    </property>
    </bean>

    <!--Manter Cargo -->
    <bean id="manterCargoDAO" class="br.com.sansys.tabelas.integracao.hibernate. ManterCargoHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory"><ref local="sessionFactory"/>
    </property>
    </bean>

    <!--Manter Estrutura Empresa -->
    <bean id="manterEstruturaEmpresaDAO" class="br.com.sansys.tabelas.integracao.hibernate. ManterEstruturaEmpresaHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory"><ref local="sessionFactory"/>
    </property>
    </bean>
    <bean id="manterAtivoDAO" class="br.com.sansys.tabelas.integracao.hibernate. ManterAtivoHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory"><ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Municipio -->

    <bean id="manterMunicipioDAO" class="br.com.sansys.tabelas.integracao.hibernate. ManterMunicipioHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Uf -->

    <bean id="manterUfDAO" class="br.com.sansys.tabelas.integracao.hibernate. ManterUfHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Manter Tabelas Basicas -->

    <bean id="manterTabelasBasicasDAO" class="br.com.sansys.tabelas.integracao.hibernate. ManterTabelasBasicasHibernate">
    <property name="gerenciadorLog">
    <ref local="gerenciadorLog"/>
    </property>
    <property name="sessionFactory">
    <ref local="sessionFactory"/>
    </property>
    </bean>

    <!-- Active Record -->

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    I don't actually understand exactly what you're asking, i.e. what your problem is.

    As per the manual though, beans you instantiate are singletons by default, unless you change that with the singleton attribute. If your objects actually have state, then you need to make them non-singletons...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  5. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •