On Thu, 2003-09-04 at 17:45, John Shields wrote: > In attempting to create a stateless session bean, the home interface > is generated with these lines... > > public static final String COMP_NAME="blah" > public static final String JNDI_NAME="blah" > > when run against the j2eeRI(1.3.1) deploy tool verifier, it of course > blows up with... > Error: [ foohome ] is not defined as valid RMI-IIOP remote interface. > All enterprise beans home interfaces must be defined as valid RMI-IIOP > remote interface. > ... > Comment out the statics and everything's dandy. > 1)How do I get rid of the static generation > 2)Could some kind soul tell me why we generate something that doesn't > verify on the j2ee ri? There must be a valid reason, you guys are a > heck of a lot smarter than me.
Because it's perfectly legal according to the spec, and we were doing it long before that verifier came along and inflicted its bugs on us? According to the Sun RMI FAQ at http://java.sun.com/products/jdk/1.2/docs/guide/rmi/faq.html#staticinit (ditto for 1.3 & 1.4), you *are* allowed to have static fields in an RMI remote interface... I suggest you raise a bug report with Sun ;-) Andrew. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user