As I said before, the problem is that Catergory isn't 
serializable.  Parameters passed to ejbCreate much be serializable.

At 10:39 AM 1/19/2001, you wrote:
>>Remove the throws clause in the ejbCreate() method. You will still be able
>>to throw a CreateException
>
>No, that does not work.  If I don't explicitly put the "throws" statement 
>in there it won't compile because I need to declare or trap that 
>exception.  Also, I don't suspsect that's the culprit because I've got 
>another EJB that I wrote that explicitly declares that it throws a 
>CreateException and it deploys without a problem.
>
>---Steve
>
>>
>>>-----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]
>
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>List Help?:          [EMAIL PROTECTED]

Chad La Joie                           "Only a man who can not conquer
IT Specialist                             his deficiencies feels the need to
IS&C - WARD                              convince the world he has none"



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to