[JBoss Portal] - Changing the isolation level for Portal's TreeCache
by ekusnitz@enernoc.com
Environment: JBoss AS 4.0.5GA
Configuration: All
Portal version: 2.4.1
Using jboss-portal-ha.sar in a cluster
We are noticing that there are quite a bit of locking problems with the JBoss Portal TreeCache. Here is one example:
read lock for /org/hibernate/cache/StandardQueryCache/sql: select userinstan0_.PK as PK16_, userinstan0_.INSTANCE_PK as INSTANCE2_16_, userinstan0_.SER_STATE as SER3_16_, userinstan0_.USER_ID as USER4_16_, userinstan0_.PORTLET_REF as PORTLET5_16_ from JBP_INSTANCE_PER_USER userinstan0_ where userinstan0_.INSTANCE_PK=? and userinstan0_.USER_ID=?; parameters: ; named parameters: {userId=jplaprise(a)ascentmedia.com, instanceKey=25} could not be acquired by GlobalTransaction:<ensumapp01-01:32792>:903 after 10000 ms. Locks: Read lock owners: []
|
| Write lock owner: GlobalTransaction:<ensumapp01-01:32792>:902
|
| , lock info: write owner=GlobalTransaction:<ensumapp01-01:32792>:902 (activeReaders=0, activeWriter=Thread[TP-Processor1,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
We are hardly using Portal features at all and in fact plan to remove it in the next version of our application. We are not using Portal state replication or ClusteredSingleSignOn.
My question is, we have noticed that by default Portal uses REPEATABLE_READ for the isolation level for its TreeCache. What are the implications of downgrading it to READ_COMMITTED or even lower? Would this possibly eliminate the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114769#4114769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114769
18 years, 4 months
[JBoss Seam] - Re: @Factory method kills my @In fields
by tomstrummer
"pete.muir(a)jboss.org" wrote : Seam injects by variable name, not by type so try @In TestEntity testEntity;
Hmm nope, sorry that did not help. Same error. Here is the updated code snice I realized I had a typo in my template as well:
TestImpl.java
| import java.util.ArrayList;
| import java.util.List;
|
| import javax.ejb.Stateless;
|
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Factory;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.datamodel.DataModel;
| import org.jboss.seam.log.Log;
|
| @Stateless
| @Name("test")
| public class TestImpl implements Test {
| @Logger Log log;
|
| public void biteMe() {
| log.info( testEntity.getName() );
| something.add(testEntity);
| }
|
| @In(scope=ScopeType.EVENT) private TestEntity testEntity;
|
| @DataModel(scope=ScopeType.PAGE) List<TestEntity> something;
|
| @Factory("something")
| public List<TestEntity> initSomething() {
| List<TestEntity> list = new ArrayList<TestEntity>();
| return list;
| }
| }
|
test.xhtml:
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.org/rich"
| template="layout/template.xhtml">
|
| <ui:define name="body">
|
| <h:messages globalOnly="true" styleClass="message"/>
|
| <rich:panel>
| <f:facet name="header">Test!</f:facet>
|
| <h:form>
| <h:inputText value='#{testEntity.name}' />
| <h:commandButton type="submit" value='Create' action='#{test.biteMe}' />
|
| <h:dataTable value='#{something}' var='profile'>
| <h:column>
| <f:facet name='header'><h:outputText value='Name' /></f:facet>
| <h:outputText value='#{profile.profileName}' />
| </h:column>
| </h:dataTable>
| </h:form>
|
| </rich:panel>
|
| </ui:define>
| </ui:composition>
|
For real... Comment out that "@Factory" annotation and suddenly it works (of course the list is not initialized then...) Any other ideas?
Thanks again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114765#4114765
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114765
18 years, 4 months