sorry, just saw "on the client"...

yes the thread count is normal on the client as well it uses pools of
"byteArray" handlers so that the memory footprint is less and the VM holds
the load.  RMH legacy.

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]

Reply via email to