Remember that remove() is an EJB operation that just means that the server does not associate the identity to the instance in memory. In other words, the server actually pools the instance you have created so that the next time you access them it goes faster. It is absolutely normal that you see this thread count. Also jboss 1.0 and jboss 2.0 use the same invocation layer by default and the thread management is done in the container Invoker. I.e. in the case of jboss2.0/1.0 through JRMP at first. Other invocation handlers will come with their own thread management but again the .remove() operation is on the EJB layers. marc > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kenneth Topp > Sent: Thursday, July 20, 2000 11:29 PM > To: [EMAIL PROTECTED] > Subject: [jBoss-User] threads are created during ejb on the client? > > > > Pardon me, but I have a question about an old (1.0) release of jboss ;) > > in a block like this (accessing a jboss server 1.0) > > > System.out.println("ThreadCount: " + Thread.activeCount() ); > Properties prop = new Properties(); > prop.put( Context.INITIAL_CONTEXT_FACTORY, > "org.jnp.interfaces.NamingContextFactory" ); > prop.put( Context.URL_PKG_PREFIXES,"org.jnp.interface"); > prop.put( Context.PROVIDER_URL, "127.0.0.1" ); > Context ctx = new InitialContext( prop ); > ServiceHome serviceHome = (ServiceHome) ctx.lookup("ejb.service"); > System.out.println("ThreadCount: " + Thread.activeCount() ); > Service service = serviceHome.create(); > service.remove(); > System.out.println("ThreadCount: " + Thread.activeCount() ); > > I get: > > 1 > 2 > 3 > > meaning more threads are created. Any ideas? Is it time to move to 2.0? > > Also, note that the ejboss server is increasing thread count as well. > > Thanks, > > Kenneth Topp > > > > > -- > -------------------------------------------------------------- > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > > -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
