7.0.1 and validation

2016-09-19 Thread hwaastad
Hi, quick check with you guys regarding jax-rs validation. if I do a @valid in a simple model validation is ok However, if I extend this model, validation is not working on submodel. https://github.com/hwaastad/TomeeJaxrsValidation.git in 1.7.x this is working with "ejb strategy". br hw -

Re: Moving Away from WebLogic Confusion

2016-09-19 Thread jbhaskaran
Hello, Thanks for your reply. I am using tomee 1.7.4. Does the steps you mentioned apply to that version too? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Moving-Away-from-WebLogic-Confusion-tp4680142p4680144.html Sent from the TomEE Users mailing list archive at

Re: Moving Away from WebLogic Confusion

2016-09-19 Thread Uday Gire
Yes, please try my suggestion and check the links for further info. > On 19 Sep 2016, at 02:50, jbhaskaran wrote: > > Hello, > Thanks for your reply. I am using tomee 1.7.4. Does the steps you mentioned > apply to that version too? > > > > > -- > View this message in context: > http://tomee

Re: Moving Away from WebLogic Confusion

2016-09-19 Thread Romain Manni-Bucau
Side note: some weblo jndi names and descriptor parsing are supported, check https://github.com/apache/tomee/blob/4b9d8c9d221948547d49427077fcf68709a186bd/container/openejb-core/src/main/java/org/apache/openejb/config/WlsConversion.java . We can enhance it a bit to support what would be missing too

HikariCP problems with Tomee

2016-09-19 Thread tonywestonuk
Hi. I am using Hikari Connection pool, creating a pool in a @postconstruct method, and closing it in a @predestroy method. I am getting an exception when I remove the web app instance: java.lang.NoClassDefFoundError: java/util/concurrent/ScheduledFuture at com.zaxxer.hikari.pool.PoolEnt

Re: HikariCP problems with Tomee

2016-09-19 Thread Romain Manni-Bucau
This is typical of a thread leak - likely in hikari pool there or bad shutdown in predestroy. Le 19 sept. 2016 15:35, "tonywestonuk" a écrit : > Hi. I am using Hikari Connection pool, creating a pool in a @postconstruct > method, and closing it in a @predestroy method. > > I am getting an excep

Re: HikariCP problems with Tomee

2016-09-19 Thread tonywestonuk
Further investigation leads me to believe that it only happens when running TomEE from within Eclipse. Running tomee as a standalone and dropping / taking out the war works fine. I know Eclipse does some weird crap to the Environment So, not really surprised I guess. -- View this message i

Re: 7.0.1 and validation

2016-09-19 Thread Steve Goldsmith
This works for me in 7.0.1: public class BaseDto implements Serializable { /** * Serial UID. */ private static final long serialVersionUID = 6528044487061552972L; /** * Customer GUID. */ @NotNull @SuppressWarnings("checkstyle:magicnumber") // No need for co

How to stop a ManagedScheduledExecutorService

2016-09-19 Thread tonywestonuk
Hi, In @PostConstruct, I have a: @Resource ManagedScheduledExecutorService executorService; .. executorService.scheduleWithFixedDelay(packetSender, 10, 10, TimeUnit.SECONDS); If the app is undeployed, I want to cancel this schedule. How do I do this? Thanks. -- View this message in contex

Re: HikariCP problems with Tomee

2016-09-19 Thread Romain Manni-Bucau
Le 19 sept. 2016 16:14, "tonywestonuk" a écrit : > > Further investigation leads me to believe that it only happens when running > TomEE from within Eclipse. Running tomee as a standalone and dropping / > taking out the war works fine. > > > I know Eclipse does some weird crap to the Environment..

Re: 7.0.1 and validation

2016-09-19 Thread Romain Manni-Bucau
Lombok c1n play a role there Le 19 sept. 2016 16:17, "Steve Goldsmith" a écrit : > This works for me in 7.0.1: > > public class BaseDto implements Serializable { > > /** > * Serial UID. > */ > private static final long serialVersionUID = 6528044487061552972L; > /** > *

Re: How to stop a ManagedScheduledExecutorService

2016-09-19 Thread Romain Manni-Bucau
Keep the returned instance and call cancel Le 19 sept. 2016 16:17, "tonywestonuk" a écrit : > Hi, > > In @PostConstruct, I have a: > > @Resource > ManagedScheduledExecutorService executorService; > .. > executorService.scheduleWithFixedDelay(packetSender, 10, 10, > TimeUnit.SECONDS); > > If the

Re: How to stop a ManagedScheduledExecutorService

2016-09-19 Thread tonywestonuk
:-D Thanks!!. Again! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/How-to-stop-a-ManagedScheduledExecutorService-tp4680152p4680156.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: 7.0.1 and validation

2016-09-19 Thread hwaastad
Sorry guys, Lost in translation heremeaning I totally screwed up params in method so everything IS ok. I think I was a little bit tired after solving another issue (which comes in my next post..stay tuned :-)) /hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com

7.0.1 app composer container properties issue

2016-09-19 Thread hwaastad
Hi, I've made a ebean test project where I use two different props implementations (defining datasource): 1. using @ContainerProperties on class 2. using @Configuration I do al loop calling a repository 10 times and in 2. its ok. In 1. everything freezes after 8 requests. I started out thinkin

Re: 7.0.1 app composer container properties issue

2016-09-19 Thread Romain Manni-Bucau
Le 19 sept. 2016 20:11, "hwaastad" a écrit : > > Hi, > I've made a ebean test project where I use two different props > implementations (defining datasource): > > 1. using @ContainerProperties on class > > 2. using @Configuration > You pushed different config, did you try aligning both? > I do

Re: 7.0.1 app composer container properties issue

2016-09-19 Thread hwaastad
Hi, aligne both (needed to change inmemory db to separate since paralell runs) Strange, but with my current config both fails with LogSql=false. LogSQL=true it OK... If this does'nt make sense I can always check the thread stack. /hw -- View this message in context: http://tomee-openejb.9794

Re: Moving Away from WebLogic Confusion

2016-09-19 Thread jbhaskaran
What is TomEE/OpenEJB's equivalent of weblogic-ejb-jar.xml? I would rather not modify code to add annotations. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Moving-Away-from-WebLogic-Confusion-tp4680142p4680160.html Sent from the TomEE Users mailing list archive at

Re: 7.0.1 app composer container properties issue

2016-09-19 Thread Romain Manni-Bucau
Le 19 sept. 2016 21:04, "hwaastad" a écrit : > > Hi, > aligne both (needed to change inmemory db to separate since paralell runs) > > Strange, but with my current config both fails with LogSql=false. > LogSQL=true it OK... > > If this does'nt make sense I can always check the thread stack. > Yes