Susil Parida

Greenhorn
+ Follow
since Jan 09, 2003
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 Susil Parida

I fully agree with Louis's statement. It is the architectural decision to go for what depending on the volume traffic it intended to handle, the kind of infrastructure they are going to provide. If somebody is going to hanle 100 users a day then it is better he should go for no EJB, if the volume is high and having high capacity servers at disposal then should go EJB (Statefull and Stateless as per the application requirement).
If You are using session bean, then objects will be created by the application server before hand and will be served to you as on when required. The object creation is quite expensive operation.
Regards
Susil Parida
HCL Tech
Websphere 4.0AE single server edition admin repository get stored in local file system in cofig file and in WAS 4.0 AE (Advance edition)get stored in database in EJSADMIN schema.
More information you can get in infocentre or in Redbooks.
21 years ago
Server would not do any automatic deleting of Files in the server. To achieve that you do your clean up job in ejbRemove()of the EJB.It will be called at the timeout of the bean. I presume that you are using stateful session bean for the purpose.
There is only overhead is to extract the nested Exception
I would suggest to take out the nested Exception in Session bean and if it is DuplicateKeyException then handle accordingly.
Code is there at
http://free.hostdepartment.com/s/susilparida/NestedException.html
The variables declared as transient will be not passivated so as good as automatically becoming null. If you have some resources like DB connection and Files then you need to release them in passivation. In above example only String a with value "Hari" will be passivated.
String b will be initialized as null when the bean will get activated.
COM can be compared with java bean not EJBS.
DCOM or .Net Remoting can be compared with EJB.
by the time the exception reaches the bean it gets converted to general exception.
Hi,
Can you elaborate bit more like Is there any appserver involved or EJB involved.
It may be that your User Defined Exception is comming trough a layer of EJB and getting converted to RemoteException<.So getting caught in general Exception block.
Please clarify, so that we reach at solution.
Cheers
[ January 13, 2003: Message edited by: Susil Parida ]
[ January 13, 2003: Message edited by: Susil Parida ]
Hi,
Your server's servlet API may be older than 2.2 . Try with getValue() and setValue()
It will work.
Regards
Susil
21 years ago