Re: [JBoss-user] Same Interface to Bean and EJB objects
On Fri, 8 Jun 2001, Emerson wrote: > It is , but it implements the business interface too, as ed roman say in > his book, and it´s a pattern in theserverside too. The reason for the EJB class to implement the remote interface is to get a compile-time check of the EJB class. The home interface must return the remote interface of the enterprise bean. > > At 02:16 09/06/01 +0200, you wrote: > > > >On Fri, 8 Jun 2001, Emerson wrote: > > > >> It´s said it´s a good practice to make both EJB interface and Bean object > >> to implement the same business interface. I tried that and had this > warning : > >> > >> Bean : EleitorVLHHome > >> Method : public abstract EleitorVLHEJB create(String, String, String, > > ^ > > > >Is EleitorVLHEJB the EJB class? The return type of a create method must be > >the remote interface of the enterprise bean. > > > >> String) throws RemoteException, CreateException > >> Section: 6.10.6 > >> Warning: The method return values in the home interface must be of valid > >> types for RMI/IIOP. > >> > >> When i stop the remote interface and the Bean to implement my business > >> interface, the warnings stopped. > > > > > >--- > >Per Lewau ([EMAIL PROTECTED]) > > > >"Why waste time learning, when ignorance is instantaneous?" > > - Hobbes > > > > > >___ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > Emerson Cargnin > TRE-SC > Setor de Desenvolvimento > Tel: (48) 251-3700 - Ramal 3134 > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > --- Per Lewau ([EMAIL PROTECTED]) "Why waste time learning, when ignorance is instantaneous?" - Hobbes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Same Interface to Bean and EJB objects
It is , but it implements the business interface too, as ed roman say in his book, and it´s a pattern in theserverside too. At 02:16 09/06/01 +0200, you wrote: > >On Fri, 8 Jun 2001, Emerson wrote: > >> It´s said it´s a good practice to make both EJB interface and Bean object >> to implement the same business interface. I tried that and had this warning : >> >> Bean : EleitorVLHHome >> Method : public abstract EleitorVLHEJB create(String, String, String, > ^ > >Is EleitorVLHEJB the EJB class? The return type of a create method must be >the remote interface of the enterprise bean. > >> String) throws RemoteException, CreateException >> Section: 6.10.6 >> Warning: The method return values in the home interface must be of valid >> types for RMI/IIOP. >> >> When i stop the remote interface and the Bean to implement my business >> interface, the warnings stopped. > > >--- >Per Lewau ([EMAIL PROTECTED]) > >"Why waste time learning, when ignorance is instantaneous?" > - Hobbes > > >___ >JBoss-user mailing list >[EMAIL PROTECTED] >http://lists.sourceforge.net/lists/listinfo/jboss-user > > Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Same Interface to Bean and EJB objects
On Fri, 8 Jun 2001, Emerson wrote: > It´s said it´s a good practice to make both EJB interface and Bean object > to implement the same business interface. I tried that and had this warning : > > Bean : EleitorVLHHome > Method : public abstract EleitorVLHEJB create(String, String, String, ^ Is EleitorVLHEJB the EJB class? The return type of a create method must be the remote interface of the enterprise bean. > String) throws RemoteException, CreateException > Section: 6.10.6 > Warning: The method return values in the home interface must be of valid > types for RMI/IIOP. > > When i stop the remote interface and the Bean to implement my business > interface, the warnings stopped. --- Per Lewau ([EMAIL PROTECTED]) "Why waste time learning, when ignorance is instantaneous?" - Hobbes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Same Interface to Bean and EJB objects
It´s said it´s a good practice to make both EJB interface and Bean object to implement the same business interface. I tried that and had this warning : Bean : EleitorVLHHome Method : public abstract EleitorVLHEJB create(String, String, String, String) throws RemoteException, CreateException Section: 6.10.6 Warning: The method return values in the home interface must be of valid types for RMI/IIOP. When i stop the remote interface and the Bean to implement my business interface, the warnings stopped. Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user