-----Original Message-----
From: Cook, Thomas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 January 2001 2:40 p.m.
To: 'jBoss'
Subject: RE: [jBoss-User] Strange Verifier ErrorEJBException should be thrown in the bean implementation when an error has occured such that the bean is no longer useable. The container is the mark the transaction for rollback, discard the bean instance (ie. NO more business method calls on it) and throw a RemoteException to the client.
Tom
--
Tom Cook
Systems Development
Australian Submarine Corporation
Mersey Road
Outer Harbour+61 8 8348 7645
"From the instant I picked your book up, until the moment I put it down, I was convulsed with laughter. I fully intend to read it one day."
- Groucho Marx
-----Original Message-----
From: Jonathan Ackerman [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 8:54 AM
To: 'jBoss'
Subject: RE: [jBoss-User] Strange Verifier ErrorYep. That fixed it.
So any idea who/when an EJBException should be thrown ?
Thanks
Jonathan
-----Original Message-----
From: Alexander Kogan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 January 2001 10:24 a.m.
To: jBoss
Subject: Re: [jBoss-User] Strange Verifier Error
Jonathan,
Have you tried to remove EJBExceptions from "throws"
clause. It's just a guess - it may not help.
Jonathan Ackerman wrote:
>
> Hi all,
>
> I'm getting a strange Verifier error when deploying my bean, namely:
>
> [Verifier]
> Bean : BookManagerBean
> Method : public abstract BookManager create() throws RemoteException,
> EJBException, CreateException
> Section: 6.10.6
> Warning: The method return values in the home interface must be of valid
> types for RMI/IIOP.
>
> Now I've looked closely at my Remote and Home interfaces and they look OK,
I
> have even compared them to some of the JBoss test beans and they match up.
>
> What am I doing wrong.
>
> My remote interface is defined as follows:
>
//--------------------------------------------------------------------------
> -----
> package example.booklist.server;
>
> import java.rmi.RemoteException;
> import javax.ejb.EJBObject;
> import javax.ejb.EJBException;
> import example.booklist.common.BookInfo;
>
> public interface BookManager extends EJBObject
> {
> public BookInfo getBook(String isbn) throws
EJBException,RemoteException;
> }
>
//--------------------------------------------------------------------------
> -----
>
> My home interface is:
>
//--------------------------------------------------------------------------
> -----
> package example.booklist.server;
>
> import java.rmi.RemoteException;
> import javax.ejb.EJBHome;
> import javax.ejb.EJBException;
> import javax.ejb.CreateException;
> import java.io.Serializable;
>
> public interface BookManagerHome extends EJBHome
> {
> public BookManager create() throws
> CreateException,EJBException,RemoteException;
> }
>
//--------------------------------------------------------------------------
> -----
>
> and BookInfo is:
>
//--------------------------------------------------------------------------
> -----
> package example.booklist.common;
>
> public class BookInfo implements java.io.Serializable
> {
> public String isbn;
> public String title;
> public String author;
> }
>
//--------------------------------------------------------------------------
> -----
>
> -------------------------------------------------------------------
> Jonathan Ackerman Senior Consultant
> Optimation Phone: +64 9 3075567
> L4, Optimation House, Fax: +64 9 3097919
> 43 College Hill Rd, Mobile: +64 25 319307
> Auckland, mailto:[EMAIL PROTECTED]
> New Zealand http://www.optimation.co.nz/
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]--
__________________________________________________
Alexander Kogan PTC www.ptc.com
[EMAIL PROTECTED] 140 Kendrick St. Needham MA 02494
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
Title: RE: [jBoss-User] Strange Verifier Error
FYI
I
found the section in the EJB spec (v1.1) that talks about EJBException, it
is section 12.3.7
Jonathan
- [jBoss-User] Strange Verifier Error Jonathan Ackerman
- Re: [jBoss-User] Strange Verifier Error Toby Allsopp
- Re: [jBoss-User] Strange Verifier Error Alexander Kogan
- Re: [jBoss-User] Strange Verifier Error Juha-P Lindfors
- RE: [jBoss-User] Strange Verifier Error Nortje, Andrew
- RE: [jBoss-User] Strange Verifier Error Jonathan Ackerman
- Re: [jBoss-User] Strange Verifier Error Alexander Kogan
- RE: [jBoss-User] Strange Verifier Error Cook, Thomas
- Jonathan Ackerman
