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]

Reply via email to