Re: JDBC connection pool memory leak

2013-01-08 Thread Bjorn Danielsson
think are associated with the inline cache of the Hotspot compiler. After some time these instances stopped increasing, as expected. -- Bjorn Danielsson Cuspy Code AB Howard W. Smith, Jr. smithh032...@gmail.com wrote: Well, I thank you both. After this discussion and fix, I just had to download

Re: JDBC connection pool memory leak

2013-01-06 Thread Bjorn Danielsson
just to confirm that the leak is completely plugged. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau rmannibu...@gmail.com wrote: ok, with https://issues.apache.org/jira/browse/TOMEE-703 (available tomorrow on snapshot) + Resource id=jdbc/poolbugtest type=DataSource

Re: JDBC connection pool memory leak

2013-01-04 Thread Bjorn Danielsson
is working fine for me, but I think I'm experiencing memory leaks that are possibly caused by Google Calendar API's use of threadlocal/etc... No need to discuss that here in this thread. On Thu, Jan 3, 2013 at 1:54 PM, Bjorn Danielsson bjorn-apa...@lists.cuspycode.com wrote: It doesn't

Re: JDBC connection pool memory leak

2013-01-04 Thread Bjorn Danielsson
Romain Manni-Bucau rmannibu...@gmail.com wrote: just to be sure to understand: in a plain tomcat does StatementFinalizer replace stmt.close() to make the leak going away? Yes. -- Bjorn Danielsson Cuspy Code AB

Re: JDBC connection pool memory leak

2013-01-04 Thread Bjorn Danielsson
, neither of them showed any increase in memory. So something strange is happening when the Mysql driver and the Tomcat-JDBC pool are interacting via JPA. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau rmannibu...@gmail.com wrote: ok so can you share a sample reproducing the issue please

Re: Very poor performance when writing into db

2012-09-06 Thread Bjorn Danielsson
app have a lot of concurrency in the JPA transactions? That's the only situation where I have seen slow performance from Eclipselink, due to lock wait timeouts in MySQL UPDATE statements. -- Bjorn Danielsson Cuspy Code AB tex giates2...@yahoo.it wrote: Hi, I've just installed Tomee 1.0 Web

Re: READ_COMMITTED configuration exception

2012-08-24 Thread Bjorn Danielsson
Since the properties are embedded in XML, you can put in a comment after the integer constant: DefaultTransactionIsolation 2 !-- READ_COMMITTED -- -- Bjorn Danielsson Cuspy Code AB Diego Cattelan netman...@libero.it wrote: on apache-tomee-1.1.0-20120824.041036-118-webprofile when using

Re: READ_COMMITTED configuration exception

2012-08-24 Thread Bjorn Danielsson
Doesn't work, properties comments must be at the beginning of the line. I use !-- -- in tomee.xml, it's stripped by the XML parser so it works for the properties sections too. -- Bjorn Danielsson Cuspy Code AB Romain Manni-Bucau rmannibu...@gmail.com wrote: guess you need the properties

Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread Bjorn Danielsson
In my opinion this is a bit overkill, at least the options for using DelayQueue and PriorityBlockingQueue. They require the Runnable queue elements to implement the Delayed and Comparable interfaces, respectively. I don't see how to make use of that in an EJB method call. I looked at the Sun

Re: Number of simultaneous @Asynchronous threads

2012-08-21 Thread Bjorn Danielsson
MaximumPoolSize meaningful). -- Björn Danielsson Cuspy Code AB David Blevins david.blev...@gmail.com wrote: On Aug 21, 2012, at 2:18 AM, Bjorn Danielsson wrote: In my opinion this is a bit overkill, at least the options for using DelayQueue and PriorityBlockingQueue. They require the Runnable queue

Re: Number of simultaneous @Asynchronous threads

2012-08-20 Thread Bjorn Danielsson
I built from the latest source (r1374989) and tried the new configuration, but I get strange errors. Just by placing the default values in system.properties in a freshly unpacked TomEE-plus, I got this exception: INFO: Assembling app: openejb Aug 20, 2012 3:56:28 PM

Re: Number of simultaneous @Asynchronous threads

2012-08-20 Thread Bjorn Danielsson
: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/8/20 Bjorn Danielsson bjorn-apa...@lists.cuspycode.com I built from the latest source (r1374989) and tried the new configuration, but I get strange errors. Just by placing the default values in system.properties in a freshly unpacked

Number of simultaneous @Asynchronous threads

2012-08-18 Thread Bjorn Danielsson
Hi guys, Is there some way to configure the size of the thread pool used for @Asynchronous execution of session bean methods? I can't get more than 10 simultaneous threads executing @Asynchronous methods, and I didn't find any obvious setting for this in tomee.xml or service-jar.xml. Version

Re: Anyone have experience with alternative JMS providers?

2012-06-28 Thread Bjorn Danielsson
Update on my attempt to integrate Apache Qpid with TomEE. I had to abandon the GenericJMSRA approach because the only Queue implementation class I found in the Qpid client (which was org.apache.qpid.client.AMQQueue) could not be constructed by the genericra ObjectBuilderFactory, because the class

Re: Anyone have experience with alternative JMS providers?

2012-06-27 Thread Bjorn Danielsson
Manni-Bucau rmannibu...@gmail.com wrote: as you specified type, specufy the provider: provider=com.example:myProvId - Romain 2012/6/27 Bjorn Danielsson bjorn-apa...@lists.cuspycode.com Yes, I did. I think loading-by-provider may be broken, because I peeked at the TomEE source and found

Re: Anyone have experience with alternative JMS providers?

2012-06-27 Thread Bjorn Danielsson
I tried editing again after posting that (I'm a stubborn guy :) and now I could edit with login... -- Björn Danielsson b...@cuspycode.com Romain Manni-Bucau rmannibu...@gmail.com wrote: should be sync soon - Romain 2012/6/27 Bjorn Danielsson bjorn-apa...@lists.cuspycode.com Aha

Anyone have experience with alternative JMS providers?

2012-06-26 Thread Bjorn Danielsson
Does anyone have a recipe for using Apache Qpid or JORAM with TomEE-plus (i.e. replacing the bundled ActiveMQ)? The configuration I have in mind is a container-managed MDB that receives messages from an external broker. -- Björn Danielsson Cuspy Code AB

Re: Tomee Plus instead of Glassfish

2012-06-04 Thread Bjorn Danielsson
I distinctly remember having seen the combo @Local @Stateless in a Glassfish tutorial a few years ago, because I copied from that tutorial and used the code for a while (in Glassfish 2.1) until I ran into some unrelated problem that made me rewrite all my annotations. -- Björn Danielsson Cuspy

Re: How do you shut down ActiveMQ transport?

2012-06-01 Thread Bjorn Danielsson
@openejb.apache.org Subject: Re: How do you shut down ActiveMQ transport? Hi, Dont have it in head but i think AMQ has some url options to shutdown quickly Maybe try to add daemon option to true - Romain Le 31 mai 2012 18:55, Bjorn Danielsson bjorn- apa...@lists.cuspycode.com

Re: How do you shut down ActiveMQ transport?

2012-06-01 Thread Bjorn Danielsson
I use an empty BrokerXmlConfig in TomEE+ (which is only a JMS client with a couple of MDBs in this scenario) and then this url: ServerUrl tcp://remote.host.name:61616 The remote host uses a standalone ActiveMQ default configuration, fresh out of the box. I think useShutdownHook only applies on

How do you shut down ActiveMQ transport?

2012-05-31 Thread Bjorn Danielsson
Hi guys, I just noticed that TomEE-plus takes a very long time to shutdown if a remote ActiveMQ broker is being used. Has anyone else seen this behaviour? Or could I be doing something strange that causes this? When running shutdown.sh Tomcat stops all webapps as usual, but it takes somewhere

Re: Bug: endorsed JAXB is broken

2012-05-04 Thread Bjorn Danielsson
Thanks Romain! I can confirm that my webapp now works with this night's snapshot. -- Björn Danielsson Cuspy Code AB Romain Manni-Bucau rmannibu...@gmail.com wrote: should be fine on trunk now - Romain 2012/5/3 Bjorn Danielsson bjorn-apa...@lists.cuspycode.com Aha, so the class

Bug: endorsed JAXB is broken

2012-05-03 Thread Bjorn Danielsson
Hi, I get the following error when I try to use JAXB in my webapp: java.lang.NoSuchMethodError: javax.xml.bind.ContextFinder.find(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/util/Map;)Ljavax/xml/bind/JAXBContext; I noticed that TomEE uses an endorsed version 2.2 of JAXB, with the

Re: Bug: endorsed JAXB is broken

2012-05-03 Thread Bjorn Danielsson
(XmlThing.class); final StringWriter writer = new StringWriter(); ctx.createMarshaller().marshal(new XmlThing(foo), writer); anything to reproduce your issue? - Romain 2012/5/3 Bjorn Danielsson bjorn-apa...@lists.cuspycode.com Hi, I get the following error when I try to use JAXB

Feedback: Removing non-required WorkContextHandler

2012-04-19 Thread Bjorn Danielsson
Hi, I just tried the latest beta snapshot of tomee-plus, and I noticed there are now quite a lot of these, compared with in the beta2 which I have been running until now: INFO: Removing non-required WorkContextHandler with no context:

How do I *send* JMS messages from an MDB?

2012-04-16 Thread Bjorn Danielsson
I have problems sending JMS messages from my MDB. This MDB listens on a queue and then calls an EJB that updates persistent storage. The EJB then sends out a notification to a JMS topic. All this used to work in GlassFish, but on TomEE-plus I always get this error that stops the notification from

Re: How do I *send* JMS messages from an MDB?

2012-04-16 Thread Bjorn Danielsson
gets this error resource is allready being used in transaction and googles it. -- Björn Danielsson Cuspy Code AB Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi, It should work, can you reproduce it in a uniy test? Le 16 avr. 2012 16:48, Bjorn Danielsson bjorn-apa...@lists.cuspycode.com

Re: JMS and peristent messages

2011-09-24 Thread Bjorn Danielsson
Jacek Laskowski ja...@japila.pl wrote: On Fri, Sep 23, 2011 at 8:04 PM, Bjorn Danielsson bjorn-apa...@lists.cuspycode.com wrote: Yet again, ${openejb.base} doesn't work What's the version of openejb? Would you mind upgrading when a patched version comes out? My results are with 3.2.0

Re: JMS and peristent messages

2011-09-23 Thread Bjorn Danielsson
and consumed afterwards. This works for me. I don't know how to achieve JDBC persistence. -- Bjorn Danielsson Cuspy Code AB

Re: OpenEJB 3.2 availability question

2011-09-22 Thread Bjorn Danielsson
:-( -- Bjorn Danielsson Cuspy Code AB

Re: OpenEJB 3.2 availability question

2011-09-20 Thread Bjorn Danielsson
themselves 3.1.5-SNAPSHOT. Maven aborted after 40 minutes due to a missing file while running some test, but the compilation itself got through without errors, and the resulting openejb.war seems to work perfectly. -- Bjorn Danielsson Cuspy Code AB

Re: OpenEJB 3.2 availability question

2011-09-02 Thread Bjorn Danielsson
Marius Kruger ama...@gmail.com wrote: On 29 August 2011 17:13, Bjorn Danielsson bjorn-apa...@lists.cuspycode.com wrote: Is there an OpenEJB 3.2 binary snapshot available anywhere? If you use maven the easiest is to add the following repository: http://repository.apache.org/content/groups

Re: OpenEJB 3.2 availability question

2011-09-02 Thread Bjorn Danielsson
and installed a profile with the snapshot repository to ${maven.home}/conf/settings.xml and verified that the profile is active. So what am I doing wrong? -- Bjorn Danielsson Cuspy Code AB

OpenEJB 3.2 availability question

2011-08-29 Thread Bjorn Danielsson
Is there an OpenEJB 3.2 binary snapshot available anywhere? What I am looking for specifically is an OpenEJB plugin that works with Tomcat 6.0.29 and which has a working include/exclude mechanism for annotation scanning. The exclude mechanism doesn't seem to work in the 3.1.4 plugin, and when I