2 Replies Latest reply on Feb 1, 2002 7:57 AM by miguel2

    jboss3 create via local home fails

    miguel2

      Hi,

      I'm trying create an entity bean via its local home interface from a session bean.
      The lookup of the local home interface seems to work. However, when I invoke the create method I get the following log output:

      2002-01-31 02:06:42,282 INFO [org.jboss.jetty.Jetty] RecordServlet: init
      2002-01-31 02:06:42,702 DEBUG [org.jboss.ejb.StatelessSessionContainer] METHOD HOME INVOKE jboss.j2ee:service=EJB,jndiName=foo/RecordManagement||create||[Ljava.lang.Object;@4bfe6b
      2002-01-31 02:06:42,703 DEBUG [org.jboss.ejb.StatelessSessionContainer] WARNING: YOU ARE RUNNING NON-OPTIMIZED
      2002-01-31 02:06:43,122 ERROR [Default] Debug: RecordManagementBean ejbCreate
      2002-01-31 02:06:43,123 ERROR [Default] Debug: RecordManagementBean ejbCreate
      2002-01-31 02:06:43,134 DEBUG [org.jboss.tm.TxManager] resumed tx: null
      2002-01-31 02:06:43,134 ERROR [Default] Debug: RecordManagementBean ejbCreate
      // this is the output after successful lookup
      2002-01-31 02:06:43,137 ERROR [Default] Debug: Session newRecord after lookup
      2002-01-31 02:06:43,139 ERROR [Default] $Proxy19
      //
      2002-01-31 02:06:43,142 DEBUG [org.jboss.tm.TxManager] resumed tx: null
      2002-01-31 02:06:43,143 ERROR [Default] Debug: RecordManagementBean ejbCreate
      2002-01-31 02:06:43,148 DEBUG [org.jboss.tm.TxManager] resumed tx: null
      2002-01-31 02:06:43,151 ERROR [Default] Debug: RecordManagementBean ejbCreate
      2002-01-31 02:06:43,159 ERROR [Default] Debug: RecordManagementBean ejbCreate
      2002-01-31 02:06:43,165 ERROR [Default] Debug: RecordManagementBean ejbCreate
      ...

      Why is the session bean created about 50 times ?

      I tried modifying nearly everything (Datasource to default, simple test entity bean ) ... but nothing changed.
      Has anybody made the same experience ?`

      Mige

        • 1. Re: jboss3 create via local home fails
          ppetit

          you can override the standard number of created instances of an EJB type in the standardjboss.xml file located in the conf/default directory of JBoss.
          Find the section :
          <container-pool-conf>
          100
          10
          </container-pool-conf>
          of the concerned EJB type and change those values.

          • 2. Re: jboss3 create via local home fails
            miguel2

            Thanx, but how about the create issue ? Isn't anybody out there who can help me with that.

            Could this be the reason:

            13:48:46,853 WARN [ServiceController] jboss.jca:service=RARDeployment,name=JMS
            Adapter does not implement any Service methods
            13:48:49,923 WARN [ServiceController] jboss.jca:service=RARDeployment,name=Mine
            rva JDBC XATransaction ResourceAdapter does not implement any Service methods
            13:48:50,981 WARN [ServiceController] jboss.jca:service=RARDeployment,name=Mine
            rva JDBC LocalTransaction ResourceAdapter does not implement any Service methods

            What do this warn messages on startup mean ?

            Mige