Re: JAX-RS POJO mapping

2015-04-20 Thread Steve Goldsmith
See comment below (https://fisheye6.atlassian.com/browse/cxf/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/WebClient.java?r=c1f3dd3d7051636da5b978866f5df48c8857cdc6) /** * Retrieves ClientConfiguration * @param client proxy or http-centric Client * @return

Re: JAX-RS POJO mapping

2015-04-22 Thread Steve Goldsmith
Cool, problem solved, thank you so much! On Wed, Apr 22, 2015 at 3:11 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: WebtargetImpl has a client if a request was created: final WebTarget target = client.target(url); final Invocation.Builder request = target.request(); final HTTPConduit

Re: JAX-RS POJO mapping

2015-04-20 Thread Steve Goldsmith
I'm using 2.0.0 SNAPSHOT. I was looking at WebClient from latest CXF source, not in TomEE since I build from SNAPSHOT artifacts and not TomEE source. On Mon, Apr 20, 2015 at 1:48 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: hmm, i checked cxf 3.0.3 (our version in tomee 2.0.0-SNAPSHOT),

Re: JAX-RS POJO mapping

2015-04-20 Thread Steve Goldsmith
java.lang.IllegalArgumentException: Not a valid Client I guess it doesn't like javax.ws.rs.client.Client even though its implementation is the CXF client? // Set up web client final Client client = ClientBuilder.newClient(); // Timeout not covered by client properties, so

Re: JAX-RS POJO mapping

2015-04-20 Thread Steve Goldsmith
My understanding it CXF does not unmarshall JSON and returns (XML uses JAX-B for instance): java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream cannot be cast to...

Re: JAX-RS POJO mapping

2015-04-21 Thread Steve Goldsmith
Yep, let me throw something together. On Tue, Apr 21, 2015 at 12:08 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: interesting, I'm a bit out of time to do the whole test alone, can you provide us a small sample to let us dig further (github project would be awesome!)? Romain

Re: javax.ws.rs.client.Client read timeout not working

2015-04-14 Thread Steve Goldsmith
Yea, your previous question pointed me in the cxf direction. Are there any negatives to using one implementation over the other since client timeouts appear proprietary any ways. On Tue, Apr 14, 2015 at 11:06 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: You can set the timeout to cxf

Re: TomEE 2.0.0 SNAPSHOT EJBContainer broken

2015-04-16 Thread Steve Goldsmith
No, same code worked yesterday, that's why I was wondering. Let me do some more digging. On Thu, Apr 16, 2015 at 11:34 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi seems snapshot code works, did you try building it from sources? Romain Manni-Bucau @rmannibucau

Re: JSR-107, JCache

2015-08-17 Thread Steve Goldsmith
No, I just want to use an EE solution instead of EHCache. Do you use Apache JCS? On Mon, Aug 17, 2015 at 10:15 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi Yes - are you looking for sometjing in particular? Le 17 août 2015 07:12, sgjava sgj...@gmail.com a écrit : Is JSR-107,

Re: JSR-107, JCache

2015-08-18 Thread Steve Goldsmith
On Tue, Aug 18, 2015 at 3:56 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Steve, On Tue, Aug 18, 2015 at 10:38 AM, Steve Goldsmith sgj...@gmail.com wrote: Are there any good examples? I'll promise to add it my test project on Github, so others can benefit as well

Re: JSR-107, JCache

2015-08-18 Thread Steve Goldsmith
at 3:56 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Steve, On Tue, Aug 18, 2015 at 10:38 AM, Steve Goldsmith sgj...@gmail.com wrote: Are there any good examples? I'll promise to add it my test project on Github, so others can benefit as well. I like how you share

Re: JSR-107, JCache

2015-08-18 Thread Steve Goldsmith
. Regards Jon On Tue, Aug 18, 2015 at 9:07 PM, Steve Goldsmith sgj...@gmail.com wrote: Is there source somewhere for this? On Tue, Aug 18, 2015 at 11:04 AM, Jonathan Gallimore jgallim...@tomitribe.com wrote: Here's demo I did using Hazelcast, JCache and CDI: https

Re: JSR-107, JCache

2015-08-17 Thread Steve Goldsmith
: jcs will soon have a web extension allowing to cache the response with no need to call rest endpoint itself anymore :) Le 17 août 2015 08:41, Steve Goldsmith sgj...@gmail.com a écrit : A, got you, is there a JCache exmple that works good with TomEE? I'm not using JPA, I want to cache DTOs

Re: JSR-107, JCache

2015-08-17 Thread Steve Goldsmith
dynamic web forms) and its working fine. I do like jcs hierachical structure. Br hw Sendt fra min iPhone Den 17. aug. 2015 kl. 17:54 skrev Steve Goldsmith sgj...@gmail.com: Cool, this is for production, so I'll go with my EHCache solution for now until things tighten up with JCache

Re: JSR-107, JCache

2015-08-17 Thread Steve Goldsmith
-07:00 Steve Goldsmith sgj...@gmail.com: No, I just want to use an EE solution instead of EHCache. Do you use Apache JCS? On Mon, Aug 17, 2015 at 10:15 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi Yes - are you looking for sometjing in particular? Le 17 août 2015

Re: JSR-107, JCache

2015-08-18 Thread Steve Goldsmith
used it in prod - but it is a design choice, there is no blocker to do so and I know some commons guys using it since years. Le 18 août 2015 07:03, Steve Goldsmith sgj...@gmail.com a écrit : Are you using distributed caching? Also, are you using annotations or writing the code to handle

Re: JSR-107, JCache

2015-08-18 Thread Steve Goldsmith
W. Smith, Jr. smithh032...@gmail.com wrote: Steve, On Tue, Aug 18, 2015 at 10:38 AM, Steve Goldsmith sgj...@gmail.com wrote: Are there any good examples? I'll promise to add it my test project on Github, so others can benefit as well. I like how you share code

Re: JSR-107, JCache

2015-08-17 Thread Steve Goldsmith
. Side note: api is here already, no need to add it in tomee plus. Le 17 août 2015 08:09, Steve Goldsmith sgj...@gmail.com a écrit : @ObjectCache not found after adding (see http://www.tomitribe.com/blog/2015/07/apache-tomee-arquillian-jcache-cdi-and-hazelcast-what-more-could-you-want

Re: Latest tomee-embedded 7.0.0 fails to start

2015-08-04 Thread Steve Goldsmith
I found the issue, sorry. I had to add client.register(JacksonJaxbJsonProvider.class); to my embedded tests because I'm getting the o.apache.cxf.jaxrs.utils.JAXRSUtils - No message body writer has been found for class com.bhn.services.dto.CustStbDto, ContentType: application/json like I was

Re: OpenEJB Rest Service - cxf null pointer

2015-08-05 Thread Steve Goldsmith
This example https://github.com/sgjava/tomee-jaxrs-test uses JAX-RS to marshall a simple DTO and includes client timeouts. On Wed, Aug 5, 2015 at 2:24 PM, Temeraire a.p.ri...@gmail.com wrote: I'm trying to set up a simple proof of concept Rest service using a Stateless EJB bean deployed into

Re: JAX-WS client timeouts

2015-08-03 Thread Steve Goldsmith
Are they the same as the JAX-RS client non-proprietary? client = ClientBuilder.newClient(); // Set timeout properties without importing CXF packages client.property(http.connection.timeout), 5000); client.property(http.receive.timeout), 5000); In the case of

Re: JAX-WS client timeouts

2015-08-03 Thread Steve Goldsmith
| Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-03 22:01 GMT+02:00 Steve Goldsmith sgj...@gmail.com: Are they the same as the JAX-RS client non-proprietary

Re: Using basic auth with tomee-embedded

2015-08-08 Thread Steve Goldsmith
I understand that part, but you also have to add the user in tomcat-users.xml as well. How would you do that in tomee-embedded? On Fri, Aug 7, 2015 at 5:11 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi, just add a web.xml as in any war Romain Manni-Bucau @rmannibucau

Re: Using basic auth with tomee-embedded

2015-08-08 Thread Steve Goldsmith
/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-08 6:31 GMT-07:00 Steve Goldsmith sgj...@gmail.com: I understand that part, but you also have to add the user in tomcat-users.xml as well. How would you do that in tomee-embedded

Re: JSON JAX-RS test client provider

2015-08-04 Thread Steve Goldsmith
://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-04 19:28 GMT+02:00 Steve Goldsmith sgj...@gmail.com: OK, back at this again. | | +- org.apache.cxf:cxf-rt-rs-extension-providers:jar:3.1.2

Re: JSON JAX-RS test client provider

2015-08-04 Thread Steve Goldsmith
://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-04 19:46 GMT+02:00 Steve Goldsmith sgj...@gmail.com: OK, just making sure, these are remote test clients to test server instances. I do not do

Re: JSON JAX-RS test client provider

2015-08-04 Thread Steve Goldsmith
://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-07-23 12:56 GMT-07:00 Steve Goldsmith sgj...@gmail.com: How do I determine I have johnzon? I'm not explicitly using it in my

Re: ContainerResponseFilter for logging

2015-08-07 Thread Steve Goldsmith
Since CDI beans do not support final methods could I make filter final by using @Vetoed? On Fri, Aug 7, 2015 at 10:54 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: just curiosity: remove @Singleton and making the class @Vetoed should ensure it is not a CDI bean or an EJB so it would be a

Re: ContainerResponseFilter for logging

2015-08-07 Thread Steve Goldsmith
-Bucau rmannibu...@gmail.com wrote: Le 7 août 2015 08:04, Steve Goldsmith sgj...@gmail.com a écrit : Since CDI beans do not support final methods could I make filter final by using @Vetoed? Yes but cdi does support it if the bean is dependent ;) On Fri, Aug 7, 2015 at 10:54 AM, Romain

Re: Using basic auth with tomee-embedded

2015-08-13 Thread Steve Goldsmith
/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-10 10:40 GMT-07:00 Steve Goldsmith sgj...@gmail.com: The container doesn't appear to pick up the security

Re: Using basic auth with tomee-embedded

2015-08-10 Thread Steve Goldsmith
| Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-08 6:31 GMT-07:00 Steve Goldsmith sgj...@gmail.com: I understand that part, but you also have to add the user

Re: Using basic auth with tomee-embedded

2015-08-10 Thread Steve Goldsmith
https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-10 10:13 GMT-07:00 Steve Goldsmith sgj...@gmail.com: OK, how do the Maps work

Re: Using basic auth with tomee-embedded

2015-08-10 Thread Steve Goldsmith
://www.tomitribe.com 2015-08-10 7:58 GMT-07:00 Steve Goldsmith sgj...@gmail.com: I define container as: import javax.ejb.embeddable.EJBContainer; private static EJBContainer container; Should I be using a different EJBContainer? On Mon, Aug 10, 2015 at 10:56 AM, Romain Manni-Bucau rmannibu

Re: Using basic auth with tomee-embedded

2015-08-10 Thread Steve Goldsmith
| Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-10 10:13 GMT-07:00 Steve Goldsmith sgj...@gmail.com: OK, how do the Maps work org.apache.tomee.embedded.Container? Normally tomcat-users.xml would have

Re: Using basic auth with tomee-embedded

2015-08-10 Thread Steve Goldsmith
| Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-10 7:39 GMT-07:00 Steve Goldsmith sgj...@gmail.com: I'm not seeing where you do setUsers and setRoles with EJBContainer or EmbeddedTomEEContainer. On Sat

Re: Questions about TomEE embedded

2015-08-14 Thread Steve Goldsmith
It's used just like Tomcat embedded which is primarily targeted for unit/integration tests. On Fri, Aug 14, 2015 at 3:39 PM, Felipe Jaekel fkjae...@gmail.com wrote: Hi, I've been seeing some posts on the list about TomEE embedded, so I decided to search what was it. This concept is new to

Re: org.apache.tomee.embedded.Container deployment issues

2015-08-14 Thread Steve Goldsmith
Oh, does the - mess things up? On Fri, Aug 14, 2015 at 10:33 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: you use deployclasspath so the classpath is scanned so your project ends scanned as tomee-jaxrs-test but tomee-* are ignored. Romain Manni-Bucau @rmannibucau

Re: org.apache.tomee.embedded.Container deployment issues

2015-08-14 Thread Steve Goldsmith
://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-14 19:35 GMT-07:00 Steve Goldsmith sgj...@gmail.com: Oh, does the - mess things up? On Fri, Aug 14, 2015 at 10:33 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: you use deployclasspath so

Re: org.apache.tomee.embedded.Container deployment issues

2015-08-14 Thread Steve Goldsmith
| Tomitriber http://www.tomitribe.com 2015-08-14 19:35 GMT-07:00 Steve Goldsmith sgj...@gmail.com: Oh, does the - mess things up? On Fri, Aug 14, 2015 at 10:33 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: you use deployclasspath so the classpath is scanned so your project ends

Re: Using basic auth with tomee-embedded

2015-08-13 Thread Steve Goldsmith
OK, cool, I knew you'd know how to fix it, thanks! On Thu, Aug 13, 2015 at 3:28 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: deployClasspathAsWebApp uses the classpath so either use .securityConstaint() or add your web.xml to the classpath. In deployClasspathAsWebApp() you can set the

Re: JSON JAX-RS test client provider

2015-07-23 Thread Steve Goldsmith
/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-07-23 11:39 GMT-07:00 Steve Goldsmith sgj...@gmail.com: 7.0.0-SNAPSHOT of course :) On Thu, Jul 23, 2015

Re: TomEE Datasource Connection to SQL Server - CPU Creep

2015-07-23 Thread Steve Goldsmith
I think he means a JVM thread dump or use JMX and jvisualVM. JMX it typically a better solution because you can monitor threads real time. In Linux you can modify catalins.sh (catalina.bat in your case) to something like: export CATALINA_OPTS=-Xmx2500m -Dfile.encoding=UTF-8

Re: javax.ws.rs.client.Client read timeout not working TomEE 2.0.0

2015-07-20 Thread Steve Goldsmith
OK, I'll take a look at the source. It appears to ignore it, but it would be nice if it worked in the generic JAX-RS way. On Mon, Jul 20, 2015 at 12:22 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Would be great, you can also debug in org/apache/cxf/jaxrs/client/spec/ClientImpl where

Re: javax.ws.rs.client.Client read timeout not working TomEE 2.0.0

2015-07-20 Thread Steve Goldsmith
://www.tomitribe.com 2015-07-20 11:02 GMT-07:00 Steve Goldsmith sgj...@gmail.com: OK, I'll take a look at the source. It appears to ignore it, but it would be nice if it worked in the generic JAX-RS way. On Mon, Jul 20, 2015 at 12:22 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Would

Re: JCache CDI

2015-08-27 Thread Steve Goldsmith
:00 Steve Goldsmith sgj...@gmail.com: I'm just not able to see the cached values by using: final CacheString, String testCache = cacheBean.getCacheManager(). getCache(testCache); log.info(String.format(Cache name: %s, testCache.getName

Re: JCache CDI

2015-08-27 Thread Steve Goldsmith
I'm just not able to see the cached values by using: final CacheString, String testCache = cacheBean.getCacheManager(). getCache(testCache); log.info(String.format(Cache name: %s, testCache.getName())); *// This should display value1, but it doesn't

Re: JCache CDI

2015-08-27 Thread Steve Goldsmith
/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-08-27 16:07 GMT+02:00 Steve Goldsmith [hidden email] http:///user/SendEmail.jtp?type=nodenode=4675986i=0: Ah, OK, that wasn't evident from what I've read so far

Re: TomEE in production, feedback request

2015-08-29 Thread Steve Goldsmith
I have two TomEE deploys in production. I wanted to target Java EE 7/Java 8, so one is deployed using 2.0.0 and one using 7.0.0. The first platform logs events from mobile/desktop clients and handles about 2 million transactions a day. It runs behind an A10 load balancer with 4 nodes. I use

Re: commons-jcs-jcach getCacheNames not working

2015-09-04 Thread Steve Goldsmith
You are doing explicit cache creation. I'm using jcache.ccf in src/main/resources: jcs.region.testCache=DC jcs.region.testCache.cacheattributes=org.apache.commons.jcs.engine.CompositeCacheAttributes jcs.region.testCache.cacheattributes.MaxObjects=21

Re: commons-jcs-jcach getCacheNames not working

2015-09-04 Thread Steve Goldsmith
other one. About getCacheNames it is > only *created* caches ie the one jcache saw and not the ones jcs has. > Le 4 sept. 2015 19:14, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > Looking at org.apache.commons.jcs.jcache.JCSCachingProvider it doesn't >

Re: commons-jcs-jcach getCacheNames not working

2015-09-04 Thread Steve Goldsmith
Looking at org.apache.commons.jcs.jcache.JCSCachingProvider it doesn't appear to search classpath? Do you have to explicitly specify path in getCacheManager call? On Fri, Sep 4, 2015 at 2:40 AM, Romain Manni-Bucau wrote: > Hi, > > final CachingProvider cachingProvider =

Re: commons-jcs-jcach getCacheNames not working

2015-09-04 Thread Steve Goldsmith
wrote: > Le 4 sept. 2015 19:30, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > > So if I specify jcache.ccf in classpath, then technically it should show > up > > via getCacheNames? It doesn't appear to pick it up from > > src/main/resources/j

Re: commons-jcs-jcach getCacheNames not working

2015-09-04 Thread Steve Goldsmith
gt; looks ok and if your cache is not therz size is empty so nthg blocking IMO. > Le 4 sept. 2015 20:25, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > So, you have to explicitly do the createCache? This is different behavior > > then Ehcache provider. I

Re: commons-jcs-jcach getCacheNames not working

2015-09-04 Thread Steve Goldsmith
gt; Le 4 sept. 2015 20:42, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > Yea, just nice to see the cache show up before you use it in unit tests > :) > > Not a biggie from a normal coding perspective. > > > > On Fri, Sep 4, 2015 at 2:32 PM, Romain M

Re: commons-jcs-jcach getCacheNames not working

2015-09-07 Thread Steve Goldsmith
ibu...@gmail.com> wrote: > Le 5 sept. 2015 06:22, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > > I believe the behavior of -all- providers should be the same from a > JCache > > perspective. I'm not sure why it matters how I create the cache if it's > &

Re: commons-jcs-jcach getCacheNames not working

2015-09-05 Thread Steve Goldsmith
t; My point is only you cant rely on what you suppose if you want to stay > standard and not to say it is good or bad. > Le 4 sept. 2015 23:09, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > In my mind it should show up even if it's automatically created.

Re: commons-jcs-jcach getCacheNames not working

2015-09-07 Thread Steve Goldsmith
gt; | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-07 5:45 GMT-07:00 Steve Goldsmith <sgj...@gmail.com>: > > > OK, so now that is out of the way, is there a way to configure a cache > with > > commo

Re: JCache annotations in web app test

2015-09-01 Thread Steve Goldsmith
beans.xml is in WEB-INF. Is it better to use tomee-embedded? I'll try that and see if it works... On Tue, Sep 1, 2015 at 2:24 AM, Romain Manni-Bucau wrote: > Hi > > Le 1 sept. 2015 04:01, "sgjava" a écrit : > > > > I have JCache annotations working with

Re: JCache annotations in web app test

2015-09-01 Thread Steve Goldsmith
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-01 17:53 GMT+02:00 Steve Goldsmith <sgj...@gmail.com>: > > > No, in the actual service. If I inject a bean in the service and use the > > bean f

Re: JCache annotations in web app test

2015-09-01 Thread Steve Goldsmith
annibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-01 16:59 GMT+02:00 Steve Goldsmith <sgj...@gmail.com>: > > > OK, I have JCache annotations working with tomee-embedded using an > injected > > bean. If I try to cache something in the service:

Re: JCache annotations in web app test

2015-09-01 Thread Steve Goldsmith
; | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-01 18:04 GMT+02:00 Steve Goldsmith <sgj...@gmail.com>: > > > So can services have JCache annotations? It wou

Re: JCache cache manager configuration file

2015-09-02 Thread Steve Goldsmith
nibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-02 16:27 GMT+02:00 Steve Goldsmith <sgj...@gma

Re: TomEE 7.0.0 JCache examples

2015-09-02 Thread Steve Goldsmith
Yea, I ran across these in my research. I think my example is pretty striped down (from the configuration, pom and source perspective). I did get ideas from these projects and others though :) Thanks for providing the links. On Wed, Sep 2, 2015 at 3:47 AM, Andy Gumbrecht

Re: JCache cache manager configuration file

2015-09-02 Thread Steve Goldsmith
No, this is different. If I use the default configuration cachingProvider.getCacheManager() all is good. I can access the cache inside the service via cacheBean.getCacheManager().getCache("testCache"). If I specify the configuration file location in getCacheManager I can no longer access the

Re: commons-jcs-jcach getCacheNames not working

2015-09-07 Thread Steve Goldsmith
, 2015 at 4:55 PM, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > Shouldnt but depends on the api you use. > > Snapshot is redeployed btw. > > Le 7 sept. 2015 13:42, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > > It looks like your change >

Re: commons-jcs-jcach getCacheNames not working

2015-09-07 Thread Steve Goldsmith
OK, I'll try to pull snapshot again... On Mon, Sep 7, 2015 at 5:21 PM, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > File shouldnt be here anymore in jcs. > Le 7 sept. 2015 14:02, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > I was just b

Re: commons-jcs-jcach getCacheNames not working

2015-09-07 Thread Steve Goldsmith
nibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-07 10:11 GMT-07:00 Steve Goldsmith <sgj...@gmail.com

Re: commons-jcs-jcach getCacheNames not working

2015-09-07 Thread Steve Goldsmith
t; | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-07 10:11 GMT-07:00 Steve Goldsmith <sgj...@gmail.com>: > > > Should I be using j

Re: JCache annotations using default cache instead of MutableConfiguration or configuration file

2015-09-15 Thread Steve Goldsmith
u <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-15 12:44 GMT-07

Re: JCache annotations using default cache instead of MutableConfiguration or configuration file

2015-09-15 Thread Steve Goldsmith
st caching frameworks allow network access, not just within the same JVM or app. On Tue, Sep 15, 2015 at 9:42 PM, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > 2015-09-15 16:39 GMT-07:00 Steve Goldsmith <sgj...@gmail.com>: > > > OK, maybe it's easier to explain what I'm l

Re: JCache annotations using default cache instead of MutableConfiguration or configuration file

2015-09-15 Thread Steve Goldsmith
It's there https://github.com/sgjava/jcache-tomee. CacheBeanTest has been modified not to use testCache = cacheBean.getCacheManager().getCache("testCache"), only annotations. You will see from the logging that the default cache is created several times. This makes no sense. I'll switch back to

Re: JCache annotations using default cache instead of MutableConfiguration or configuration file

2015-09-14 Thread Steve Goldsmith
OK, I'm using commons-jcs-jcache 2.0-SNAPSHOT as of today and this is the behavior I'm getting. What I'd like if for getCacheManager(new File("src/main/resources/jcache.ccf").toURI(),Thread.currentThread().getContextClassLoader(), cachingProvider. getDefaultProperties()) to work with

Re: JCache annotations using default cache instead of MutableConfiguration or configuration file

2015-09-14 Thread Steve Goldsmith
t; Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > >

Re: JCache annotations using default cache instead of MutableConfiguration or configuration file

2015-09-14 Thread Steve Goldsmith
er.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-09-14 11:36 GMT-07:00 Steve Golds

Re: Scaling MDBs beyond default 10 limit

2015-09-28 Thread Steve Goldsmith
-Bucau <rmannibu...@gmail.com> wrote: > Le 28 sept. 2015 07:24, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > > OK, yea, it's not real clear where configuration preference go (i.e. > > system.properties or tomee.xml). My goal is to have 100 messages &

Re: Scaling MDBs beyond default 10 limit

2015-09-28 Thread Steve Goldsmith
OK, yea, it's not real clear where configuration preference go (i.e. system.properties or tomee.xml). My goal is to have 100 messages processing simultaneously for each MDB. I could have 5 or 10 distinct beans that need to handle up to 100 messages each simultaneously. In case of 10 beans with 100

Re: Test DataSource injection with EmbeddedTomEEContainer

2015-12-08 Thread Steve Goldsmith
au > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-12-

Re: Test DataSource injection with EmbeddedTomEEContainer

2015-12-08 Thread Steve Goldsmith
ibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-12-08 16:29 GMT+0

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: Test DataSource injection with EmbeddedTomEEContainer

2015-12-07 Thread Steve Goldsmith
You say Injector class which I assume is not container.getContext().bind("inject", this). Is there an example somewhere? On Mon, Dec 7, 2015 at 3:55 PM, Romain Manni-Bucau wrote: > Injector class can do the trick > > > Romain Manni-Bucau > @rmannibucau

Re: Test DataSource injection with EmbeddedTomEEContainer

2015-12-07 Thread Steve Goldsmith
nit/src/test/java/org/apache/openejb/junit/TestEJBContainerRule.java#L46 > > side note: you can need to decorate your test @ManagedBean > > > Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github <

Re: Test DataSource injection with EmbeddedTomEEContainer

2015-12-07 Thread Steve Goldsmith
source/ds or java:global/ds if you set a global name to the ds. > Le 7 déc. 2015 22:45, "Steve Goldsmith" <sgj...@gmail.com> a écrit : > > > In order to keep my tests consistent I don't mind looking up the > datasource > > without injection. So if I use: > > > &

Re: TomEE 7 bean validation

2015-12-16 Thread Steve Goldsmith
No it's actually just a JAX-RS payload from a DTO. On Wed, Dec 16, 2015 at 3:30 PM, Jonathan S. Fisher < jonat...@springventuregroup.com> wrote: > Is that on persist to the Database? > > On Wed, Dec 16, 2015 at 1:13 PM, sgjava wrote: > > > What's required to get bean

Re: TomEE 7 bean validation

2015-12-16 Thread Steve Goldsmith
ed, Dec 16, 2015 at 3:22 PM, Steve Goldsmith <sgj...@gmail.com> wrote: > > > My service method looks like: > > > > @Path("/getcustomerstbdata") > > @POST > > public final Response getCustomerSTBData(final CustStbDto > custSt

Re: TomEE 7 bean validation

2015-12-16 Thread Steve Goldsmith
com/jlouismonteiro > http://www.tomitribe.com > > On Wed, Dec 16, 2015 at 10:22 PM, Steve Goldsmith <sgj...@gmail.com> > wrote: > > > My service method looks like: > > > > @Path("/getcustomerstbdata") > > @POST > > public final R

Re: TomEE 7 bean validation

2015-12-16 Thread Steve Goldsmith
;http://rmannibucau.wordpress.com> | Github < > > https://github.com/rmannibucau> | > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > > <http://www.tomitribe.com> > > > > 2015-12-16 21:54 GMT+01:00 Steve Goldsmith <

Re: TomEE 7.0.0-M1 is here!

2015-12-12 Thread Steve Goldsmith
Maybe use Apache's repo until it hit's central https://repository.apache.org/content/groups/public On Sat, Dec 12, 2015 at 9:11 AM, MarkD wrote: > The following ids for the pom (as listed in Maven central) give me an > error: > > org.apache.tomee > tomee > 7.0.0-M1 > >

Re: TomEE embedded vs Spring Boot/Spring Cloud... Heeeeellllpppp

2016-01-05 Thread Steve Goldsmith
I used Spring for several years, but JEE has matured to such a level that it really doesn't make sense any more from my perspective. Unless you have a ton of legacy Spring code with a bunch of Spring only developers perhaps (this is not good in a general sense). The thing I'd say to your boss and

Re: TomEE 7 bean validation

2015-12-21 Thread Steve Goldsmith
Very cool, that works with DTO: 12/21/2015 13:13:33.577 [http-bio-57592-exec-1] DEBUG c.bhn.services.masblaster.OdnService - PostConstruct 12/21/2015 13:13:33.637 [http-bio-57592-exec-1] WARN o.a.c.j.v.ValidationExceptionMapper - OdnService.masVersion.arg0.transId: may not be null 12/21/2015

Re: Bean validation with JCache

2015-12-21 Thread Steve Goldsmith
I cannot post this code, but I can build a stand alone example tonight, thanks! On Mon, Dec 21, 2015 at 4:51 PM, Romain Manni-Bucau wrote: > guess you will need to put it on github cause with this mail we can;t say > if your constructor is valid and what is returning

Re: TomEE 7 bean validation

2015-12-19 Thread Steve Goldsmith
Great, thanks! On Sat, Dec 19, 2015 at 10:57 AM, Romain Manni-Bucau wrote: > > https://github.com/apache/bval/blob/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java > is already there bit why not switching to cdi? > Le 19 déc. 2015 16:34, "sgjava"

Re: JCache annotation not working with local method

2015-12-28 Thread Steve Goldsmith
OK, I figured it had something to do with the proxy. I just moved the method into my service instead of the bean itself. On Mon, Dec 28, 2015 at 10:58 AM, Romain Manni-Bucau wrote: > try to inject yourself and call it, it will work. If you dont go through > the proxy you

Re: TomEE 7.0.0-M1 JMS thread pool size/instance limit properties changed?

2015-12-20 Thread Steve Goldsmith
http://tomee.apache.org/properties-tool.html needs to be updated (any idea what the new value is?): # Resource(id=Default JMS Resource Adapter)# className: org.apache.activemq.ra.ActiveMQResourceAdapter#Default\ JMS\ Resource\ Adapter.ServerUrl=vm\://localhost?async\=trueDefault\ JMS\ Resource\

Re: TomEE 7.0.0-M1 JMS thread pool size/instance limit properties changed?

2015-12-20 Thread Steve Goldsmith
Ah, must be OpenEJB then? On Sun, Dec 20, 2015 at 11:43 AM, Romain Manni-Bucau wrote: > This part didnt change on tomee side > > > Romain Manni-Bucau > @rmannibucau | Blog > | Github < >

Re: JCS JCache replication

2015-11-30 Thread Steve Goldsmith
OK, so maybe the best thing for me is to create a simple main class, fire up the server and then run my app. Not a huge deal, but at least with ehcache 2.x you were able to to do it all through configuration. On Mon, Nov 30, 2015 at 2:39 PM, Romain Manni-Bucau wrote: >

Re: Getting CacheManager from CacheResolverFactory

2015-11-18 Thread Steve Goldsmith
OK, great, thanks for the tip! On Wed, Nov 18, 2015 at 4:42 PM, Romain Manni-Bucau wrote: > add a @Produces for cacheManager and get directly the CacheManager > injected ;) > > CacheBean is then just the producer bean completely hidden from the > other parts of app :) > >

Re: JCache cache visible to cache manager with JCS provider

2015-11-20 Thread Steve Goldsmith
So, if I use the same cache name in createCache as in ccf it will pick up the ccf configuration for that cache? On Fri, Nov 20, 2015 at 11:02 AM, Romain Manni-Bucau wrote: > JCache sees caches you create through JCache so yes createCache(). > createCache will respect ccf

Re: Getting CacheManager from CacheResolverFactory

2015-11-19 Thread Steve Goldsmith
Thanks Andy, I believe I looked at this before. The CacheResolverFactory does the trick, but I'll look at more providers since I'm keeping the example project generic. On Thu, Nov 19, 2015 at 5:53 AM, Andy Gumbrecht wrote: > Hi Steve, > > Late to the game, but you

Re: Jms 2 into tomee7

2016-06-03 Thread Steve Goldsmith
So, official == passes TCK? If it unofficially supports JMS 2.0 that would work for me :) On Fri, Jun 3, 2016 at 10:36 AM, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > 2016-06-03 16:30 GMT+02:00 Steve Goldsmith <sgj...@gmail.com>: > > > Yea, I really don't care a

Re: Jms 2 into tomee7

2016-06-06 Thread Steve Goldsmith
> > > > > Not yet - no link with AMQ 5, breaks too much apps. > > > > Same question, what do you miss from JMS 2 TomEE doesnt provide? > > > > > > > > > > > BR > > > > > > Matej > > > > > > > > > >

  1   2   3   >