Hi, another question:
 
I have a common base interface for all bean's remote interfaces and want to
define a findByPrimaryKey finder (bean managed persistence), which returns
this super-interface rather than the actual bean's interface. Well, the spec
says, that the findXXX method must return the bean's remote interface. The
j2ee reference implementation, however, allows every EJBObject as return
type (which, for me, is perfect - if i want to have the trouble of casting
the returned classes, it is my decision, not the servers ;-). The orion
server, however, encounters an error while compiling (i stripped the package
names to get it readable...):
Invalid return-type for public NMejbObject findByPrimaryKey(NMejbPK) throws
FinderException,RemoteException, NMejbBase expected

where NMejbObject is the base class of my remote interface and NMejbBase is
the beans remote interface (yes, the names are confuseing in this context).

Well, i'd like to know, if the spec (which is not very explicit in this
point) really prohibits these return types and if so, why is it allowed by
the reference implementation ? It's a question for the j2ee team, too, but i
post it here since i want to use orion for my production systems...

Regards,

Jens Stutte

 
 

____________________________________________
[EMAIL PROTECTED], http://www.net-media.de <http://www.net-media.de/> 

NetMedia GmbH
Schubertstr. 8
66111 Saarbruecken
Germany

fon: +49 (0) 681 - 37 98 80
fax: +49 (0) 681 - 33 89 3


 

Reply via email to