[JBoss Portal] - Rich client portlets + asynchronous call + IPC
by jbrelet
I am currently working on a portal that uses several rich client portlets (flash applications). But I have to face problems linked to inter-portlet communication (IPC) and page refresh, that have a bad impact on user experience.
In fact, when I submit a form in a flash application, the portlet containing this application must treat the request, and then send events to other portlets that need to be aware of this action. Only these particular portlets should then be rerendered, and not the portlet invoked at the beginning (so as to keep the flash application context).
To perform this : a flash application can communicate with its portlet by passing PortletURLs as parameters when calling it. A resourceURL seems to be the best way as the portlet is not rendered after call to serveResource() method. But unfortunately, according to JSR-286 specification, it's not possible to publish events in this method. So I currently use an ActionURL, and send events in the processAction method. But it cause the whole portal page to be refreshed, and flash applications to loose their context.
Do you know how we can overpass this limitation and render only portlets that needs to be rendered ?
Thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207700#4207700
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207700
17 years, 5 months
[JBoss Cache: Core Edition] - Re: Problem in JDBC cache loader
by sridhar_ratna
Dear Manik,
I have done the modifications as u suggested and ran the program. It created the table as
| DROP TABLE IF EXISTS `jbosscache`.`jbosscache`;
| CREATE TABLE `jbosscache`.`jbosscache` (
| `fqn` varchar(255) NOT NULL,
| `value` blob,
| `parent` varchar(255) default NULL,
| PRIMARY KEY (`fqn`)
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
There is no problem in porting the data from existing table (only 2 columns) into this table. but parent key will be null in my case.
In to the table created by jboss cache i inserted two rows like
| insert into jbosscache(fqn,value) values ('1','1');
| insert into jbosscache(fqn,value) values ('2','2');
|
when I ran the same program by adding the following lines of code
| System.out.println(jdbcCacheLoader.exists(Fqn.fromString("/")));
| System.out.println(jdbcCacheLoader.getChildrenNames(Fqn.fromString("/")));
| System.out.println(jdbcCacheLoader.getNodeCount());
|
its printing on console
| true
| null
| 3
|
Can you please help me in how to traverse thru the elements in the cache.
Please help me
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207684#4207684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207684
17 years, 5 months
[JBoss Portal] - Re: Portal page name
by Vishal Student 123
Thanks for the reply.
When I ran the code within a template it returned "null" for that attribute.
The only attributes that seem to be availible in the JSPContext are:
| {
| javax.servlet.jsp.jspConfig=org.apache.catalina.core.StandardWrapperFacade@1e907d8,
| javax.servlet.jsp.jspResponse=GZIPResponseWrapper@65b968,
| javax.servlet.jsp.jspPageContext=org.apache.jasper.runtime.PageContextImpl@10edb20,
| javax.servlet.jsp.jspPage=org.apache.jsp.layouts._005ftemplate1.index_jsp@8498c6,
| javax.servlet.jsp.jspOut=org.apache.jasper.runtime.JspWriterImpl@b37fe0,
| javax.servlet.jsp.jspSession=platform.util.RootRequestFilter$SessionWrapper@6f830d,
| javax.servlet.jsp.jspRequest=org.jboss.portal.theme.LayoutDispatcher$1@1050840,
| javax.servlet.jsp.jspApplication=org.apache.catalina.core.ApplicationContextFacade@1225fb9
| }
|
Any ideas?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207680#4207680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207680
17 years, 5 months
[JBoss Cache: Core Edition] - Re: Far cache problem (3.0.2) tx problems
by rs1050
Here is the full config. Commented out section is what i used for TcpDelegatingCacheLoader.
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
|
| <locking
| isolationLevel="READ_COMMITTED"
| lockParentForChildInsertRemove="false"
| lockAcquisitionTimeout="20000"
| nodeLockingScheme="mvcc"
| writeSkewCheck="false"
| concurrencyLevel="500"/>
|
| <transaction
| transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"
| syncRollbackPhase="false"
| syncCommitPhase="false"/>
|
| <jmxStatistics
| enabled="false"/>
|
| <shutdown
| hookBehavior="DEFAULT"/>
|
| <listeners
| asyncPoolSize="1"
| asyncQueueSize="1000000"/>
|
| <invocationBatching
| enabled="false"/>
|
| <serialization
| objectInputStreamPoolSize="12"
| objectOutputStreamPoolSize="14"
| version="3.0.0"
| marshallerClass="org.jboss.cache.marshall.VersionAwareMarshaller"
| useLazyDeserialization="false"
| useRegionBasedMarshalling="false"/>
|
| <loaders passivation="false" shared="false">
| <!--<loader class="org.jboss.cache.loader.TcpDelegatingCacheLoader"-->
| <!--async="false"-->
| <!--fetchPersistentState="true"-->
| <!--ignoreModifications="false"-->
| <!--purgeOnStartup="false">-->
| <!--<properties>-->
| <!--host=127.0.0.1-->
| <!--port=7500-->
| <!--timeout=100000-->
| <!--reconnectWaitTime=2000-->
| <!--</properties>-->
| <!--</loader>-->
|
| <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="false"
| ignoreModifications="false" purgeOnStartup="false">
| <properties>
| cache.jdbc.table.name=jbosscache
| cache.jdbc.table.create=true
| cache.jdbc.table.drop=true
| cache.jdbc.table.primarykey=jbosscache_pk
| cache.jdbc.fqn.column=fqn
| cache.jdbc.fqn.type=VARCHAR(255)
| cache.jdbc.node.column=node
| cache.jdbc.node.type=BLOB
| cache.jdbc.parent.column=parent
| cache.jdbc.driver=com.mysql.jdbc.Driver
| cache.jdbc.url=xxx
| cache.jdbc.user=xxx
| cache.jdbc.password=xxx
| </properties>
| </loader>
|
| </loaders>
|
| </jbosscache>
|
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207677#4207677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207677
17 years, 5 months