[JBoss jBPM] - Re: unable to login to jbpm cosole
by santoshkumarsamala
I got the solution for this, I have not uploaded all test data, when i have uploaded following data
| INSERT INTO JBPM_ID_GROUP VALUES(1,'G','sales','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(2,'G','admin','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(3,'G','user','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(4,'G','hr','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(5,'G','manager','security-role',NULL);
| INSERT INTO JBPM_ID_USER VALUES(1,'U','user','user(a)sample.domain','user');
| INSERT INTO JBPM_ID_USER VALUES(2,'U','manager','manager(a)sample.domain','manager');
| INSERT INTO JBPM_ID_USER VALUES(3,'U','admin','admin(a)sample.domain','admin');
| INSERT INTO JBPM_ID_USER VALUES(4,'U','shipper','shipper(a)sample.domain','shipper');
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(1,'M',NULL,NULL,2,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(2,'M',NULL,NULL,3,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(3,'M',NULL,NULL,4,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(4,'M',NULL,NULL,4,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(5,'M',NULL,NULL,1,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(6,'M',NULL,NULL,2,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(7,'M',NULL,NULL,3,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(8,'M',NULL,NULL,3,2);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(9,'M',NULL,NULL,2,2);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(10,'M',NULL,NULL,2,5);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(11,'M',NULL,'boss',2,1);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(12,'M',NULL,NULL,1,1);
|
It is working, when I type url http://localhost:8080/jbpm-console/app/upload
Iam getting a single message "Process upload module is operational ", does it mean iam successful?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212704#4212704
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212704
17 years, 1 month
[EJB/JBoss] - EJB3.0 Cache eviction policy not firing
by _rob_jboss
Config:
Java version "1.6.0_02"
JBoss 4.2.2.GA which ships with:
- JBoss Cache 1.4.1.SP5
- Hibernate EntityManager 3.2.1.GA
- Hibernate Annotations 3.2.1.GA
- Hibernate 3.2.4.sp1
Overview:
I'm quite new to JBoss caching and have been able to place queries into the cache. For reasons beyond me, the eviction policy I have defined for my cache region is not firing and therefore the object is not removed from memory after the timeToLiveSeconds value has passed. To add to this, periodically every node within the cache is removed by org.jboss.cache.eviction.BaseEvictionAlgorithm.
I believe that I have setup the cache eviction policies correctly within all/deploy/ejb3-entity-cache-service.xml as follows:
<attribute name="InitialStateRetrievalTimeout">17500</attribute>
| <attribute name="SyncReplTimeout">17500</attribute>
| <attribute name="LockAcquisitionTimeout">15000</attribute>
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">1</attribute>
|
| <!-- Cache wide default -->
| <region name="/_default_" policyClass="org.jboss.cache.eviction.LRUPolicy">
| <attribute name="maxNodes">5000</attribute>
| <!-- small number for testing only -->
| <attribute name="timeToLiveSeconds">10</attribute>
| </region>
| <!-- Query region -->
| <region name="/myprefix/Queries" policyClass="org.jboss.cache.eviction.LRUPolicy">
| <attribute name="maxNodes">50</attribute>
| <!-- small number for testing only -->
| <attribute name="timeToLiveSeconds">5</attribute>
| </region>
| </config>
| </attribute>
I have enabled query caching by defining the following in persistence.xml:
| <properties>
| <property name="hibernate.cache.use_query_cache" value="true"/>
| <property name="hibernate.cache.use_second_level_cache" value="true"/>
| <property name="hibernate.cache.region_prefix" value="myprefix"/>
| <property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook" />
| <property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache" />
| </properties>
|
|
|
I can see the query nodes within the TreeCache by enabling and running the following:
<mbean code="org.jboss.cache.TreeCacheView" name="jboss.cache:service=TreeCacheViewEJB3EntityTreeCache">
| <depends>jboss.cache:service=EJB3EntityTreeCache</depends>
| <attribute name="CacheService">jboss.cache:service=EJB3EntityTreeCache</attribute>
| </mbean>
Below is the named query with caching enabled:
| @NamedQuery(name = "Venue.findById", query = "SELECT v FROM Venue v WHERE v.venueId = :id", hints=
| {@QueryHint(name="org.hibernate.cacheable",value="true"),
| @QueryHint(name="org.hibernate.cacheRegion", value="Queries")})
These two lines worry me (any idea why config: null appears?):
| [org.jboss.system.ServiceConfigurator] EvictionPolicyConfig set to [config: null] in jboss.cache:service=EJB3EntityTreeCache
| [org.jboss.cache.TreeCache] setEvictionPolicyConfig(): [config: null]
I can see that the region is created and the eviction timer is started:
[org.jboss.cache.eviction.LRUConfiguration] parseConfig: name -- /myprefix/Queries maxNodes -- 50 timeToLiveSeconds -- 5 maxAgeSe
| onds -- 0
| [org.jboss.cache.eviction.RegionManager] createRegion(): creating region for fqn- /myprefix/Queries
| [org.jboss.cache.eviction.RegionManager] Starting eviction timer
| [org.jboss.cache.TreeCache] Started jboss.cache:service=EJB3EntityTreeCache
I can see the the query being cached but under a different fqn as I defined (and a different cache maybe??):
[org.hibernate.cache.StandardQueryCache] caching query results in region: myprefix./Queries; timestamp=12354921739
This line appears periodically and removes everything from the cache:
[org.jboss.cache.eviction.BaseEvictionAlgorithm] Visiting node that was not added to eviction queues. Assuming that it has 1 element
Any help with this issue would be greatly appricated.
Rob.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212688#4212688
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212688
17 years, 1 month