Re: Sharing a eh cache manager

2014-05-25 Thread Jason Pell
So I managed to work around the file not found thing by turning off overflow to disk for the caches, by adding: But I had to configure a different location for the ehcache config to do something like this: properties.put(SecurityConstants.CACHE_CONFIG_FILE, new URL("file:${spring.config.

Re: Sharing a eh cache manager

2014-05-25 Thread Jason Pell
I realised sharing is not going to work, unless the shutdown sequence for a manager is also disabled where it's a single global instance. I remember finding a problem with cxf and ehcache when it inadvertently used a shared instance. It actually shut down the single global instance when a service

Sharing a eh cache manager

2014-05-25 Thread Jason Pell
Hi, I already create a eh cache manager for caching spring security ldap user details. I would like to force CXF to use the very same eh cache manager rather than create a new one. I have the following spring bean: org.springframework.cache.ehcache.EhCacheManagerFactoryBean

RE: java.net.SocketTimeoutException: SocketTimeoutException invoking http://api.ean.com/ean-services/rs/hotel/v3/ping: Read Timeout

2014-05-25 Thread XiLai Dai
Hi, Seems the address in WebClient.create() doesn't match the endpoint which your REST service exposed: Available RESTful services: Endpoint address: http://localhost:7400/ean-services/rs/hotel/v3 WADL : http://localhost:7400/ean-services/rs/hotel/v3?_wadl Regards. -Original Message- F

java.net.SocketTimeoutException: SocketTimeoutException invoking http://api.ean.com/ean-services/rs/hotel/v3/ping: Read Timeout

2014-05-25 Thread Christopher Cheng
I am using a CXF 2.7 and try a very simple REST call with this and return the SocketTimeoutException, but I am able to use Chrome to see the results with " http://api.ean.com/ean-services/rs/hotel/v3/ping";. What's the problem? WebClient client = WebClient.create("http://api.ean.com/ean-services/