How to configure custom MBeans

2011-04-01 Thread Daniel Guggi
Hi, I'm trying to configure custom MBeans by creating an MBeanInterface+Impl and putting the jar into tomcat's lib-dir. I manged to create the mbean using jmx-direclty like the following (exected from within a LifecycleListener): MBeanServer server = getServer(); ObjectName name = null;

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Daniel Guggi
Hi! > > Right. I said you need to use polling, or use 5000 threads (which is > not a problem if you have enough memory). > Are you sure that 5000 threads is not a problem when you have enough memory. I'd be worried about wasting lots of cpu because of context-switching??? lg -

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread Daniel Guggi
> > > > Why then using tomcat at all? What's wrong with writing own app, which > > listens on a socket and does whatever it has to do? Before you have to > > rape tomcat to perform a task it was never designed for... > > > > Well, that's a good question. The outcome of this thread might be just > t

Re: How to install a simple servlet in Tomcat?

2006-02-16 Thread Daniel Guggi
Take a look at the servlet specification. Basically you have to set up a context for your webapp. The web.xml file describes your web-app. This means that you define your servlets and the servlet-mapping (which urls will be mapped to which servlet) in web.xml you could use something like this for

Multiple Sessions per user

2006-02-16 Thread Daniel Guggi
Hi! I ran into a session-issue with a webapp. There are situations when it would be nice for a user (same browser/same machine/same webapp) to have the possibility to login twice and thus have two different JSESSIONIDs. There is also a problem if the user opens a second browser-window or -tab, be

Multiple Sessions per user

2006-02-16 Thread Daniel Guggi
Hi! I ran into session-issue with a webapp. There are situations when it would be nice for a user (same browser/same machine/same webapp) to have the possibility to login twice and thus have two different JSESSIONIDs. There is also a problem if the user opens a second browser-window or -tab, beca