What are these beans?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arthurzzk
    New Member
    • Feb 2007
    • 8

    #1

    What are these beans?

    <bean id="sesFactoryW eb" class="org.spri ngframework.orm .hibernate3.Loc alSessionFactor yBean">
    <property name="dataSourc e"><ref local="XXXXXX"/></property>
    <property name="mappingRe sources">
    <list>
    <value>Unit.hbm .xml</value>
    <value>UnitConv ersion.hbm.xml</value>
    <value>UnitClas s.hbm.xml</value>
    </list>
    </property>
    <property name="hibernate Properties">
    <props>
    <prop key="hibernate. dialect">org.hi bernate.dialect .Oracle9Dialect </prop>
    <prop key="hibernate. show_sql">false </prop>
    <prop key="hibernate. format_sql">fal se</prop>
    <prop key="hibernate. cache.use_query _cache">false</prop>
    <prop key="hibernate. cache.provider_ class">org.hibe rnate.cache.EhC acheProvider</prop>
    <prop key="hibernate. jdbc.wrap_resul t_sets">true</prop>
    </props>
    </property>
    </bean>

    <!-- Spring-based persistence dao implementation -->
    <bean id="persistence Dao" class="ca.gc.ec .dmf.persistenc e.PersistenceDa oSpringImpl">
    <property name="sessionFa ctory" ref="sesFactory Web" />
    </bean>

    Can some one tell me what are these beans?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by arthurzzk
    <bean id="sesFactoryW eb" class="org.spri ngframework.orm .hibernate3.Loc alSessionFactor yBean">
    <property name="dataSourc e"><ref local="XXXXXX"/></property>
    <property name="mappingRe sources">
    <list>
    <value>Unit.hbm .xml</value>
    <value>UnitConv ersion.hbm.xml</value>
    <value>UnitClas s.hbm.xml</value>
    </list>
    </property>
    <property name="hibernate Properties">
    <props>
    <prop key="hibernate. dialect">org.hi bernate.dialect .Oracle9Dialect </prop>
    <prop key="hibernate. show_sql">false </prop>
    <prop key="hibernate. format_sql">fal se</prop>
    <prop key="hibernate. cache.use_query _cache">false</prop>
    <prop key="hibernate. cache.provider_ class">org.hibe rnate.cache.EhC acheProvider</prop>
    <prop key="hibernate. jdbc.wrap_resul t_sets">true</prop>
    </props>
    </property>
    </bean>

    <!-- Spring-based persistence dao implementation -->
    <bean id="persistence Dao" class="ca.gc.ec .dmf.persistenc e.PersistenceDa oSpringImpl">
    <property name="sessionFa ctory" ref="sesFactory Web" />
    </bean>

    Can some one tell me what are these beans?
    Depends on what they are being used for. You tell us, it's your code so I guess you are supposed to know that more than us.

    Comment

    • N002199B
      New Member
      • Feb 2007
      • 41

      #3
      Originally posted by r035198x
      Depends on what they are being used for. You tell us, it's your code so I guess you are supposed to know that more than us.
      Look in the J2EE specification. They are an enterprise-wide way of developing java classes that easier to deploy over the web and appServers. They are generic with a similar structure. From the few encounters that I have had with them they are a robust architecture with security, transaction monitoring etc. and have various other advantages.

      It's a whole big paradigm (Session, Entity and Message Beans) and I have to agree with 'r0'. We can only assisst if u tell us where u are using them and how they are failing to meet what you want.

      Comment

      Working...