0 Replies Latest reply on Apr 24, 2002 8:37 PM by wchao

    EJB deployment warnings

    wchao

      I'm not sure why I'm getting the following warnings when deploying EJBs from an EAR. My home methods return Object[] and not remote entities. The warnings are below:

      2002-04-24 20:29:09,888 INFO [org.jboss.ejb.EJBDeployer]
      Bean : UserEJB
      Method : public abstract Object; valueObjectById(UserHome, String;, Integer) thr
      ows RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:09,890 INFO [org.jboss.ejb.EJBDeployer]
      Bean : UserEJB
      Method : public abstract Object; valueObjectsById(UserHome, String;, Collection)
      throws RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:09,920 INFO [org.jboss.ejb.EJBDeployer]
      Bean : UserEJB
      Section: 12.2.1
      Warning: null

      2002-04-24 20:29:09,978 INFO [org.jboss.ejb.EJBDeployer]
      Bean : JobEJB
      Method : public abstract Object; valueObjectById(JobHome, String;, Integer) thro
      ws RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:09,979 INFO [org.jboss.ejb.EJBDeployer]
      Bean : JobEJB
      Method : public abstract Object; valueObjectsById(JobHome, String;, Collection)
      throws RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:09,981 INFO [org.jboss.ejb.EJBDeployer]
      Bean : JobEJB
      Method : public abstract Object; valueObjectsByEmployerId(JobHome, String;, Inte
      ger) throws RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:10,012 INFO [org.jboss.ejb.EJBDeployer]
      Bean : JobEJB
      Section: 12.2.1
      Warning: null

      2002-04-24 20:29:10,087 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CreditTxEJB
      Method : public abstract Object; valueObjectById(CreditTxHome, String;, Integer)
      throws RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:10,089 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CreditTxEJB
      Method : public abstract Object; valueObjectsById(CreditTxHome, String;, Collect
      ion) throws RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:10,090 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CreditTxEJB
      Method : public abstract Object; valueObjectsByOwnerId(CreditTxHome, String;, In
      teger) throws RemoteException
      Section: 12.2.9
      Warning: A home method declared in the home interface must not return the entity
      beans remote interface.

      2002-04-24 20:29:10,140 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CreditTxEJB
      Section: 10.6.2
      Warning: The entity bean class must define a set accessor for each CMP field.

      2002-04-24 20:29:10,151 INFO [org.jboss.ejb.EJBDeployer]
      Bean : CreditTxEJB
      Section: 12.2.1
      Warning: null

      Here is sample code from the home interface of one of my EJB classes:

      // Get CreditTx instance with a specific ID. Return a value object
      // represented by an Object[] instance, with each position in the
      // array corresponding to the position in the propertyNames argument.
      public Object[] valueObjectById(CreditTxHome creditTxHome, String[] propertyNames, Integer id) throws RemoteException;

      // Find all CreditTx instances with an ID in the idCollection. Return an
      // Object[] array of Object[] arrays. For each Object[] element, the
      // Object[] instance corresponds to the array of property names.
      public Object[] valueObjectsById(CreditTxHome creditTxHome, String[] propertyNames, Collection idCollection) throws RemoteException;

      // Find all CreditTx instances with the specified ownerId. Return an
      // Object[] array of Object[] arrays. For each Object[] element, the
      // Object[] instance corresponds to the array of property names.
      public Object[] valueObjectsByOwnerId(CreditTxHome creditTxHome, String[] propertyNames, Integer ownerId) throws RemoteException;

      I'm also not sure what the "Warning: null" lines mean.