subramanian_k

Greenhorn
+ Follow
since Oct 21, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by subramanian_k

Session details are replicated to all servers in the cluster even though weblogic. Weblogic suggests that if the object is big(unlike RMI stub) do not store the information in the Session since it may have an effect on performance. I think there is some better way like you can use in-memory replication(as weblogic calls it) or database storage since it is not replicated.
If session is created and user tries to login from another computer one more time, then I feel it will be a new session. Because that browser and computer will not have the same cookie and it will be a new session only. ( All user are treated as guest(in weblogic unless specified) unless they have specific username access and then it does not matter.)
You can check whether it is a new session by using session.isNew() method to find out whether is is a new session.
Hope it helps.

Regards,
K.Subramanian


[This message has been edited by subramanian_k (edited December 08, 2000).]
24 years ago
Hi!
As I understand, the EJB design very much depends upon the following details:
1.Application server you are using
Each application server is strong in some areas like human beings. For example, Weblogic is having JDBC Type Driver 4 for Sqlserver and informix and we can expect the database access will be faster and naturally support Entity beans better. So you may divide the Entity beans smaller also as we will be using connection pooling with better JDBC driver and it is preferable to have small bean doing small jobs and we do not clog the system.
I am just making one point but you may have to go through the documents to find out the good points of the App server you are going to use, then you can decide what to do regarding dividing of beans.
2. the database vs. server capacity,
If the database size is smaller compared to server capacity the whole database will be moved to memory and it will have an impact.
3. To my knowledge java class will be faster and using Ejb bean is likely to be slower.
I hope this helps you.

Regards,
K.Subramanian

Hi!
My full name is Subramanian Kalyanasundaram, where Kalyanasundaram is my father's name. My name is K.Subramanian every where. If i replace the full name of Subramanian Kalyanasundaram it will exceed the width of UserName. So, I preferred this name. Please let me know whether I have to change my name to follow the rule.
K.Subramanian
24 years ago
Hi!
I feel it is fairly simple. When the user want to verify his cart, use a servlet, say ServletA, to show the items selected with an option to remove the item not needed (u can use proper html input type like checkbox,radio buttion etc. as desired/required). This servlet should call another servlet, say ServletB. ServletB should parse the parameters passed to it and delete them in database using the session identification(through JDBC) after getting a final confirmation from the user. I think this u can do yourself. I am sure you will find free sites in internet for servlet where you can find source codes.
Regards,
K.Subramanian
24 years ago
Hi!
I have to find number of days between any given two dates and do some calculations based on it.I thought of three ways to do it(?)
First by converting date into int either as second, minute, hour, date, month, hour by using the Calendar.set() and Calendar.get() methods. Second by converting date as millisecond by using Calendar.set() and Calendar.getTime() and Date.getTime(). Third pass them as string and converting them as integer and doing the calculations. In all the above cases I am planning to use 60*60*24 with proper number of days per month taking leap year also into account.
In other words, I am converting my some method date into int or long and doing the calculations. Whether there is any better way to do it directly using Calendar or Date package ? Am I reinventing the wheel with fancy? Any suggestions regarding this is helpful.
Regards,
Subramanian
[This message has been edited by subramanian_k (edited November 27, 2000).]
24 years ago