[JBossCache] - Re: Cache 1.4.1 region problems on jboss-ea-4.2.0
by loumaus
thanks for the help ..
it works ..
Without looking at the sources I thought that the responsible eviction handler would already prepend the deployment name as it is properly configured in the hibernate part:
| Properties [
|
| hibernate.cache.use_minimal_puts: true
|
| hibernate.jndi.java.naming.factory.url.pkgs: org.jboss.naming:org.jnp.interfaces
|
| hibernate.cache.provider_class: org.jboss.ejb3.entity.TreeCacheProviderHook
|
| hibernate.jndi.java.naming.factory.initial: org.jnp.interfaces.NamingContextFactory
|
| hibernate.transaction.manager_lookup_class: org.hibernate.transaction.JBossTransactionManagerLookup
|
| hibernate.cache.use_query_cache: true
|
| hibernate.cache.use_second_level_cache: true
|
| hibernate.jacc.ctx.id: service-ejb-catalog-SNAPSHOT.jar
|
| hibernate.cache.region_prefix: cat_ear,service-ejb-catalog-SNAPSHOT_jar,JpaPersistence
|
| hibernate.session_factory_name: persistence.units:ear=cat.ear,jar=service-ejb-catalog-SNAPSHOT.jar,unitName=JpaPersistence
|
| hibernate.bytecode.use_reflection_optimizer: false
|
| hibernate.treecache.mbean.object_name: jboss.cache:service=EJB3EntityTreeCache
|
|
The way I have to use it right now limits the application area very strongly.
Am I the first one to face this problem or am I using the region config in a wrong way ???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089328#4089328
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089328
18 years, 6 months
[JBossWS] - Help with WSDL and extensions
by viniciuscarvalho
Hello there! I'm trying to figure out how one can achieve an way to use inheritance with WSDL. On a previous post url][http://www.jboss.org/index.html?module=bb&op=viewtopic&t=119507[/url]
(Still not answered :( ) I've explained that I need to find a way to use the same contract and have different implementations of the messages to be accept. I'm pretty aware that webservices are not RPC (and I really miss CORBA when I get stuck in things like this).
But I really would like to find a way to have an extensible WSDL operation:
Command : interface
DHCPCommand, AsteriskCommand, CMTSCommand are all implementations
Any time, a new command may arrive, as long as it implements the command, the
endpoint should be able to accept it. So far it has been very disappointing.
When the user sends any command, it converts into a Command, missing all extra properties on the subclasses :(
So I had the idea to receive an Element, so anything sent should be accept. Did not work since Element is an interface and JAXB can't bind it :(
Now I'd like to use the anyElement type, but as it gets converted to Object, I'm gonna miss everything.
Summing up : In JBoss WS can I create an endpoint that does not marshall the received xml? Is it possible to have an endpoint that simply forward the xml requests to the SEI?
Any help, would be most appreciated
Best Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089327#4089327
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089327
18 years, 6 months
[JBossCache] - Re: Cache 1.4.1 region problems on jboss-ea-4.2.0
by bstansberry@jboss.com
Yep; it's what I suspected. The code is prepending the deployment name to Fqn. It's only supposed to do that if you don't specify a region. As a workaround, you can:
| <!-- Specific eviction policy configurations. This is LRU -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <!-- Cache wide default -->
| <region name="/_default_">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">0</attribute>
| <attribute name="maxAgeSeconds">60</attribute>
| </region>
| <region name="/cat_ear,service-ejb-catalog-SNAPSHOT_jar,JpaPersistence/catalog/persistent">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">0</attribute>
| <attribute name="maxAgeSeconds">7200</attribute>
| </region>
| </config>
| </attribute>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089323#4089323
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089323
18 years, 6 months
[JBossCache] - Re: Cache 1.4.1 region problems on jboss-ea-4.2.0
by loumaus
does this help ???
| 2007-09-27 14:25:36,929 DEBUG [org.hibernate.cache.CacheFactory] instantiating cache region: cat_ear,service-ejb-catalog-SNAPSHOT_jar,JpaPersistence./ca
|
| talog/persistent usage strategy: read-only
|
| 2007-09-27 14:25:36,929 WARN [org.hibernate.cache.CacheFactory] read-only cache configured for mutable class: cat_ear,service-ejb-catalog-SNAPSHOT_jar,
|
| JpaPersistence./catalog/persistent
|
| 2007-09-27 14:25:36,944 DEBUG [org.jboss.cache.marshall.RegionManager] createRegion(): creating region for fqn- /cat_ear,service-ejb-catalog-SNAPSHOT_ja
|
| r,JpaPersistence/catalog/persistent
|
| 2007-09-27 14:25:36,945 DEBUG [org.jboss.cache.TreeCache] activating /cat_ear,service-ejb-catalog-SNAPSHOT_jar,JpaPersistence/catalog/persistent
|
| 2007-09-27 14:25:36,945 DEBUG [org.jboss.cache.TreeCache] forcing release of locks in /
|
| 2007-09-27 14:25:36,945 DEBUG [org.jboss.cache.TreeCache] forcing release of locks in /cat_ear,service-ejb-catalog-SNAPSHOT_jar,JpaPersistence
|
| 2007-09-27 14:25:36,945 DEBUG [org.jboss.cache.TreeCache] forcing release of locks in /cat_ear,service-ejb-catalog-SNAPSHOT_jar,JpaPersistence/catalog
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089319#4089319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089319
18 years, 6 months