No thread reuse

2015-08-05 Thread tschuler
Hi! We are using TomEE 1.7.2 with message driven beans and ActiveMQ 5.11.1. In general there are about thirty threads that handles the message driven bean activities (JmsResourceAdapter-worker- - 1, ..., JmsResourceAdapter-worker- - 30). But from time to time we can see that every mdb execution

Re: No thread reuse

2015-08-05 Thread Romain Manni-Bucau
Hi did you set JmsResourceAdapter.MaximumPoolSize to something higher than 30 or JmsResourceAdapter to something = 0? Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn

RE: No thread reuse

2015-08-05 Thread tschuler
Hi Romain! We increased the PoolMaxSize setting for the JmsConnectionFactory: Tomee.xml: [...] Resource id=JmsResourceAdapter type=ActiveMQResourceAdapter BrokerXmlConfig broker:(tcp://localhost:61616)?persistent=trueamp;useJmx=false ServerUrl =

Re: No thread reuse

2015-08-05 Thread Romain Manni-Bucau
Ok so this is not the same pool as the resource adapter one, resource adapter pool has a keep alive ( KeepAliveTime ) of 1 minute by default, this can explain it. Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github

RE: No thread reuse

2015-08-05 Thread tschuler
Hi Romain! I know that a http thread is removed after a minute. So the same setting is used for mdb threads? Is there a way to increase the keepalivetime for mdb threads? Best regards, Thomas From: Romain Manni-Bucau [via TomEE OpenEJB]

Re: No thread reuse

2015-08-05 Thread Romain Manni-Bucau
JmsResourceAdapter.KeepAliveTime = 1 hour 0 should be tolerated as well (check ThreadPoolExecutor for more about it) Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn

Problem with override getClasses() and getSingletons() in subclass javax.ws.rs.core.Application

2015-08-05 Thread Yun Jie Zhou
Dear All, We use annotation scanning to discover Resouce classes defined in our application and override the getClasses() with it (we add self-defined annotation @DiscoerableResource to our Resource classes ). At meantime, we want to override getSingletons() to customize a JSON provider. Then

Re: Problem with override getClasses() and getSingletons() in subclass javax.ws.rs.core.Application

2015-08-05 Thread Romain Manni-Bucau
Hi did you log the resources you found when it fails? I guess you dont find the resources in the failling case. Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn

Re: EJB Transaction Timeout

2015-08-05 Thread Arthur Portas
Worked like a charm! Thanks for helping! BTW aren't CMT terribly slow comparing to explicit BMT begin/rollback/commit ? 2015-08-04 10:35 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com: Try using a bean managed tx bean delegating to a container managed one. It would allow it easily. Le 4

Re: EJB Transaction Timeout

2015-08-05 Thread Romain Manni-Bucau
it uses the same code so tempted to say no without more inputs. Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber

Humble stacktrace help

2015-08-05 Thread hwaastad
Hi guys, Just want to ask the forum since I've gotten an issue in which I'm not 100% sure whats going on. It's related to the message @SessionScoped does not exist within current thread but I have some more info. I've got to separate (but equal setup - same app, same tomee 1.7.2) in the

Re: Humble stacktrace help

2015-08-05 Thread Romain Manni-Bucau
hi what is cdi setup - distributed somehow, default, ... - and load balancer one - sticky, round robin, ...? Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn

Re: Humble stacktrace help

2015-08-05 Thread hwaastad
Hi, relevant LB config (same in lab and production): BalancerMember ajp://10.215.144.4:8009 route=tomcat1 loadfactor=1 keepalive=On ttl=60 BalancerMember ajp://10.215.144.5:8009 route=tomcat2 loadfactor=1 keepalive=On ttl=60 and: RequestHeader set X-Forwarded-Proto https ProxyPass /myApp/

Re: Humble stacktrace help

2015-08-05 Thread Romain Manni-Bucau
Without clustering of session, session scoped beans can be lost. Can explain what you have in prod with a different load surely. Le 5 août 2015 13:35, hwaastad he...@waastad.org a écrit : Hi, relevant LB config (same in lab and production): BalancerMember ajp://10.215.144.4:8009

Re: Problem with override getClasses() and getSingletons() in subclass javax.ws.rs.core.Application

2015-08-05 Thread Jean-Louis Monteiro
Hi, Do you mind creating a small example to reproduce and share it on Github or so? Thanks JLouis -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Wed, Aug 5, 2015 at 1:37 AM, Yun Jie Zhou yunj...@cn.ibm.com wrote: Dear All, We use annotation scanning

OpenEJB Rest Service - cxf null pointer

2015-08-05 Thread Temeraire
I'm trying to set up a simple proof of concept Rest service using a Stateless EJB bean deployed into OpenEJB. I'm using openejb 4.6.0.2 Aug 04, 2015 4:14:15 PM org.apache.openejb.server.SimpleServiceManager start INFO: Can't start service cxf-rs java.lang.NullPointerException at

Re: OpenEJB Rest Service - cxf null pointer

2015-08-05 Thread Steve Goldsmith
This example https://github.com/sgjava/tomee-jaxrs-test uses JAX-RS to marshall a simple DTO and includes client timeouts. On Wed, Aug 5, 2015 at 2:24 PM, Temeraire a.p.ri...@gmail.com wrote: I'm trying to set up a simple proof of concept Rest service using a Stateless EJB bean deployed into

No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
When I had 1 or 2 web applications on 1 tomee instance (and default tomee ActiveMQ configuration), app1 - has MDBs, using ActiveMQ JMS - JAX RS (web) client to execute REST service on app2 app2 - has MDBs, using ActiveMQ JMS - REST service running, uses MDBs to execute business logic This works

Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
Below, is what is in my tomee.xml for tomee 2nd instance, On Wed, Aug 5, 2015 at 5:37 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: For tomee 2nd instance, I changed server shutdown port, connector port, and add the following to tomee.xml: !-- Internal ActiveMQ Broker

Re: Problem with override getClasses() and getSingletons() in subclass javax.ws.rs.core.Application

2015-08-05 Thread Yun Jie Zhou
Yes, you are correct. Didn't find any resources in the failing case. I found the annotation scanning didn't work properly as expected. I am debugging it. thanks. Thanks Best Regards Austin ( 周?杰/Yun Jie Zhou) z/OS System Test and Performance, China System Technology Lab Tel: 86-10-82452455

Re: Problem with override getClasses() and getSingletons() in subclass javax.ws.rs.core.Application (solved)

2015-08-05 Thread Yun Jie Zhou
Thanks for your reply. I found a bug in the annotation scanning processing, I fixed it. Thanks Best Regards Austin ( 周?杰/Yun Jie Zhou) z/OS System Test and Performance, China System Technology Lab Tel: 86-10-82452455 Ext: 52455 Mobile: 13811310391 E-Mail: yunj...@cn.ibm.com From:

Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Romain Manni-Bucau
Surely cause not serialized Le 5 août 2015 14:40, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Below, is what is in my tomee.xml for tomee 2nd instance, On Wed, Aug 5, 2015 at 5:37 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: For tomee 2nd instance, I changed server

Re: OpenEJB Rest Service - cxf null pointer

2015-08-05 Thread Romain Manni-Bucau
Hi You should get a caused by no? Le 5 août 2015 11:38, Steve Goldsmith sgj...@gmail.com a écrit : This example https://github.com/sgjava/tomee-jaxrs-test uses JAX-RS to marshall a simple DTO and includes client timeouts. On Wed, Aug 5, 2015 at 2:24 PM, Temeraire a.p.ri...@gmail.com wrote:

Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
Okay, I just recognized that after searching internet, but I still wonder why the code below works when I have one tomee (activemq) instance. Prior to today, GoogleCalendarEvent did not need to implement Serializable. public void updateGoogleCalendar(ListGoogleCalendarEvent eventsToAdd)

Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Romain Manni-Bucau
Local transport can skip serialization in some cases Le 5 août 2015 15:57, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Okay, I just recognized that after searching internet, but I still wonder why the code below works when I have one tomee (activemq) instance. Prior to today,

Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
Interesting, okay. On Wed, Aug 5, 2015 at 6:58 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Local transport can skip serialization in some cases Le 5 août 2015 15:57, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Okay, I just recognized that after searching internet, but I