Bugs item #489554, was opened at 2001-12-05 13:32
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=489554&group_id=22866

Category: JBossServer
Group: v2.5 Rabbit Hole (unstable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Andreas Schaefer (schaefera)
Assigned to: Nobody/Anonymous (nobody)
Summary: Verifier and sub-classed Remote Interfac

Initial Comment:
When the Home interface declares to return Remote 
interface A on the create() method, but in the ejb-
jar.xml deployment descriptor the Remote interface is 
a sub-class of interface A it complains:

Bean   : MEJB
Method : public abstract Management create() throws 
CreateException, RemoteException
Section: 6.8
Warning: The create method of a stateless session bean 
home interface must return the session bean's remote 
interface.

13:09:19,159 INFO  [ContainerFactory]
Bean   : MEJB
Method : public abstract Management create() throws 
CreateException, RemoteException
Section: 6.10.6
Warning: The return type for a create(...) method must 
be the session bean's remote interface type.

In the example mentioned above ManagementHome contains 
this method declarations:
public Management create() throws CreateException;

MEJB Session Bean implements interface MEJB which 
extends from interface Management (MEJB is a sub-class 
interface of Management). MEJB is declared as remote 
interface in ejb-jar.xml:
 <session id="JBoss Management EJB (MEJB)">
  <display-name>JBoss Management EJB (MEJB)</display-
name>
  <ejb-name>MEJB</ejb-name>
  <home>javax.management.j2ee.ManagementHome</home>
  <remote>org.jboss.management.mejb.MEJB</remote>
  <ejb-lass>org.jboss.management.mejb.MEJBSession</ejb-
class>
  <session-type>Stateless</session-type>
  <transaction-type>Container</transaction-type>
...

According to the EJB spec. this is allowed and 
therefore the Verifier should not complain.

Andy

BTW For more information please have a look at 
org.jboss.management.j2ee.ManagementBean and the 
attached ZIP file, which you can expand and run as is 
(add all the JAR files to the CLASSPATH and run 
Client). If necessary adjust the jndi.properties.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=489554&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to