Mahendar Reddy

Ranch Hand
+ Follow
since Sep 27, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mahendar Reddy

Hi all,
I am new to web services and trying to invoke a sample web service using EJBs. I managed to generate WSDL and I could see that. I am struck up with writing a client program to invoke the Stateless Session Bean service. Please guide me where I can get good examples on this. I am using J2EE5.0, Eclipse6.0 and JBoss. Is there any book/material available on developing webservices using J2EE5.0.

Thanks in advance...
[ November 07, 2008: Message edited by: Mahendar Reddy ]
12 years ago
String s1="hi";
String s2="hi";
System.out.println("Test1: "+(s1==s2));

The above code snippet is returning 'Test1: true'.(Java version 1.6.0_05)

String str="hi";
String ttt="hi";
//if wont come here
reason is different objects thats it..!!

Hey Himanshu, are you sure about this? Because (str==ttt) must return true. It is returning true. How can you say both are different objects without testing?
Hi,Could anybody clarify my following doubt?

Is there any significance of 'final' modifier for private instance methods?
Hi, I am new to this forum. First of all I congratulate Stoyan for his new book. One quick question from my side.

As JavaScript can be disabled at the browser level, Is it really worth to use JavaScript?
[ August 28, 2008: Message edited by: Mahendar Reddy ]

Originally posted by Cameron Wallace McKenzie:
I've put together a list of books one could use for preparing for the SCEA JEE5 exam. I was interested in spending the summer writing one, so perhaps I will have something more focuessed on the Sun Architect exam come fall.

Recommended Reading - Books for Passing the SCEA Architect Certification

These resources are focussed on J2EE, but they will also be very indispensable for the JEE 5 SCEA exam as well. These are what I used to pass.

My priority would be the Cade book, UML Distilled, the Sun Press SCEA book, J2EE Design Patterns, Head First Design Patterns, GOF Design Patterns, and then Java Modelling in Color to help you on part II of the exam.

It's a tough exam, but if you work at it, and get the right resources, you'll pass.

Good luck!

-Cameron McKenzie

Hi Cameron, you have mentioned 'UML Distilled' in the list. Is that for Part-II?
Thanks Mikalai. You have clarified my doubt.
Thank you Jason & Cameron for your assistance.

Could you please also let me know whether UML is there in Part-I. Because none of the objectives state UML.
Hi Friends,

I am in search of SCEA5.0 books. Are there any books available in the market? Otherwise can we expect any books in near future?

Could you please clarify me whether UML is there in Part-1 exam?
Hi friends...

As I know 'EntityManager.flush()' method synchronizes the persistence context with the underlying database and 'EntityManager.refresh()' method refresh the state of the entity.

What does it exactly mean by synchronizing the persistence context with the underlying database? doesn't it update the state of all entities in that persistent context?

Thanks in advance....

Dear Friends....
Could you please provide some good links to learn annotations thoroughly.

Thanks in advance.
14 years ago
Hi Ina...

HttpSessionAttributeListenenr is implemented by any class, where as HttpSessionBindingListener is implemented by an attribute class.
Hey Kuthuram, u r missunderstanding here...

1) u r thinking 'i' is same for all 'i2','i3' & 'i4'(which would have correct if 'i' was static var). But here 'i' is instance var. So all 'i2.i','i3.i' & 'i4.i' are different.

2) Actually...

'i2' is having two references --> 'i2' & 'i4.i'
'i3' is having two references --> 'i3' & 'i2.i'
'i4' is having two references --> 'i4' & 'i3.i'.

At some point all the 'i2','i3'&'i4' are set to null.
Now u tell me "How can u access 'i' var of any of the 3 obj?"

U can't access them , right?

If u can't access 'i' how can u access object represented by 'i'?.
U can't .

As any live thread can't access the objects 'i2','i3' & 'i4' they become eligible for GC.

I hope u have understood...

Originally posted by Amisha Shah:
Write down the modifier of a method that makes the method available to all classes in the same package and to all the subclasses of this class.


public modifier not only makes the method available to all classes in the same package but also makes the method available to all classes out side the same package also...which is not asked for actually...

I hope u got it.