[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-04-14 Thread mariuszs
Thanks, I have resolved my problem. Documentation of JbossCache is wrong
anonymous wrote : 5.2. Via JBoss Microcontainer (JBoss AS 5.x)
  | 
  | Beginning with AS 5, JBoss AS supports deployment of POJO services via 
deployment of a file whose name ends with -beans.xml. A POJO service is one 
whose implementation is via a Plain Old Java Object, meaning a simple java 
bean that isn't required to implement any special interfaces or extend any 
particular superclass. 
After changing -beans.xml to -jboss-beans.xml now I can access my cache ;) 
JBoss Cache folks are bad guys :)


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4225325#4225325

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4225325
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-04-14 Thread manik.surt...@jboss.com
anonymous wrote : 
  | JBoss Cache folks are bad guys :) 
  | 

You bet we are!  ;-)  Fixed the docs in JBC trunk.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4225336#4225336

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4225336
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-04-10 Thread mariuszs
Stupid question, how to acces cache beans from MBean?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4224848#4224848

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4224848
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-04-10 Thread alesj
mariuszs wrote : Stupid question, how to acces cache beans from MBean?
Check the API of cache's MBean.
Or the javadocs should explain it - if it's not trivial to see it from the 
method names.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4224890#4224890

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4224890
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-01-19 Thread bstansbe...@jboss.com
Ales, I couldn't find it either. :-)

Amit, FYI, the nested beans inside the MobicentsCacheConfig bean no longer 
need to have names (unless you want to access them somehow). Ales added that 
for me a while back. So, you could do this:


  | bean name=MobicentsCacheConfig 
class=org.jboss.cache.config.Configuration
  | 
  |   !-- Externally injected services --  
  |   property name=runtimeConfig
  |  bean class=org.jboss.cache.config.RuntimeConfig
  | property name=transactionManager
  |inject bean=TransactionManager 
property=transactionManager/
  | /property
  | 
  |  /bean
  |   /property
  | 
  |   ... other simple properties
  | 
  |   !--  Specific eviction policy configurations. This is LRU --
  |   property name=evictionConfig
  |  bean class=org.jboss.cache.config.EvictionConfig
  | property 
name=defaultEvictionPolicyClassorg.jboss.cache.eviction.LRUPolicy/property
  | property name=wakeupIntervalSeconds5/property
  | property name=evictionRegionConfigs
  |list
  |   bean class=org.jboss.cache.config.EvictionRegionConfig
  |  property name=regionName/_default_/property
  |  property name=evictionPolicyConfig
  | bean 
class=org.jboss.cache.eviction.LRUConfiguration
  |property name=maxNodes5000/property
  |property 
name=timeToLiveSeconds1000/property
  | /bean
  |  /property
  |   /bean
  |/list
  | /property
  |  /bean
  |   /property
  |   
  |/bean
  | 

which is a bit less verbose and saves the need to make up bean names.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4203054#4203054

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4203054
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-01-15 Thread amit.bhay...@jboss.com
I was able to get this solved. There was an error in xml file


Here is right one

?xml version=1.0 encoding=UTF-8?
  | 
  | deployment xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns=urn:jboss:bean-deployer:2.0
  | 
  | bean name=Mobicents.JAINSLEE.TransactionManagerMBean
  | 
class=org.mobicents.slee.runtime.transaction.TransactionManagerImpl
  | 
annotation@org.jboss.aop.microcontainer.aspects.jmx.JMX(name=slee:name=TransactionManagerMBean,exposedInterface=org.mobicents.slee.runtime.transaction.TransactionManagerImpl.class,
 registerDirectly=true)/annotation
  | demandTransactionManager/demand
  | !-- jboss as tx manager bean --
  | property 
name=treeCacheNamejboss.cache:service=TreeCache/property
  | property 
name=deploymentTreeCacheNamejboss.cache:service=DeploymentTreeCache/property
  | property 
name=profileTreeCacheNamejboss.cache:service=ProfileTreeCache/property
  | property 
name=runtimeTreeCacheNamejboss.cache:service=RuntimeTreeCache/property
  | 
  | demandMobicents.JAINSLEE.ServiceCacheMBean/demand
  | demandMobicents.JAINSLEE.DeploymentTreeCacheMBean/demand
  | demandMobicents.JAINSLEE.ProfileTreeCacheMBean/demand
  | demandMobicents.JAINSLEE.RuntimeTreeCacheMBean/demand
  | /bean
  | 
  | 
  | !-- JBOSS CACHE --
  | 
  | !-- First we create a Configuration object for the cache --
  |bean name=MobicentsCacheConfig 
class=org.jboss.cache.config.Configuration
  | 
  |   !-- Externally injected services --  
  |   property name=runtimeConfig
  |  bean name=ExampleCacheRuntimeConfig 
class=org.jboss.cache.config.RuntimeConfig
  | property name=transactionManager
  |inject bean=TransactionManager 
property=transactionManager/
  | /property
  | 
  |  /bean
  |   /property
  | 
  |   !--
  |   Node locking level : SERIALIZABLE
  |REPEATABLE_READ (default)
  |READ_COMMITTED
  |READ_UNCOMMITTED
  |NONE
  |   --
  |   property name=isolationLevelREPEATABLE_READ/property
  | 
  |   !-- Valid modes are LOCAL
  |REPL_ASYNC
  |REPL_SYNC
  |   --
  |   property name=cacheModeLOCAL/property 
  | 
  |   !--  Max number of milliseconds to wait for a lock acquisition --
  |   property name=lockAcquisitionTimeout15000/property
  | 
  |   property name=exposeManagementStatisticstrue/property
  | 
  |   !--  Specific eviction policy configurations. This is LRU --
  |   property name=evictionConfig
  |  bean name=ExampleEvictionConfig 
class=org.jboss.cache.config.EvictionConfig
  | property 
name=defaultEvictionPolicyClassorg.jboss.cache.eviction.LRUPolicy/property
  | property name=wakeupIntervalSeconds5/property
  | property name=evictionRegionConfigs
  |list
  |   bean name=ExampleDefaultEvictionRegionConfig 
class=org.jboss.cache.config.EvictionRegionConfig
  |  property name=regionName/_default_/property
  |  property name=evictionPolicyConfig
  | bean name=ExampleDefaultLRUConfig 
class=org.jboss.cache.eviction.LRUConfiguration
  |property name=maxNodes5000/property
  |property 
name=timeToLiveSeconds1000/property
  | /bean
  |  /property
  |   /bean
  |/list
  | /property
  |  /bean
  |   /property
  |   
  |/bean
  | 
  |!-- Factory to build the Cache. --
  |bean name=DefaultCacheFactory 
class=org.jboss.cache.DefaultCacheFactory  
  |   constructor factoryClass=org.jboss.cache.DefaultCacheFactory 
factoryMethod=getInstance/
  |/bean
  | 
  |!-- The caches themselves --
  |
  |bean name=Mobicents.JAINSLEE.ServiceCache 
class=org.jboss.cache.Cache  
  |   constructor factoryMethod=createCache
  |   factory bean=DefaultCacheFactory/
  |   parameter class=org.jboss.cache.config.Configurationinject 
bean=MobicentsCacheConfig//parameter
  |   parameter class=booleanfalse/parameter
  |   /constructor
  |/bean
  |
  |bean name=Mobicents.JAINSLEE.DeploymentTreeCache 
class=org.jboss.cache.Cache   
  |   constructor factoryMethod=createCache
  |   factory bean=DefaultCacheFactory/
  |   parameter class=org.jboss.cache.config.Configurationinject 
bean=MobicentsCacheConfig//parameter
  |   parameter class=booleanfalse/parameter
  |   /constructor
  |/bean

[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-01-15 Thread alesj
amit.bhay...@jboss.com wrote : I was able to get this solved. There was an 
error in xml file
What was the error?
It's just too much xml code to look at. :-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4202064#4202064

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4202064
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Deploying JBoss Cache as MBean in microcontainer

2009-01-14 Thread amit.bhay...@jboss.com
here is complete bean.xml


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | deployment xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xmlns=urn:jboss:bean-deployer:2.0
  | 
  | bean name=Mobicents.JAINSLEE.TransactionManagerMBean
  | 
class=org.mobicents.slee.runtime.transaction.TransactionManagerImpl
  | 
  | 
annotation@org.jboss.aop.microcontainer.aspects.jmx.JMX(name=slee:name=TransactionManagerMBean,exposedInterface=org.mobicents.slee.runtime.transaction.TransactionManagerImpl.class,registerDirectly=true)/annotation
  | !-- jboss as tx manager bean --
  | property name=treeCacheName
  | jboss.cache:service=TreeCache
  | /property
  | property name=deploymentTreeCacheName
  | jboss.cache:service=DeploymentTreeCache
  | /property
  | property name=profileTreeCacheName
  | jboss.cache:service=ProfileTreeCache
  | /property
  | property name=runtimeTreeCacheName
  | jboss.cache:service=RuntimeTreeCache
  | /property
  | demandTransactionManager/demand
  | demandMobicents.JAINSLEE.ServiceCacheMBean/demand
  | demandMobicents.JAINSLEE.DeploymentTreeCacheMBean/demand
  | demandMobicents.JAINSLEE.ProfileTreeCacheMBean/demand
  | demandMobicents.JAINSLEE.RuntimeTreeCacheMBean/demand
  | /bean
  | 
  | !-- JBOSS CACHE --
  | 
  | !-- First we create a Configuration object for the cache --
  | bean name=MobicentsCacheConfig
  | class=org.jboss.cache.config.Configuration
  | 
  | !-- Externally injected services --
  | property name=runtimeConfig
  | bean name=ExampleCacheRuntimeConfig
  | class=org.jboss.cache.config.RuntimeConfig
  | property name=transactionManager
  | inject bean=TransactionManager
  | property=transactionManager /
  | /property
  | property name=muxChannelFactory
  | inject bean=JChannelFactory /
  | /property
  | /bean
  | /property
  | 
  | !--
  | Node locking level : SERIALIZABLE
  | REPEATABLE_READ (default)
  | READ_COMMITTED
  | READ_UNCOMMITTED
  | NONE
  | --
  | property name=isolationLevelREPEATABLE_READ/property
  | 
  | !-- Valid modes are LOCAL
  | REPL_ASYNC
  | REPL_SYNC
  | --
  | property name=cacheModeLOCAL/property
  | 
  | !--  Max number of milliseconds to wait for a lock acquisition 
--
  | property name=lockAcquisitionTimeout15000/property
  | 
  | property name=exposeManagementStatisticstrue/property
  | 
  | !--  Specific eviction policy configurations. This is LRU --
  | property name=evictionConfig
  | bean name=ExampleEvictionConfig
  | class=org.jboss.cache.config.EvictionConfig
  | property name=defaultEvictionPolicyClass
  | org.jboss.cache.eviction.LRUPolicy
  | /property
  | property 
name=wakeupIntervalSeconds5/property
  | property name=evictionRegionConfigs
  | list
  | bean 
name=ExampleDefaultEvictionRegionConfig
  | 
class=org.jboss.cache.config.EvictionRegionConfig
  | property 
name=regionName
  | /_default_
  | /property
  | property 
name=evictionPolicyConfig
  | bean 
name=ExampleDefaultLRUConfig
  | 
class=org.jboss.cache.eviction.LRUConfiguration
  | 
property name=maxNodes
  | 
5000
  | 
/property
  | 
property
  |