VinodhKumar Srinivasan

Greenhorn
+ Follow
since Feb 23, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by VinodhKumar Srinivasan

Hi All,
We are facing issues on session sharing in jboss server.

Problem statement:
A user logged in the application and seeing different username instead of his username and the data displayed are not belonging to the current user. He tried to re-login and now able to see the correct username and data. This is happening now and then, very often when the servers are restarted.

Details are:
· We have four servers to serve (jboss-eap-4.3) and running in default configuration. This is deployed as “ear”. We are using JBOSS seam framework for this application.
· F5 load balancer which takes care of routing requests to the four jboss servers. This uses sticky session concept(one server – one client for entire session concept).

We suspected the jboss could be reusing the jsessionid. We the set emptySessionPath="true" in web deployer’s server.xml to avoid session reused.This is per links mentioned below. Still the issue is resurfacing.
Reference URLs for session reuse:
http://community.jboss.org/thread/39161
http://kbase.redhat.com/faq/docs/DOC-17273

Thought of browser issue but it is not a browse issue.

Generally it is not replicable. But happening once in a while and causing confusion to the users. Not sure whether something do with F5 or jboss server. Please post your thoughts.


You help would be highly appreciated. Please let me know if you need any more information in this regard.

Thanks,
Vinodh
14 years ago
I agree the point. It is not full fledged ORM. It doesn't provide much meta data things.

-- Refection - Spring would load java objects for us. For this we don't have any specific mapping (like hbm file in hibernate). Instead the simple rule is you have to have java attributes same as your table fields. When we call the JDBC API, You can pass the SQL and java pojo. Then Spring would load the java object, this is done through reflection.



- So the Spring JDBC is like ORM but doesn't support all feature.

- Thanks to all who replied to this post.


14 years ago
Kengkaj,

Fine explanation. Here Spring JDBC gives
1.configuration files(connection, DAO injection),
2.It uses reflection to load the Java Objects from DB layer.
3. It doesn't give query language that is we have to write the native SQL query.
is the 3rd point makes Spring JDBC Just a abstract layer of JDBC?

Thanks,
Vinodh


14 years ago
Kengkaj ,
Thanks for your quick reply. I want to know ORM in simple words. That is what is ORM?

-Vinodh
14 years ago
Hey Buddies,
This a question came in to mind , when I look ed spring modules. I thing Spring DAO layer is actually a ORM. Wait I can prove it ... What is an ORM- It provides you a 1. Database connectivity,2. Mapping DB objects to Java Objects and 3. Transaction management. So this Spring DAO is a ORM.

The ORM module in spring has to be renamed as something else may be Plug your own ORM :-) or .....


What you say ?

Thanks,
Vinodh
14 years ago