Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Event listeners "Whizlab question"

 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Application event listeners are Java classes following the Java bean design
that implement one or more of the event listener interfaces.


In one of the questions, this is marked as true. I don't understand the
meaning of "Java bean design". If it is about naming convention getter and
setter or something else.

Please guide!

Thanks,
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandra,

Our listener classes should follow the Javabean conventions.

private state, default constructor, getter and setter methods ;

Like this:



yesterday Websphere has thrown exception for not following Javabean standards.
[ August 11, 2007: Message edited by: Srinivasan thoyyeti ]
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yesterday Websphere has thrown exception for not following Javabean standards.


Could you please explain? I do not understand what you mean by this.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Srinivasan,
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Ku,

Why don't you give a try this time.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Srinivasan,
I did try before I asked what you meant. I get no error. No problem with the class you posted. Since you did not include any executing code, I asked what kind or error you were talking about. I ask again, what did you mean by this?

PS - Thank you for asking me to try it myself. You are always respectful of others. Since you have done this to me, I now know that it is OK for me to do it as well
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Michael,

Come on. I posted correct class following javabean naming standards.
I thought you can modify it, to violate any javabean naming standards.

Thats what i meant by try it by your self.
Sorry if I hurt you.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yesterday Websphere has thrown exception for not following Javabean standards.


I still do not understand what you meant by this? This is the only thing that I am interested in. The rest is unimportant

Would you please explain?

Thank you
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes Michael,




But Michkel Now I got what happened actually yesterday,
Since I had used parameterized constructor class X missed default\ constructor.
Thats why it has thrown Exception.

Now I am also not clear with the query Chandra posted initially.
What does that actually mean ?


[ August 11, 2007: Message edited by: Srinivasan thoyyeti ]
[ August 11, 2007: Message edited by: Ulf Dittmer ]
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I thought we were having another unusual experience with WebSphere. I think you are aware of the issue I found in the firing of events for a HttpSessionBindingListener in WebSphere. I pretty sure that you participated in the discussion (it was very good and interesting discussion by all). When I saw the work "WebSphere" I thought "here we go again with a WebSphere problem"

That was my concern...
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cristiano, you can delete or edit one of your posts by clicking on the pad and pencil icon
 
Cristiano Sganzerla
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael, i didnt know that !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic