Re: JDBC connection pool memory leak

2013-01-06 Thread Howard W. Smith, Jr.
Well, I thank you both. After this discussion and fix, I just had to download the latest SNAPSHOT of TomEE plus (even though I am using embedded Derby), and web app seems a bit faster 'tonight'. :) On Sun, Jan 6, 2013 at 10:19 AM, Bjorn Danielsson bjorn-apa...@lists.cuspycode.com wrote: Many

Re: tomee+ 1.5.1 : datasource creation failed with an empty UserName

2013-01-03 Thread Howard W. Smith, Jr.
On Thu, Jan 3, 2013 at 9:08 AM, Simon Renard simon.ren...@3ds.com wrote: I've deployed a web application that uses a local derby database that does not have any authentication necessary. Am I missing something or is it a bug in 1.5.1 ? I've also tried to set UserName to '' or but it results

Re: JDBC connection pool memory leak

2013-01-03 Thread Howard W. Smith, Jr.
Very interesting info here, thanks for sharing. I have been using TomEE since 1.5.1-SNAPSHOT and now 1.5.2-SNAPSHOT. Also, I'm using Apache Derby 10.9.1.0 and Eclipse 2.3.2, and JDBC configured in tomee.xml. Can you share your JDBC config from your tomee.xml and/or context.xml? Apache Derby is

Re: Is TomEE 1.5.2 SNAPSHOT persistence across restarts working as designed?

2012-12-30 Thread Howard W. Smith, Jr.
but no more = no longer a feature of TomEE sessionscoped beans = @SessionScoped or @Stateful, or both? On Sun, Dec 30, 2012 at 4:49 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Basically only tomcat session is persisted. Now sessionscoped beans should be too when existing but no more

Re: Is TomEE 1.5.2 SNAPSHOT persistence across restarts working as designed?

2012-12-30 Thread Howard W. Smith, Jr.
okay, thanks Romain. On Sun, Dec 30, 2012 at 5:12 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Oh got it Depend on the conf but AFAIK thats not linked to start stop but more to time (see passivation)

Re: Using TomEE 1.5.2 SNAPSHOT, and NO errors in log files!!!

2012-12-30 Thread Howard W. Smith, Jr.
Happy New Year. Jose, I commend you for you patience during this time of year. If you have a deadline to meet, is all working well for you when you deploy your app to TomEE 1.5.1, or you need 1.5.2-SNAPSHOT, because of some other fixes/dependencies? On Sun, Dec 30, 2012 at 5:46 PM, José Luis

Re: Using TomEE 1.5.2 SNAPSHOT, and NO errors in log files!!!

2012-12-29 Thread Howard W. Smith, Jr.
Forgot the following footnote: [1] http://openejb.apache.org/examples-trunk/schedule-methods/README.html On Sat, Dec 29, 2012 at 5:28 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Recently, I added multiple @Schedule methods to ONE @Singleton bean, and i ran into LOCK errors

Re: Using TomEE 1.5.2 SNAPSHOT, and NO errors in log files!!!

2012-12-29 Thread Howard W. Smith, Jr.
You're welcome. My pleasure! I tend to be a communicator, and I become very much the loyal type when I am treated well, and I like to spread/share the news and/or my experience! :) FYI, my endusers are loving the web app, too! On Sat, Dec 29, 2012 at 5:32 PM, Jean-Louis MONTEIRO

Re: Using TomEE 1.5.2 SNAPSHOT, and NO errors in log files!!!

2012-12-29 Thread Howard W. Smith, Jr.
You're welcome. Well, please note/remember, I am only one person. FYI, I 'only' downloaded apache-tomee-1.5.2-20121225.041258-14-plus.zip, installed it on test/dev and production server, let her rip, and there has been absolutely 'no issues at all' with this JAR/version that I'm currently

Re: Using TomEE 1.5.2 SNAPSHOT, and NO errors in log files!!!

2012-12-29 Thread Howard W. Smith, Jr.
Mine is a WAR deployed to TomEE, and I am using MyFaces CODI 1.0.6, too, deployed in WAR's WEB-INF (classes) folder. Sorry, I didn't read that email, but I'm sure David Blevins and all of the TomEE committers would appreciate it if you create a new issue/JIRA for this. [1] [1]

Re: Shutdown TomEE hangs at @PreDestroy of CDI @ApplicationScoped bean

2012-12-20 Thread Howard W. Smith, Jr.
AndyG, On Thu, Dec 20, 2012 at 7:09 AM, AndyG andy.gumbre...@orprovision.com wrote: Wrap your preDestroy method body in a thread and 'join' it for a period before giving up on it. If anything 'hangs' in preDestroy then it will prevent a shutdown. As I stated earlier, I would shutdown the

Shutdown TomEE hangs at @PreDestroy of CDI @ApplicationScoped bean

2012-12-19 Thread Howard W. Smith, Jr.
Is this a known issue of TomEE 1.5.1 on Win32 (Windows Server 2003 32-bit)? I am experiencing this issue, and I usually have use Windows Task Manager to end the process. I have SLF4J 'info' lines in the @PreDestroy method. I usually see those lines outputted to server log when TomEE was started

Re: Why are Tomcat's threads more costly than background threads?

2012-12-17 Thread Howard W. Smith, Jr.
:54, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Polling is too much network traffic in my opinion. Websocket is instant messaging. No need to add polling code and xhtml here there for different type of messages coming from server and no need of an ajax request to server

Re: Why are Tomcat's threads more costly than background threads?

2012-12-16 Thread Howard W. Smith, Jr.
Anthony, thanks for the recommendation. I will have to give that a try. On Dec 16, 2012 8:33 AM, Anthony Fryer apfr...@hotmail.com wrote: Another change you could make to improve the performance of the method invoked by the timer, is instead of performing the actual database insert for each

Re: Why are Tomcat's threads more costly than background threads?

2012-12-16 Thread Howard W. Smith, Jr.
I have never used JMS/message-driven-beans as of yet, but considering it... On Sun, Dec 16, 2012 at 8:35 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: i'm quite again using JMS for local asynchronism generally not the goal of JMS IMO Romain Manni-Bucau Twitter: @rmannibucau Blog:

Re: Why are Tomcat's threads more costly than background threads?

2012-12-16 Thread Howard W. Smith, Jr.
Good points Anthony and thanks for sharing all that. Stephen, right now, I assume the same as what you stated. My experience with entirely @stateless solution, IMHO, got me nowhere because @stateless seems to be application scope and the database got locked application scope/wide, so that is why

Re: TomEE 1.5.1: bean encountered a non-application exception; nested exception???

2012-12-16 Thread Howard W. Smith, Jr.
okay, thanks Romain for the response. :) On Mon, Dec 17, 2012 at 2:09 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Because that's not an app exception (see ejb spec and/or @ApplicationException) Le 17 déc. 2012 04:43, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : First

Re: Why are Tomcat's threads more costly than background threads?

2012-12-16 Thread Howard W. Smith, Jr.
Very interesting discussion and responses here! Anthony motivates me to jump on the bandwagon of using JMS/message-driven-beans, and at the same time, Romain tells me, not much need (for local) in a Java EE 6 application. :) Either way, i have not ruled out JMS. I have done some strategic coding

Re: Why are Tomcat's threads more costly than background threads?

2012-12-16 Thread Howard W. Smith, Jr.
/responses, appropriately, via JMS. I am probably not stating the above correctly as he said, but that's how I understood what he told me. Now that I'm only using tomEE, there is no need to do such a thing. Loving TomEE!!! On Mon, Dec 17, 2012 at 2:26 AM, Howard W. Smith, Jr. smithh032...@gmail.com

Re: Why are Tomcat's threads more costly than background threads?

2012-12-16 Thread Howard W. Smith, Jr.
, 2012 2:47 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Side note: if your need is pushing regularly to the client just having some client polling can make it far easier to manage on both sides... Le 17 déc. 2012 08:33, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Almost

Re: Why are Tomcat's threads more costly than background threads?

2012-12-15 Thread Howard W. Smith, Jr.
David, just wanted to let you know that I did what you recommended below, and it's working great (no errors; will continue to monitor server log). I had to make a few other code changes to this piece of software, and did some testing as well. Feel free to see my latest test results... once I

Re: tomee would not start with tomee-catalina-1.5.1-20121212.041530-107.jar

2012-12-15 Thread Howard W. Smith, Jr.
MONTEIRO jeano...@gmail.com wrote: And what was the reason of such a replacement? Le 15 déc. 2012 06:02, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : I just replaced catalina.jar with tomee-catalina-1.5.1-20121212.041530-107.jar, and TomEE would not start; I only saw the following

Re: tomee would not start with tomee-catalina-1.5.1-20121212.041530-107.jar

2012-12-15 Thread Howard W. Smith, Jr.
was the reason of such a replacement? Le 15 déc. 2012 06:02, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : I just replaced catalina.jar with tomee-catalina-1.5.1-20121212.041530-107.jar, and TomEE would not start; I only saw the following in the stderr log; nothing in catalina

Re: Why are Tomcat's threads more costly than background threads?

2012-12-14 Thread Howard W. Smith, Jr.
to consider moving away from Apache Derby database to a 'real database', but I hope to do that, ASAP. Thanks for all the responses/recommendations/etc... Howard On Thu, Dec 13, 2012 at 11:09 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: David, I corrected that as you stated, and I

Re: Why are Tomcat's threads more costly than background threads?

2012-12-14 Thread Howard W. Smith, Jr.
Thanks David. Before you introduced me to the @Lock(WRITE), I already came up with a Boolean variable that is updated on @ApplicationScoped bean, every time @schedule is triggered 'and' whenever a user clicks the commandLink to check/get emails. The Boolean variable is checked whenever @schedule

Re: TomEE: StandardSession expire

2012-12-14 Thread Howard W. Smith, Jr.
(); } } } On Tue, Dec 11, 2012 at 12:02 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: This exception occurs a different times throughout the day on production as well as test/development server. Is there anything I can do to prevent the exception (and I'm not asking to 'swallow

Re: TomEE EjbTimerServiceImpl ejbTimeout exception while completing container transaction

2012-12-13 Thread Howard W. Smith, Jr.
the following has the same test results too. i'm changing my implementation a bit. will share more based on (or after) test results. On Thu, Dec 13, 2012 at 2:38 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Okay, I tried the following, @TransactionAttribute(value

Re: TomEE EjbTimerServiceImpl ejbTimeout exception while completing container transaction

2012-12-13 Thread Howard W. Smith, Jr.
javax.ejb.AsyncResult@bafb73 On Thu, Dec 13, 2012 at 3:12 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: the following has the same test results too. i'm changing my implementation a bit. will share more based on (or after) test results.

Re: TomEE EjbTimerServiceImpl ejbTimeout exception while completing container transaction

2012-12-13 Thread Howard W. Smith, Jr.
to be 30mn but think it is a very bad idea ;) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/13 Howard W. Smith, Jr. smithh032...@gmail.com: I didn't get

Re: TomEE EjbTimerServiceImpl ejbTimeout exception while completing container transaction

2012-12-13 Thread Howard W. Smith, Jr.
, Howard W. Smith, Jr. smithh032...@gmail.com wrote: agreed on all accounts. I may be open to increasing timeout to 30minutes. i really don't know why this takes so long... I have one page where user can enter a bunch of stuff, and that page saves more data then this operation does... and it takes

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
I had research my emails for this... Dual Core Xeon Processor 5050 2x2MB Cache, 3.00GHz, 667MHz FSB, PE 2900 Dual Core Xeon 2nd Processor 5050, 2x2MB Cache, 3.00GHz 667MHz FSB, PE 2900 2GB 533MHz (4x512MB), Single Ranked DIMMs (replaced by 4GB RAM) 80GB, SATA, 3.5-inch 7.2K RPM Hard Drive 1TB,

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
same machine On Thu, Dec 13, 2012 at 8:05 AM, José Luis Cetina maxtorz...@gmail.comwrote: Where is your database, localhost?

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/13 Howard W. Smith, Jr. smithh032...@gmail.com: same machine On Thu, Dec 13, 2012 at 8:05 AM, José Luis Cetina maxtorz...@gmail.com wrote: Where is your database, localhost?

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/13 Howard W. Smith, Jr. smithh032...@gmail.com: haha okay... it is primarily a file server, also has some other software

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
- Original Message - From: Howard W. Smith, Jr. smithh032...@gmail.com To: users@openejb.apache.org Sent: Friday, December 14, 2012 1:49 AM Subject: Re: DB access is very slow only queries i do is to small lookup tables... address/phone/email address type to get the database entity

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
hahaha, it is funny. :) i will definitely consider another database, thanks. On Thu, Dec 13, 2012 at 12:08 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: funny what you call fast sounds slow for me :p that's said maybe try antoher database (mysql?)

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
Neale, Thanks for the responses and suggestions; much appreciated. I will definitely consider another database. I need to take some time and dump all of the 'real' data (and the schema), and make sure the SQL and schema will work well with a 'real' database. For the most part, it is all SQL-92,

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
That's the benchmark website that I've been referring to, and that is what I've been using to justify apache derby. I don't know how reliable this website is though. :) On Thu, Dec 13, 2012 at 1:13 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: yep, more or less same note can apply to

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
Great, thanks Romain. Is MySQL still Open Source? I thought they are under Oracle umbrella now...and I would assume there is a license or fee involved. right? On Thu, Dec 13, 2012 at 1:20 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: MySQL, don't even try hsqldb if your app has users

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
okay, thanks! On Thu, Dec 13, 2012 at 1:26 PM, José Luis Cetina maxtorz...@gmail.comwrote: I recommend to you Mysql too. I always used with jpa openjpa or eclipselink for now without problems.

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
Agreed about Romain, he is very amazing. Noted about HyperSQL, will avoid that, and understood about 17mb = playing. This is a new app that I've developed and it's being used every day for 'business', so definitely not playing, but I do want to move to prime-time and a faster database, so I will

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
with TomEE and not really use Glassfish as the 'reference implementation'. Going forward, I'll use TomEE as the reference implementation. :) On Thu, Dec 13, 2012 at 1:50 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Agreed about Romain, he is very amazing. Noted about HyperSQL, will avoid

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
Thanks Will! On Thu, Dec 13, 2012 at 1:41 PM, Will Hoover java.whoo...@gmail.com wrote: If you want speed/performance/flexibility/scalability I would recommend H2 Database: http://www.h2database.com There's a really handy comparison matrix (Derby/HSQLDB/MySQL/PostgreSQL):

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
to give you some free space. Any experience we have with commerical TomEE customers is a great experience for us that we can blog about or share with the TomEE devs. Best Regards, Neale - Original Message - From: Howard W. Smith, Jr. smithh032...@gmail.com To: users

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
Honestly, my preference would be to use @Schedule; I don't want to bug the users and ask/make/require them to click a button to download this data from email server. TomEE examples has @Schedule on a Singleton bean (I think that's what I remember, when I saw it). I saw the same in a (BalusC)

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
Interesting what you mentioned about JavaEE7, I remember you advising me to use tomee.xml and even 'questioned' me... why are you not using tomee.xml instead of context.xml... remember that? :) Well, I'm definitely using JTA, and if I understand you correctly, I think you are recommending to

Re: DB access is very slow

2012-12-13 Thread Howard W. Smith, Jr.
Sorry, don't understand what you're trying to say here. @Schedule is used to poll or check an email server for 'specific' emails, and the emails of interest has JSON embedded, and that JSON are populated into POJOs via Gson, and then the fun begins... saving that little bit of data to multiple

Re: Simple Netbeans CDI Web Application Not Working

2012-12-13 Thread Howard W. Smith, Jr.
Kay, Welcome to TomEE, and glad to see someone that is interested in doing what I did at least one month ago. Please note/do the following: 1. Download TomEE Plus 1.5.1 (SNAPSHOT) instead of 1.5.0; 1.5.0 did not work at all for me as my environment is Windows Server 2003 2008; 1.5.1 resolves a

Re: Simple Netbeans CDI Web Application Not Working

2012-12-13 Thread Howard W. Smith, Jr.
I struggled getting mine to work as well, but I was advised to either add beans.xml to WEB-INF or META-INF folder. I learned that in NetBeans, for META-INF, you create a new folder in the same folder that contain all your java code. Netbeans does not like META-INF/beans.xml, you get squiggly

Re: Why are Tomcat's threads more costly than background threads?

2012-12-13 Thread Howard W. Smith, Jr.
David, 1. definitely not using @Asynchronous; that was no good at all 2. Actually, it was 2 seconds on the Windows Server 2008 64-bit 16GB RAM... always 3. Always 5 to 10 minutes to process 1 or 2 emails on Windows Server 2003 32-bit 4GB RAM 4. As noted on the JIRA, I tried the

Re: Simple Netbeans CDI Web Application Not Working

2012-12-13 Thread Howard W. Smith, Jr.
://github.com/rmannibucau 2012/12/13 Howard W. Smith, Jr. smithh032...@gmail.com: I struggled getting mine to work as well, but I was advised to either add beans.xml to WEB-INF or META-INF folder. I learned that in NetBeans, for META-INF, you create a new folder in the same folder

Re: Why are Tomcat's threads more costly than background threads?

2012-12-13 Thread Howard W. Smith, Jr.
David, Thanks for the response. Guess what... the 2 beans along with the names and all... is exactly what I did 'yesterday', the only thing I did 'not' do was mark each of the beans according to what you mentioned. I will try that, ASAP might not be able to report about it until a little

Re: Why are Tomcat's threads more costly than background threads?

2012-12-13 Thread Howard W. Smith, Jr.
David, I did as you recommended. I got an exception related to the ejbTimer and JTA. please see my latest 2 post on the JIRA. https://issues.apache.org/jira/browse/OPENEJB-1968 Need to leave my desk for little bit. Thanks. On Thu, Dec 13, 2012 at 4:06 PM, David Blevins

Re: Why are Tomcat's threads more costly than background threads?

2012-12-13 Thread Howard W. Smith, Jr.
David, I corrected that as you stated, and I made sure the code was as you recommended, and I've updated the JIRA with test results. Windows Server 2008 64bit is still fast, Windows SErver 2003 32bit is 'still' slow and locking the database. On Thu, Dec 13, 2012 at 7:02 PM, David Blevins

Re: Why are Tomcat's threads more costly than background threads?

2012-12-12 Thread Howard W. Smith, Jr.
, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Prior to adding this @Stateless EJB (that's invoked via @Schedule every 10 minutes), my JSF web app has been running 100% okay without any deadlocks or anything else like that. So, is it okay if I just add optimistic locking

Re: TomEE: @Stateless EJB holds transaction/database-locks after @Schedule method completed

2012-12-12 Thread Howard W. Smith, Jr.
/12 Howard W. Smith, Jr. smithh032...@gmail.com: After implementing 'workaround' option # 1 in my previous email (below), the test results were really really bad. :( for 4 emails, it took 30 minutes to insert the data into the database, and then it seemed as though the single @Stateless

Re: Why are Tomcat's threads more costly than background threads?

2012-12-12 Thread Howard W. Smith, Jr.
to display in order to pre load all relationships (using a left join fetch or so query). Jean-Louis 2012/12/12 Howard W. Smith, Jr. smithh032...@gmail.com Jean-Louis, please clarify 'finder methods' and/provide a short example, thanks. On Wed, Dec 12, 2012 at 3:08 AM, Jean-Louis

Re: TomEE: @Stateless EJB holds transaction/database-locks after @Schedule method completed

2012-12-12 Thread Howard W. Smith, Jr.
/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/12 Howard W. Smith, Jr. smithh032...@gmail.com: After implementing 'workaround' option # 1 in my previous email (below), the test results were really really bad. :( for 4 emails, it took 30 minutes

Re: TomEE: @Stateless EJB holds transaction/database-locks after @Schedule method completed

2012-12-12 Thread Howard W. Smith, Jr.
4GB RAM)? On Wed, Dec 12, 2012 at 9:44 AM, Jean-Louis MONTEIRO jeano...@gmail.comwrote: 32 Bits = 3,2GB max AFAIR 2012/12/12 Howard W. Smith, Jr. smithh032...@gmail.com I really think this is hardware related issue. Why would 64bit 16GB RAM development server (2 seconds for 2 emails

Re: TomEE: @Stateless EJB holds transaction/database-locks after @Schedule method completed

2012-12-12 Thread Howard W. Smith, Jr.
Wow, I wanted to search google, but didn't have to, it was in my email (oracle java developer email). That was right on time. http://plumbr.eu/blog/should-i-use-32-or-64-bit-jvm On Wed, Dec 12, 2012 at 9:55 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: AFAIR? Jean-Louis, that's

Re: TomEE/OpenEJB manage @EJB's different in @Stateless EJB versus JSF/CDI managed bean

2012-12-12 Thread Howard W. Smith, Jr.
://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/12 Howard W. Smith, Jr. smithh032...@gmail.com: There is some type of difference between how TomEE/OpenEJB ('container') manages @EJB's within @Stateless EJB and CDI/JSF managed bean. What is the difference

Re: TomEE: @Stateless EJB holds transaction/database-locks after @Schedule method completed

2012-12-12 Thread Howard W. Smith, Jr.
Howard W. Smith, Jr. smithh032...@gmail.com Wow, I wanted to search google, but didn't have to, it was in my email (oracle java developer email). That was right on time. http://plumbr.eu/blog/should-i-use-32-or-64-bit-jvm On Wed, Dec 12, 2012 at 9:55 AM, Howard W. Smith, Jr. smithh032

Re: TomEE: @Stateless EJB holds transaction/database-locks after @Schedule method completed

2012-12-12 Thread Howard W. Smith, Jr.
and also to get the most from user needs, feedback and questions (kinda 2 ways discussion ;-)) Jean-Louis 2012/12/12 Howard W. Smith, Jr. smithh032...@gmail.com Interesting response, thanks Jean-Louis for the response. I'll keep that in mind when I present issues/questions. I'm loving

Re: TomEE: @Stateless EJB holds transaction/database-locks after @Schedule method completed

2012-12-12 Thread Howard W. Smith, Jr.
And, to add, this is probably not the first time hearing this from me, but I've already gone on and learned and benefited by being active here in the tomee/openejb mailing list (community) now. So...loads of thanks to you guys! On Wed, Dec 12, 2012 at 11:39 AM, Howard W. Smith, Jr. smithh032

Re: DB access is very slow

2012-12-12 Thread Howard W. Smith, Jr.
Glad to hear eclipselink is faster. What kind of hardware and operating system? 32 bit or 64 bit? My windows server 2008 64bit 16GB RAM development server performs much better than my windows 2003 32bit 4GB RAM production server. 2008 64bit 16GB RAM server inserts data in database at 2 seconds.

Re: DB access is very slow

2012-12-12 Thread Howard W. Smith, Jr.
Well, there you go, 32 bit. Is the Linux environment going to be 32bit or 64bit with plenty of RAM? On Dec 12, 2012 7:34 PM, knak55 naka...@xb4.so-net.ne.jp wrote: Thank you for your suggestion. My application is now under development. So I use the Windows 7(32bit) with 2GB memory. Once the

Re: DB access is very slow

2012-12-12 Thread Howard W. Smith, Jr.
, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Well, there you go, 32 bit. Is the Linux environment going to be 32bit or 64bit with plenty of RAM? On Dec 12, 2012 7:34 PM, knak55 naka...@xb4.so-net.ne.jp wrote: Thank you for your suggestion. My application is now under development. So I use

Re: TomEE: StandardSession expire

2012-12-12 Thread Howard W. Smith, Jr.
://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/11 Howard W. Smith, Jr. smithh032...@gmail.com: Smiling... new snapshot? 1.5.1 or 1.5.2 snapshot? please reply with repository URL where I can download the JAR. thanks. On Tue, Dec 11, 2012 at 4:17 AM

Re: DB access is very slow

2012-12-12 Thread Howard W. Smith, Jr.
Well, my web app has performed very well with 32bit and 4GB RAM (Glassfish and now via TomEE). I just find it strange that 'insert' operations/transactions via @Stateless EJB triggered by @Schedule method on the @Stateless EJB performs so very slow and locks the database (deadlock situation) on my

Re: TomEE EjbTimerServiceImpl ejbTimeout exception while completing container transaction

2012-12-12 Thread Howard W. Smith, Jr.
rmannibu...@gmail.comwrote: Cdi has no tx so that's the ejb which manages it If you want commit intervals either use another ejb or usertransaction Le 13 déc. 2012 07:23, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : I have the following implementation: 1. @Stateless EJB invoked

Re: TomEE: StandardSession expire

2012-12-12 Thread Howard W. Smith, Jr.
, 2012 at 1:29 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: 1.5.2-SNAPSHOT should be here now ;) Le 13 déc. 2012 04:51, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Romain, I'm revisiting this email. I did briefly take a look at the folder ,but didn't really download the update

Re: TomEE: StandardSession expire

2012-12-12 Thread Howard W. Smith, Jr.
what's the URL? On Thu, Dec 13, 2012 at 1:38 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Dont think the fix is in 1.5.1-SNASHOT, use the 1.5.2 one please

Re: TomEE Plus comes bundled with APR?

2012-12-12 Thread Howard W. Smith, Jr.
Good, i'm glad to hear that. :) On Thu, Dec 13, 2012 at 2:31 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: That's pure tomcat...but here far before tomcat 7. Le 13 déc. 2012 08:22, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : I see the following in my log. I was reading up

Re: TomEE EjbTimerServiceImpl ejbTimeout exception while completing container transaction

2012-12-12 Thread Howard W. Smith, Jr.
In case you're wondering, and David Blevins, if you're tuned in on this... these test results are being recorded on the JIRA I opened earlier. :) https://issues.apache.org/jira/browse/OPENEJB-1968 On Thu, Dec 13, 2012 at 2:38 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Okay, I

Re: DB access is very slow

2012-12-11 Thread Howard W. Smith, Jr.
knak55, First of all I find your emails interesting. After you saw these lines in eclipse console, did you see any improvement in dba access? If OpenJPA (automatically) weaves entities, then I think that is really nice, but I could not use OpenJPA (experienced some errors or app wasn't working

Re: WebappClassLoader checkThreadLocalMapForLeaks finding leaks related to Google Apps API

2012-12-11 Thread Howard W. Smith, Jr.
how to stop/disconnect my Google Calendar API connection. :) On Tue, Dec 11, 2012 at 12:00 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: appears to have started a thread named [AWT-Windows] but has failed to stop it. This is very likely to create a memory leak.

Re: WebappClassLoader checkThreadLocalMapForLeaks finding leaks related to Google Apps API

2012-12-11 Thread Howard W. Smith, Jr.
Sorry, the answer below, struck a bell with me. :) http://stackoverflow.com/a/10719485/933054 On Tue, Dec 11, 2012 at 6:22 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: I was reading the following, http://stackoverflow.com/questions/4327832/tomcat-webapp-error-application

Re: WebappClassLoader checkThreadLocalMapForLeaks finding leaks related to Google Apps API

2012-12-11 Thread Howard W. Smith, Jr.
Okay, found the following: https://groups.google.com/forum/?fromgroups=#!topic/google-documents-list-api/b9MsCMdFtxc but no solution there. will keep searching. :)

Re: DB access is very slow

2012-12-11 Thread Howard W. Smith, Jr.
Really How did I miss that when I was reading and researching performance tuning? :) Hmmm, I think I already set a value related to statement cache i my persistence.xml. Will confirm and add this as advised. thanks! the setting jdbcInterceptors is something important too: Resource

Re: TomEE: StandardSession expire

2012-12-11 Thread Howard W. Smith, Jr.
the controller in the listener. Replacing it by a not session scoped bean will work. Btw we need to have a look to it. Can you raise a jira please? Le 11 déc. 2012 06:03, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : This exception occurs a different times throughout the day on production

Re: TomEE: StandardSession expire

2012-12-11 Thread Howard W. Smith, Jr.
before the listener is called. So it depends why you need the controller in the listener. Replacing it by a not session scoped bean will work. Btw we need to have a look to it. Can you raise a jira please? Le 11 déc. 2012 06:03, Howard W. Smith, Jr. smithh032...@gmail.com a écrit

Re: DB access is very slow

2012-12-11 Thread Howard W. Smith, Jr.
/rmannibucau 2012/12/11 Howard W. Smith, Jr. smithh032...@gmail.com: Really How did I miss that when I was reading and researching performance tuning? :) Hmmm, I think I already set a value related to statement cache i my persistence.xml. Will confirm and add this as advised. thanks

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Howard W. Smith, Jr.
Wow, i'm reading this now, because I just experienced an issue on my production server that is TomEE 1.5.1 (Tomcat 7.0.34), and the whole server locked up all because I had a @Stateless EJB inserting data into multiple tables in the database, because @Schedule timed event triggered the EJB to

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Howard W. Smith, Jr.
to do with this job that accesses all your databases? -David On Dec 11, 2012, at 8:40 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Okay, TomEE committers/users, I need your help/advice on this one. Please read what I wrote in the email below. I am considering to use

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Howard W. Smith, Jr.
W. Smith, Jr. smithh032...@gmail.com wrote: Prior to adding this @Stateless EJB (that's invoked via @Schedule every 10 minutes), my JSF web app has been running 100% okay without any deadlocks or anything else like that. So, is it okay if I just add optimistic locking, em.lock(entity

Re: DB access is very slow

2012-12-11 Thread Howard W. Smith, Jr.
H... Glassfish is bundled with EclipseLink. Why did you go with PostgreSQL instead of EclipseLink? I was a Glassfish3.1.2.2 user, and yes, I know that Glassfish 3.1.2.2 database operations are very very fast. I don't know exactly what Glassfish does 'for you' (automatically), but I really

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Howard W. Smith, Jr.
Done. testing now and watching JVM. I need to read that article you shared, so i can learn a bit about heap dump. I see the heap dump button there, but never used it 'yet'. :) On Tue, Dec 11, 2012 at 3:53 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: I think I'm going to avoid

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Howard W. Smith, Jr.
:) They love the app (honestly, they liked the speed and reliability of the web app when it was on Glassfish), but I'm doing all i can to win them over with TomEE. :) Your thoughts, please. Thanks, Howard On Tue, Dec 11, 2012 at 9:23 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Done

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Howard W. Smith, Jr.
on stateful session beans, so I would assume it's not an option to add @Schedule to method on the CDI @ApplicationScoped bean. On Tue, Dec 11, 2012 at 10:10 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Shaking my head... test results were not good at all. 1. @StatelessEJB

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Howard W. Smith, Jr.
Howard W. Smith, Jr. smithh032...@gmail.com: Since I replaced Glassfish 3.1.2.2 with TomEE 1.5.1 on production server, sometimes I am seeing exceptions like the one below. Can someone please advise what might be the cause? Thanks. ce.internal.indirection.QueryBasedValueHolder cannot be cast

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Howard W. Smith, Jr.
-be-cast-to-UnitOfWorkValueHolder-td4745.html Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/10 Howard W. Smith, Jr. smithh032...@gmail.com: Sorry, that's

Re: TomEE: java.lang.ClassCastException: eclipse QueryBasedValueHolder cannot be cast to eclipse UnitOfWorkValueHolder

2012-12-10 Thread Howard W. Smith, Jr.
did a bad copy/paste Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2012/12/10 Howard W. Smith, Jr. smithh032...@gmail.com: throw new CtrlCException() ??? are you

Re: TomEE/catalina log showing that someone trying to hack into my TomEE/tomcat7 server

2012-12-09 Thread Howard W. Smith, Jr.
* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/* http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2012/11/27 Howard W. Smith, Jr. smithh032...@gmail.com Wow, check

Re: TomEE/catalina log showing that someone trying to hack into my TomEE/tomcat7 server

2012-12-09 Thread Howard W. Smith, Jr.
:20, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Romain, I have TomEE 1.5.1 running on production server, and I am getting hack-attempts late at night (midnight) by someone, trying to login to 'admin' acct of TomEE (tomcat7). I have a strong password and a different admin

Re: TomEE/catalina log showing that someone trying to hack into my TomEE/tomcat7 server

2012-12-09 Thread Howard W. Smith, Jr.
and Connector) Le 9 déc. 2012 17:26, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : Can you reply with a URL or two that advises how to configure server.xml? thanks. On Sun, Dec 9, 2012 at 11:23 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: That's right, tomee webapp only

Re: TomEE/catalina log showing that someone trying to hack into my TomEE/tomcat7 server

2012-12-09 Thread Howard W. Smith, Jr.
or not. Hope that helps! Jon On Sun, Dec 9, 2012 at 8:35 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Sorry, i don't understand. The following is in my server.xml, I added the port 4848, but if I go to localhost:4848 and localhost:8080 in my browser, then I'm seeing the same

Re: TomEE/catalina log showing that someone trying to hack into my TomEE/tomcat7 server

2012-12-09 Thread Howard W. Smith, Jr.
at 5:26 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Jonathan, Thanks for the detailed response. Yes, you're right, I want port 4848 (tomee/admin web apps) only available to myself (LAN), and port 8080 (business webapp) available to LAN and WAN. I've done a lot of reading about

Re: JSF not starting on TomEE 1.5.1 plus

2012-12-08 Thread Howard W. Smith, Jr.
This is exactly why I love those TomEE committers! They provide excellent support...around the clock, too! Romain has kept me up a few nights...helping me. :) On Sat, Dec 8, 2012 at 10:49 AM, slobo mch...@otit.fi wrote: Rocks. Updated to 103, removed the dummy datasources from tomee.xml, and

Re: TomEE 1.5.1 release date?

2012-12-08 Thread Howard W. Smith, Jr.
The upgrade is done in the release branch. Same for tomcat 7.0.34... Um, say that again, please, but with a few more details, so us users can download-and-test. I refreshed the repository URL that you sent me yesterday to download TomEE 1.5.1, and that URL is no longer valid. 7.0.34 too? wow!

Re: TomEE 1.5.1 release date?

2012-12-08 Thread Howard W. Smith, Jr.
: Yep, because of atmosphere fix we had to do a new 1.5.1 repo. Think the right one will be up on monday Le 8 déc. 2012 19:32, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : The upgrade is done in the release branch. Same for tomcat 7.0.34... Um, say that again, please

  1   2   3   >