Sorry, but only the Verifier complains (I must done something wrong that the proxy thrown an exception).
This is the verifier message: 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, RemoteExcep tion Section: 6.10.6 Warning: The return type for a create(...) method must be the session bean's remote interface type. I tested the MEJB and I could upcast the Remote-interface to the sub-class interface and it works fine. Therefore I will add a bug report. Andy ----- Original Message ----- From: "Juha-P Lindfors" <[EMAIL PROTECTED]> To: "Andreas Schaefer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 12:10 PM Subject: Re: [JBoss-dev] Subclassing of Remote Interface > > Is it an exception from the container or from the verifier? > > -- Juha > > > On Wed, 5 Dec 2001, Andreas Schaefer wrote: > > > Date: Wed, 5 Dec 2001 11:35:51 -0800 > > From: Andreas Schaefer <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: [JBoss-dev] Subclassing of Remote Interface > > > > Hi Geeks > > > > I ran into a problem and looking for quick anwser because > > I am in a discussion on another mailing-list. > > > > I have a Home-interface with this create() method: > > - public A create() throw CreateException; > > > > Now I have this Remote-interface: > > - public interface B extends A {} > > > > In the ejb-jar.xml interface B is the declared Remote- > > interface.But the JBoss verifier is complaining that the > > Home-interface has to return "B" in its create method > > and I get some exception thrown. > > I heard that this scenario is allowed by the EJB spec. > > > > xxxxxxxxxxxxxxxxx > > Andreas Schaefer > > Senior Consultant > > JBoss Group, LLC > > xxxxxxxxxxxxxxxxx > > > > > > > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development