How many no of method can we write in a session bean

Discussions

EJB programming & troubleshooting: How many no of method can we write in a session bean

  1. I am using JBuilder 2005 with weblogic server 8.1 I am having a problem which is when ever I tried to make the more then 30 method in session bean, my project compile and run but when I tried to call thtat 31st method say "GETMess" my webserver give the runtime exception "can not find symbol "GETMess"
  2. I suggest you divide the session bean to two or three bean. According to the principal of Object-oriented Design, there should be no huge class that can do many things.

    So, I believe the best way to handle this situation is to follow the Object-oriented rules.
  3. I don't think there is any limit on the number of methods you can write in session bean. One of our session bean had 50 methods and it was working fine. I guess the problem is something else. Check if you have defined the method in the remote interface class too.