Re: HA-JDBC via tomee.xml Resource factory/cluster properties ignored

2013-11-03 Thread Romain Manni-Bucau
No idea why you have a NPE but do you know http://rmannibucau.wordpress.com/2013/04/26/tomeeopenejb-and-failover-of-datasources/? Isnt it what you desire more or less? Le 3 nov. 2013 05:11, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : trying to get it done via tomee.xml,

Re: [test resources] persistence.xml

2013-11-03 Thread Romain Manni-Bucau
Hi Both are in the classpath for different ejbmodule so that s ok. Maybe have a look to altdd to use test.persistence.xml in src/main/resources Le 3 nov. 2013 00:00, Matthias Wessendorf mat...@apache.org a écrit : Hi, when running unit tests - where I have a

Re: [test resources] persistence.xml

2013-11-03 Thread Matthias Wessendorf
Hrm, for me using a src/main/resources/META-INF/test.persistence.xml feels a bit wrong, especially since test-ware should be stored w/in src/test, like src/test/resources/META-INF/persistence.xml; -Matthias On Sun, Nov 3, 2013 at 9:17 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Hi

Re: [test resources] persistence.xml

2013-11-03 Thread Romain Manni-Bucau
So use arquillian or applicationcomposer. You use EJBContainer i think which is a standalone solution and not a test one. That said you can exclude the resource configuring mvn jar plugin Le 3 nov. 2013 09:41, Matthias Wessendorf mat...@apache.org a écrit : Hrm, for me using a

Re: HA-JDBC via tomee.xml Resource factory/cluster properties ignored

2013-11-03 Thread Howard W. Smith, Jr.
I believe that is exactly what I want. I wish I knew about that earlier, so I could have tried that earlier, and my preference is to do /use the tomee easy way, always, and as much as possible. Thanks Romain. I like the dynamic datasources too. Is there a test case (on trunk) available for both

Re: HA-JDBC via tomee.xml Resource factory/cluster properties ignored

2013-11-03 Thread Howard W. Smith, Jr.
okay, i just found this on tomee examples page, http://tomee.apache.org/examples-trunk/dynamic-datasource-routing/README.html On Sun, Nov 3, 2013 at 5:46 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: I believe that is exactly what I want. I wish I knew about that earlier, so I

Re: MySQL resource in Tomee 1.5.2

2013-11-03 Thread asif.tmcp
Just so that I am understanding this correctly, would it be possible for you to provide a resources.xml sample, the web.xml snippet and a small code for datasource from initialcontext lookup - ?? Mine are here :- Resources.xml ( in WEB-INF folder of deployed war) Resource id=jdbc/localDB

Re: MySQL resource in Tomee 1.5.2

2013-11-03 Thread asif.tmcp
Hi Romain, If I understand you correctly, you are saying that id and resource name do not match Here :- Resource id=quot;lt;bjdbc/localDB* type=javax.sql.DataSource JdbcDriver com.mysql.jdbc.Driver JdbcUrl jdbc:mysql://localhost:3306/localdb MaxActive 100

How to serve static page with restful services in TomEE plus 1.6?

2013-11-03 Thread Yanbo Ye
Hello everyone, I’m developing a html5 application with a restful service generated using Netbeans. After modifying some configuration xml files like removing jersey serverlethttp://stackoverflow.com/questions/10583563/how-can-i-integrate-jersey-with-tomee-openejb, changing xmlns to “

Re: How to serve static page with restful services in TomEE plus 1.6?

2013-11-03 Thread Romain Manni-Bucau
Hi Does https://issues.apache.org/jira/i#browse/TOMEE-728?issueKey=TOMEE-728amp;serverRenderedViewIssue=truehelp? Le 3 nov. 2013 13:17, Yanbo Ye yeyanbo...@gmail.com a écrit :

Re: MySQL resource in Tomee 1.5.2

2013-11-03 Thread Romain Manni-Bucau
Hi It was the app id (war name by default). In all cases it is written in the logs when the resource is created Le 3 nov. 2013 13:04, asif.tmcp asif.t...@gmail.com a écrit : Hi Romain, If I understand you correctly, you are saying that id and resource name do not match Here :- Resource

Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
First of all, thanks Romain for recommending the following, and for that I will gladly start a new thread. :) TomEE/OpenEJB and failover of datasources[1] which references [OpenEJB] Dynamic Datasource[2] but I found the following TomEE example: [TomEE] Dynamic Datasource Routing[3] So,

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Romain Manni-Bucau
Hi Failover is native but to customiee the algo you can code anything you want Tomee.xml is openejb.xml Service-jar.xml is today useless (see my post) Le 3 nov. 2013 14:55, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : First of all, thanks Romain for recommending the following, and

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
So, the following replaces service-jar.xml (as per your post)? Resource id=jdbc/ds type=DataSource provider=RoutedDataSource router = failover-router /Resource and if I wanted to use the 'strategy' parameter, I would add to Resource as demonstrated below? Resource id=jdbc/ds type=DataSource

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
okay, i set it up as your post demonstrated, I tested already, and I see no issues. it's time to test this in production. :) thanks romain! like i said in the other thread, I wish I knew about this earlier. On Sun, Nov 3, 2013 at 9:16 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote:

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Jean-Louis MONTEIRO
just as next time. If not already there, no issue to add a feature or to propose it by yourself ;-) New committers always welcome. 2013/11/3 Howard W. Smith, Jr. smithh032...@gmail.com okay, i set it up as your post demonstrated, I tested already, and I see no issues. it's time to test this

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
thanks Jean-Louis... i'm still learning via tomee (committers). :) On Sun, Nov 3, 2013 at 10:00 AM, Jean-Louis MONTEIRO jeano...@gmail.comwrote: just as next time. If not already there, no issue to add a feature or to propose it by yourself ;-) New committers always welcome. 2013/11/3

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Jean-Louis MONTEIRO
That's great but I'm pretty sure, you know much more than a lot of people. 2013/11/3 Howard W. Smith, Jr. smithh032...@gmail.com thanks Jean-Louis... i'm still learning via tomee (committers). :) On Sun, Nov 3, 2013 at 10:00 AM, Jean-Louis MONTEIRO jeano...@gmail.com wrote: just as next

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
thanks Jean-Louis... it remains to be seen. :) On Sun, Nov 3, 2013 at 10:14 AM, Jean-Louis MONTEIRO jeano...@gmail.comwrote: That's great but I'm pretty sure, you know much more than a lot of people. 2013/11/3 Howard W. Smith, Jr. smithh032...@gmail.com thanks Jean-Louis... i'm still

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
FYI, I just stopped my local tomee, and recognized that my @Application @PreDestroy has my code that stops Apache Derby prior to main and fallback datasources are closed. is this okay? Nov 03, 2013 10:12:48 AM org.apache.catalina.core.StandardServer await INFO: A valid shutdown command was

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
i guess my question really is... since I stop derby before main fallback datasources are closed, is it likely that this might interrupt data integrity? is it possible that I will lose data since my app stops derby prior to tomee/openejb failover stops datasources...at tomee shutdown/stop? On

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Romain Manni-Bucau
lookhttp://svn.apache.org/repos/asf/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/router/FailOverRouter.java last method it can still be enhanced a lot Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn:

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
Interesting. thanks Jean-Louis. Let me share some things. When I saw Romain's response on the other thread that informed me about tomee/openejb failover via dynamic datasource(s), I saw his post/blog mention load-balancing, and that is what attracted me the most to this feature. So, after I

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
interesting. I can definitely use this as a reference if (ever) necessary, thanks. which brings me to my next question, // // take care next strategies can break multiple calls on the facade // it is only intended to be used for connection selection // I

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Romain Manni-Bucau
Failover is a facase over normal resources. Only these resource can/should be pooled Le 3 nov. 2013 21:51, Howard W. Smith, Jr. smithh032...@gmail.com a écrit : interesting. I can definitely use this as a reference if (ever) necessary, thanks. which brings me to my next question, //

Re: Using TomEE/OpenEJB and failover of datasources

2013-11-03 Thread Howard W. Smith, Jr.
okay, good. that shows that I understood your blog/post, correctly, and add this to my app, accordingly. thanks! On Sun, Nov 3, 2013 at 4:20 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Failover is a facase over normal resources. Only these resource can/should be pooled Le 3 nov. 2013

Re: 1.6.0 release plans?

2013-11-03 Thread Alex The Rocker
Hi, Is TomEE 1.6 release candidate something feasible this upcoming week (week 45) ? I can have large non-reg testing with our apps as soon as this release candidate is available... Thanks, Alex. On Wed, Oct 30, 2013 at 12:37 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote:

Re: 1.6.0 release plans?

2013-11-03 Thread Romain Manni-Bucau
Hi I wouldnt expect it this month even if theorically possible Le 3 nov. 2013 23:19, Alex The Rocker alex.m3...@gmail.com a écrit : Hi, Is TomEE 1.6 release candidate something feasible this upcoming week (week 45) ? I can have large non-reg testing with our apps as soon as this release

Re: 1.6.0 release plans?

2013-11-03 Thread David Blevins
Started threads on XBean and OpenWebBeans about getting releases up. Branched in hopes we might get some progress. Updating the conversation on the dev@tomee list. On Sun, Nov 3, 2013 at 2:28 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Hi I wouldnt expect it this month even if