Hi all,
I have the same problem.
I'm using jboss-4.0.2 and a lot of StateLess Session Bean.
Using my application a long period of time, the memory leaks and throws an Out Of Memory Exception. And i saw, in web-console that my beans are only created and never removed.
Reading docs and analising configs xml files, i found the max size of pool, and it has 100, and some of my beans become overloaded up to 300-400, wherever.
It means up to max limit. What is wrong? Shoudn't The container remove it ? Should I remove it programaticaly??
What do i have to do ??? It makes me crazy!!!!
On other container like websphere it doesn't happens!!!!
Someone can helpe me ???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973922#3973922
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973922
Sorry, I saw the 1st post in this thread and replied; didn't see the rest of the thread. I'll assume your beans are marked clustered, either via annotation or in the xml.
RetryInterceptor is not yet available in EJB3. Don't think it would solve your problem though. I'd need to know more details about your exact error (how does it fail on reconnect -- full stack trace please) to say much more.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973921#3973921
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973921
Hi All,
I'm Facing the same problem.
I'm using jboss 4.0.2 and the creation of stateless session bean increments over max size of 100, and the remove method is never called by the container.
There are a lot of user's using my application, and it become unstable, couse memory leaks and give me an OutOfMemory Error.
It occurs many times..
I face this only with Jboss, with Other AS like Websphere it doesn't happens!
Some One has an answer for this ???
Please
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973919#3973919
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973919
If you want something run on every invocation in a SLSB (or anything else for that matter), you're looking for an interceptor. Check out the @LoggedIn interceptor in the booking example for a simple implementation. The manual covers this interceptor in section 2.6
All @Factory does is initialize a component that's in an instance variable, and it'll only be called if it's not already set. It's not the best name I can think of, since @Unwrap is the annotation that actually yells "Factory Method" to me. But even @Unwrap is not going to give you the behavior you want, only an interceptor will.
@Factory is used all over the examples. The blog example has some of the best uses of it, though the booking and dvdstore examples are probably easier to understand.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973917#3973917
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973917