This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!

Neha Kathuriaa

Greenhorn
+ Follow
since Sep 16, 2008
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 Neha Kathuriaa

Hi
Congrats for such a success.
Can you help me with the certification. I want to give this certification.

[ REQUEST FOR ILLEGALLY COPIED MATERIAL DELETED ]

Thanks in advance.
10 years ago
You must destroy a stateful bean instance by using the @Remove annotation when the conversation ends. Any business method can be annotated with @Remove so that upon successful completion of that business
method, the bean instance will be destroyed. If you do not remove stateful bean instances when they are no longer needed,then the number of inactive (essentially dead) instances will grow, forcing passivation/
activation in the container.
In addition to @Remove, most containers provide the ability to time out and
destroy a bean instance by setting an expiration time in the vendor-specific deployment descriptor. This timeout can be used to help keep the number of bean instances to a manageable number. Its purpose is to set a timer for beans that are not used by clients for longer than the specified expiration time. It is recommended you take advantage of this timeout to reduce the time that unused bean instances hang around, soaking up space.

Source : EJB 3.0 in action : Debu Panda
Also ,for transacted attribute ,if it is true .then acknowledgeMode does not matter ..But if transacted attribute is false , AcknowledgeMode is to be supplied .
Best practices is to use the following settings for QueueSession. But you can use any according to your requiremnt . Ususally , false is used to indicate that you are not creating a transactional session object. and AUTO_ACKNOWLEDGE indicates that the session will automatically acknowledge that the from a call .
Those which are unused by any application.
10 years ago
Hi
I want to know .How do we find out the unused entries in a properties file and later remove them. Any idea
Thanks
10 years ago
thanks
Actually I did not trim the data coming from the file .It had space in it.
10 years ago
hi
I am reading from a file .whose contents are

Problem is it is reteiving the data from the file .But when it enters the while loop .It does nt compares the string in the if condition .I have tried using compareTo() and equals() also.But it is not comparing the string s.Also after reading 2 lines the reader goes to the third line and brings a blank space . which it should not show.
10 years ago
Hi
Please check this iit is not going in if condition.
10 years ago
10 years ago
Hi
You can go through "A complete Reference to JAva" written by Herbert Schildt
10 years ago


i am afraid how come the fourth one in the previous post getting compiled also.it is a compilation error..See here child is extending parent that means child is a parent not vice versa .
So according to me 4 th should give the compilation error(Cannot convert from Parent to chld).
11 years ago

.Hop this is what you were looking for.
Reply please

[edit]Add code tags and delete excess whitespace. CR[/edit]
[ November 20, 2008: Message edited by: Campbell Ritchie ]
11 years ago