473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What are these beans?

<bean id="sesFactoryWeb" class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
<property name="dataSource"><ref local="XXXXXX"/></property>
<property name="mappingResources">
<list>
<value>Unit.hbm.xml</value>
<value>UnitConversion.hbm.xml</value>
<value>UnitClass.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Orac le9Dialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.format_sql">false</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.cache.provider_class">org.hibernate .cache.EhCacheProvider</prop>
<prop key="hibernate.jdbc.wrap_result_sets">true</prop>
</props>
</property>
</bean>

<!-- Spring-based persistence dao implementation -->
<bean id="persistenceDao" class="ca.gc.ec.dmf.persistence.PersistenceDaoSpri ngImpl">
<property name="sessionFactory" ref="sesFactoryWeb" />
</bean>

Can some one tell me what are these beans?
Mar 14 '07 #1
2 1568
r035198x
13,262 8TB
<bean id="sesFactoryWeb" class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
<property name="dataSource"><ref local="XXXXXX"/></property>
<property name="mappingResources">
<list>
<value>Unit.hbm.xml</value>
<value>UnitConversion.hbm.xml</value>
<value>UnitClass.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Orac le9Dialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.format_sql">false</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.cache.provider_class">org.hibernate .cache.EhCacheProvider</prop>
<prop key="hibernate.jdbc.wrap_result_sets">true</prop>
</props>
</property>
</bean>

<!-- Spring-based persistence dao implementation -->
<bean id="persistenceDao" class="ca.gc.ec.dmf.persistence.PersistenceDaoSpri ngImpl">
<property name="sessionFactory" ref="sesFactoryWeb" />
</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.
Mar 15 '07 #2
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.
Mar 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tushar | last post by:
Hello, I am working on a client server application involving TOMCAT as Web server, MySQl as the DB and combination of JSP, Servlet, and JavaBeans to access and write Data back. There is...
3
by: yongbl | last post by:
Hi, I need to do a client-server project that involves TCP/IP and XML. I want to make it a meaningful project. My friends suggested doing a project on Web Service. What kind of web services...
70
by: Roy Yao | last post by:
Does it mean "(sizeof(int))* (p)" or "sizeof( (int)(*p) )" ? According to my analysis, operator sizeof, (type) and * have the same precedence, and they combine from right to left. Then this...
13
by: gtux | last post by:
Hi everybody: I'm new in Javascript, I found some code and there is this: var fruit = { 'apple' : { 'weight' : 10, 'cost' : 9}, 'peach' : { 'weight' : 19, 'cost' : 10} }
1
by: maya | last post by:
I started a new job recently for which I need to learn both beans and taglibs (at my last job also did JSP but they didn't use beans or taglibs..) reading up on this in oreilly (JSP, 3rd ed.) I...
1
by: shreya | last post by:
i am new to beans in jsp. I used the .class (UserData.class)in new jsp In my jsp i have written <jsp:useBean id="user" class="UserData" scope="session" /> but when i compile it cannot resolve...
5
by: mjahabarsadiq | last post by:
Hello Friends, I need to know the way to use beans with jsp. If anybody know please help me.. I would like to have the output of the beans to be returned to the jsp page. Please help me..
4
jeffbroodwar
by: jeffbroodwar | last post by:
Hi Guys, I just want to hear your understanding of Java Beans. I mean it doesn't just expose properties (for parameters) right? Java beans must be able to do what variables can't. i need...
1
by: shivapadma | last post by:
i know javabean is nothing but a class written in java language the business logic is written in javabean but, i want know the advantages and objectives of using javabeans question :...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.