Re: JCache with javax.ws.rs.core.Response

2015-12-03 Thread Romain Manni-Bucau
Why not returning a dto then? Errors can throw WebApplicationException so only advantage or Response is for custom http status and headers which is not always the default depznding your design. Not sure JAXRS planned anything bit CXF has a JCache integration based on HTTP Cache. If you check the

Re: Resource and UseAppClassLoader question

2015-12-03 Thread Violeta Georgieva
smithh032772 wrote > On Dec 1, 2015 2:48 PM, "Violeta Georgieva" > violetagg@ > wrote: >> >> >> I'm testing with TomEE 1.7.3 > > Is TomEE 1.7.3 available via tomee downloads page or somewhere else? I tested with the staged binaries from the mail that called for 1.7.3 voting -- View this

Re: Websocket Session memory leak

2015-12-03 Thread tonywestonuk
Ok, not sure if this fix will make it to 1.7.3, I notice you guys are having a vote if 1.7.3 is going ahead... But, anyhow, I've now moved my websocket endpoint code into a separate project that is hosted on Tomcat, which talks to tomee over multicast sockets. I didn't realise that

Re: Websocket Session memory leak

2015-12-03 Thread Romain Manni-Bucau
Tomcat fixed the server usage so we should have a proper fix for tomee 7. in 1 week - time tomca is released. Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn

Re: maven plugin error

2015-12-03 Thread Romain Manni-Bucau
Hi is tomee started? path also looks wrong - should be the app. Why not simply using mvn tomee:run or mvn tomee:debug? Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn

maven plugin error

2015-12-03 Thread MarkD
Hi, When using the maven plugin within Intellij I receive the following error: Failed to execute goal org.apache.openejb.maven:tomee-maven-plugin:1.7.1:deploy (default-cli) on project untitled: Execution default-cli of goal org.apache.openejb.maven:tomee-maven-plugin:1.7.1:deploy failed:

Re: Resource and UseAppClassLoader question

2015-12-03 Thread Howard W. Smith, Jr.
On Dec 2, 2015 4:56 PM, "Romain Manni-Bucau" wrote: > > it doesnt exit yet but staging repo is there > https://repository.apache.org/content/repositories/orgapachetomee-1071/org/apache/openejb/apache-tomee/1.7.3/ > > *404 - Repository with ID="orgapachetomee-1071" not

Re: Resource and UseAppClassLoader question

2015-12-03 Thread Howard W. Smith, Jr.
On Dec 3, 2015 6:18 AM, "Violeta Georgieva" wrote: > > smithh032772 wrote > > On Dec 1, 2015 2:48 PM, "Violeta Georgieva" > > > violetagg@ > > > wrote: > >> > >> > >> I'm testing with TomEE 1.7.3 > > > > Is TomEE 1.7.3 available via tomee downloads page or somewhere else?

Re: Datasource pooled using c3p0

2015-12-03 Thread Romain Manni-Bucau
Hi Ben, You mix default config and c3p0 config. With c3p0 jdbcDriver is "DriverClass" for instance. Using class-name you use setters of ComboPooledDataSource and not tomee built-in configuration (Jdbc*). Also JtaManaged will not be provided in such datasource. To get it you either need to use

Datasource pooled using c3p0

2015-12-03 Thread Ben
Hi folks, Has anyone a functional snippets of resources.xml where a datasource is configured to be pooled using c3p0 ? I just tried to setup c3p0 for my datasources, but I am getting a NPE. Here is what looks like my datasource config : jdbcDriver = com.mysql.jdbc.Driver

Work Manager and dispatch policy in TomEE.

2015-12-03 Thread seenu.atluri
Hi, Our application is currently running on Weblogic. In weblogic, we can create work managers and provide WL dispatch policy as described here http://middlewaremagic.com/weblogic/?p=513 We are migrating this application to TomEE now. Work managers

Re: Work Manager and dispatch policy in TomEE.

2015-12-03 Thread Romain Manni-Bucau
Hi in tomee you can create the resource you want using tomee.xml - for container resources - or resources.xml - for resources using application classloader. This includes a work manager or a simple ExecutorService if it makes your code easier. Then the application can reference it using

Re: Resource and UseAppClassLoader question

2015-12-03 Thread Romain Manni-Bucau
Andy just dropped it. Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber 2015-12-03 16:00 GMT+01:00

Re: Datasource pooled using c3p0

2015-12-03 Thread Ben
My bad, thanks again for your prompt response and enlightenment :) -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Datasource-pooled-using-c3p0-tp4677115p4677120.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Resource and UseAppClassLoader question

2015-12-03 Thread Howard W. Smith, Jr.
On Dec 3, 2015 10:01 AM, "Howard W. Smith, Jr." wrote: > > > On Dec 3, 2015 6:18 AM, "Violeta Georgieva" wrote: > > > > smithh032772 wrote > > > On Dec 1, 2015 2:48 PM, "Violeta Georgieva" > > > > > violetagg@ > > > > > wrote: > > >> > > >> > > >>

CDI unit test

2015-12-03 Thread Felipe Jaekel
Hi, I believe this was already discussed on this list, but I didn't found the topic on google. I'm able to test EJBs using the EJBContainer as mentioned on TomEE examples. But when I try to test a CDI bean I'm getting a UnsatisfiedResolutionException. I tried to add a beans.xml to

Re: CDI unit test

2015-12-03 Thread Romain Manni-Bucau
Hi 2015-12-03 20:43 GMT+01:00 Felipe Jaekel : > Hi, > > I believe this was already discussed on this list, but I didn't found the > topic on google. > > I'm able to test EJBs using the EJBContainer as mentioned on TomEE > examples. > > But when I try to test a CDI bean I'm

Re: JCache with javax.ws.rs.core.Response

2015-12-03 Thread Romain Manni-Bucau
Not returning response and or cache in next app layer. Alternative is to wrap the response in a serialisable one in an interceptor but a response is not a simple dto so doesnt sound the easiest with not a lot of benefits. Le 3 déc. 2015 23:15, "sgjava" a écrit : > I'm trying to

JCache with javax.ws.rs.core.Response

2015-12-03 Thread sgjava
I'm trying to cache a JAX-RS Response using @Path("/somepath") @POST @CacheResult(cacheName = "customerSTBData", cacheKeyGenerator = CustStbDtoKeyGenerator.class) public Response getCustomerSTBData(final CustStbDto custStbDto) And I'm getting: Caused by:

Re: maven plugin error

2015-12-03 Thread Romain Manni-Bucau
If you want to go this way ill detail it later but why not using run goal? Start + deploy is harder for a poor gain in your case Le 3 déc. 2015 23:14, "MarkD" a écrit : > Ok, I have the plugin working. tomee:start gets the app running, however, I > still have issues

Re: maven plugin error

2015-12-03 Thread MarkD
Ok, I have the plugin working. tomee:start gets the app running, however, I still have issues with the path for deploy and undeploy. I am using C:\Users\Mark\Documents\Dev\Gen\test\untitled\target\untitled-1.0-SNAPSHOT.war The following output is given: "C:\Program Files

Re: JCache with javax.ws.rs.core.Response

2015-12-03 Thread Steve Goldsmith
Right, so it sounds like the service method needs to call another annotated method, thus the DTO (which is serializable) will be cached, not the response. Is there something planned in JAX-RS maybe to support this? It seems like something that would be a common requirement. On Thu, Dec 3, 2015 at

Re: maven plugin error

2015-12-03 Thread MarkD
Hi Romain, Thank-you for your reply. I can see that I have used the wrong path and it would also appear that Tomee is not running. I corrected the path and prior to deploying I executed tomee:start but could not access localhost:8080. I'm not sure what is missing? tomee-start completes without

Re: Work Manager and dispatch policy in TomEE.

2015-12-03 Thread seenu.atluri
Thanks for the reply Romain. I agree with you that work manager can be created in tomee.xml/resources.xml and can get it using @Resource. But, weblogic automatically assigns the inbound request to appropriate work manager queue based on WL dispatch policy specified. So weblogic does dispatch the

Re: Work Manager and dispatch policy in TomEE.

2015-12-03 Thread Romain Manni-Bucau
Do I get it right understanding it as work manager = HTTP pool? if so there is a language "conflict" between Weblo work manager and JCA (the specification) one. In Tomcat/TomEE world it is the executor service associated to a Connector which is associated to a Service which has in some nested tags

Re: maven plugin error

2015-12-03 Thread Romain Manni-Bucau
the path should be localhost:8080/ (it is logged). Set ROOT to use localhost:8080/ Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn |