• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

enterprise bean must not attempt to define a class in a package

 
Saurabh Chaubey
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the statement "The enterprise bean must not attempt to define a class in a package" actually mean?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check thisClick Here
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
However you can define a bean inside a package but the access of the bean class must not be only to package..
 
Benoît de Chateauvieux
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confirmation of my EJB container:

java.lang.InstantiationException: Bean class javaRanch.testPackageBean must be declared public

Beno�t
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic