• Post Reply Bookmark Topic Watch Topic
  • New Topic

HELP!!! JNDI bind hangs due to equals and hashCode?  RSS feed

 
Ryan P. Kane
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've been messing around with JNDI and Weblogic for a course I'm currently taking. I've created a class called StudentInfo, which includes fields such as firstName, lastName, address, phone, and email. This class also implements Serializable, so that I can bind it to the JNDI tree. Here's the deal though, as soon as I add the equals and hashCode methods to the StudentInfo class, I'm no longer able to bind the object to the tree. It just hangs at the line:

ctx.bind(bindName, studentInfo);

If I remove the both the equals and hashCode methods, it binds fine. So I thought maybe it was one of those methods. Well, I put System.err.println("test") statements in the top of each method, and neither one prints a thing. So the methods seem to be causing it to hang, yet they themselves are never called. Any help would be greatly appreciated.

Thanks,
Ryan
 
Ryan P. Kane
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I found the solution to my own problem. A simple restart did the trick. The changes I made to my StudentInfo class were not noticed by the server. I had even unbound any previos instances of StudentInfo, but restarting reset everything, so that StudentInfo initially had the right methods. If someone can explain this to me in better detail, I'd appreciate it. Thanks,

Ryan
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!