Remove the throws clause in the ejbCreate() method. You will still be able
to throw a CreateException
> -----Original Message-----
> From: Steve Stearns [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 18, 2001 5:22 PM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] Re: Legal RMI Types and ejbCreate
>
>
> Okay, here's some more detail on the problem I'm having. To give a
> little background and make this clearer, my application is
> used to keep
> track of ideas and categorize them. The bean that is giving me a
> problem is for an Idea. When I create an Idea I want to associate it
> with a give category, so I pass in a reference to the remote
> interface
> of the Category.
>
> The IdeaBean looks something like this:
>
> public class IdeaBean implements EntityBean {
>
> public Integer ideaId;
> public java.sql.Date dateCreated;
> public String userName;
> public Category category;
> public String ideaName;
> public String ideaDesc;
> private static DataSource ds;
>
> public Integer ejbCreate (String userName, Category category,
> String ideaName, String ideaDesc) throws CreateException {
> ...
> }
> }
>
> Now, Category is a remote interface for another Entity Bean
> that looks
> like this:
>
> public interface Category extends EJBObject {
> public User getUser ();
> public void setUser (User user);
> public String getCategory ();
> public void setCategory (String category);
> }
>
>
> The error I get looks like this:
>
> [Verifier]
> Bean : Idea
> Method : public Integer ejbCreate(String, Category, String, String)
> throws CreateException
> Section: 9.2.3
> Warning: The method arguments of an ejbCreate(...) method
> must be legal
> types for RMI/IIOP.
>
> It looks to me like everything is just fine here but JBoss is
> definitely
> not happy with it.
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]