Bug 1262401
| Summary: | [GSS](6.4.z) Persistence unit not shown in management console when custom region_prefix is specified | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Patrick <pbajenez> |
| Component: | JPA | Assignee: | Ryan Emerson <remerson> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Simka <msimka> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3.0 | CC: | bbaranow, bmaxwell, cdewolf, jtruhlar, mcada, pbajenez, remerson, scott.marlow, sjacobs, ttarrant |
| Target Milestone: | CR1 | ||
| Target Release: | EAP 6.4.8 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-17 12:34:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1273382, 1279553 | ||
|
Description
Patrick
2015-09-11 14:28:47 UTC
Hello, Apologies for the delay: I tried myself,and the issue is still there, later on, Dave++ found out that the App doesn't sent PU information on purpose, when region_prefix is property is used. https://issues.jboss.org/browse/AS7-4441 This is a code snippet from org.jboss.as.jpa.processor.PersistenceUnitServiceHandler private static void addManagementConsole(final DeploymentUnit deploymentUnit, final PersistenceUnitMetadata pu, final PersistenceProviderAdaptor adaptor) { ManagementAdaptor managementAdaptor = adaptor.getManagementAdaptor(); // workaround for AS7-4441, if a custom hibernate.cache.region_prefix is specified, don't show the persistence // unit in management console. if (managementAdaptor != null && adaptor.doesScopedPersistenceUnitNameIdentifyCacheRegionName(pu)) { That issue seems to be solved and it's about jmx-console, but the same behaviour is still happening, as test on EAP-6.3.0 and JON-3.3.0 The PU wont show up in EAP and JON . Only by setting these: <property name="hibernate.cache.use_second_level_cache" value="true"/> <property name="hibernate.cache.region_prefix" value="myprefix"/> <property name="hibernate.cache.infinispan.myprefix.MyEntity.cfg" value="MyEntity-Cache"/> <property name="hibernate.cache.infinispan.myprefix.MyEntity.expiration.max_idle" value= "65123"/> <property name="hibernate.cache.infinispan.myprefix.MyEntity.eviction.max_entries" value= "10000"/> <property name="hibernate.cache.infinispan.myprefix.MyEntity.expiration.lifespan" value= "50000"/> <property name="hibernate.cache.infinispan.myprefix.MyEntity.expiration.max_idle" value= "50000"/> according to this kcs: https://access.redhat.com/solutions/440683 Although, the PU is deployed correctly, and works as expected. Cheers Scott Marlow <scott.marlow> updated the status of jira WFLY-5478 to Closed This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions Verified with EAP 6.4.8.CP.CR2 If you use hibernate.cache.region_prefix you also have to set jboss.as.jpa.scopedname on the same value. Retroactively bulk-closing issues from released EAP 6.4 cumulative patches. |