[JBoss Seam] - Re: How to control end of conversations/state of stateful be
by trouby
"gus888" wrote : "pete.muir(a)jboss.org" wrote : Have you taken a look at the way seam-gen does it? It produces a pageable, bookmarkable search screen that saves the search criteria without using a conversation.
| I went through all seam examples, and I found the following search beans:
| | 1. booking - HotelSearchingAction: Session bean
| | 2. blog - SearchService: default bean
| | 3. dvdstore - FullTextSearchAction: Conversation bean with @Begin(join=true)
| | 4. wiki - WikiSearch: Conversation bean with begin (join=true) in pages.xml
| |
| | It seams that the blog-SearchService has bookmarkable but not pagable, but the SearchService only has one searchPattern criteria. The dvdstore and wiki search pages have pageable. Thanks.
SeamGen makes a usage of Seam framework, you should take a look at it, it has all the features you asked for and the implementation is very clean,
Asaf.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117276#4117276
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117276
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - JBoss 4.2.2: JMXException when starting JBoss withJBossTools
by NSchweig
Hello,
I´m new to Jboss and Jboss Tools and the mailing-list.
Following problem I posted 2 days ago to the mailing list but received no answer; I don´t know if I took the right address?
(jboss-user(a)lists.jboss.org)
I hope, anybody can help me!! Thanks for that.
I tried to start Jboss (4.2.2 GA) with Eclipse and Jboss Tools.
I tried starting without any application, only JBoss and I wanted to look at the jmx-console.
In the console there appears the message that the server started successfully.
Output:
13:43:16,613 INFO [Server] Starting JBoss (MX MicroKernel)...
13:43:16,613 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
13:43:16,613 INFO [Server] Home Dir: C:\Programme\jboss-4.2.2.GA
13:43:16,628 INFO [Server] Home URL: file:/C:/Programme/jboss-4.2.2.GA/
13:43:16,628 INFO [Server] Patch URL: null
13:43:16,628 INFO [Server] Server Name: default
13:43:16,628 INFO [Server] Server Home Dir: C:\Programme\jboss-4.2.2.GA\server\default
13:43:16,628 INFO [Server] Server Home URL: file:/C:/Programme/jboss-4.2.2.GA/server/default/
13:43:16,628 INFO [Server] Server Log Dir: C:\Programme\jboss-4.2.2.GA\server\default\log
13:43:16,628 INFO [Server] Server Temp Dir: C:\Programme\jboss-4.2.2.GA\server\default\tmp
13:43:16,628 INFO [Server] Root Deployment Filename: jboss-service.xml
13:43:17,082 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
13:43:17,082 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0_03-b05,Sun Microsystems Inc.
13:43:17,082 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
13:43:17,550 INFO [Server] Core system initialized
13:43:20,175 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
13:43:20,175 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
13:43:20,738 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
13:43:20,738 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
13:43:20,910 INFO [TransactionManagerService] Starting recovery manager
13:43:20,988 INFO [TransactionManagerService] Recovery manager started
13:43:20,988 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
13:43:23,816 INFO [EJB3Deployer] Starting java:comp multiplexer
13:43:24,207 INFO [STDOUT] no object for null
13:43:24,207 INFO [STDOUT] no object for null
13:43:24,238 INFO [STDOUT] no object for null
13:43:24,253 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
13:43:24,253 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
13:43:26,410 INFO [NativeServerConfig] JBoss Web Services - Native
13:43:26,410 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
13:43:27,566 INFO [Embedded] Catalina naming disabled
13:43:27,722 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jre1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\Java\jre1.6.0_03\bin\client;C:\Programme\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Sun\AppServer\bin;;;øûýËå?|Kæ?|
13:43:27,785 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
13:43:27,785 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
13:43:27,785 INFO [Catalina] Initialization processed in 224 ms
13:43:27,785 INFO [StandardService] Starting service jboss.web
13:43:27,785 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
13:43:27,832 INFO [Catalina] Server startup in 46 ms
13:43:27,941 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
13:43:28,722 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
13:43:28,847 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
13:43:28,957 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
13:43:29,707 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
13:43:30,097 INFO [MailService] Mail Service bound to java:/Mail
13:43:30,285 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
13:43:30,332 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
13:43:30,378 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
13:43:30,425 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
13:43:30,503 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
13:43:30,550 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
13:43:30,597 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
13:43:30,613 INFO [QuartzResourceAdapter] start quartz!!!
13:43:30,675 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
13:43:30,707 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
13:43:30,707 INFO [RAMJobStore] RAMJobStore initialized.
13:43:30,707 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
13:43:30,707 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
13:43:30,707 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
13:43:31,894 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
13:43:32,144 INFO [A] Bound to JNDI name: queue/A
13:43:32,144 INFO [B] Bound to JNDI name: queue/B
13:43:32,144 INFO [C] Bound to JNDI name: queue/C
13:43:32,144 INFO [D] Bound to JNDI name: queue/D
13:43:32,144 INFO [ex] Bound to JNDI name: queue/ex
13:43:32,160 INFO [testTopic] Bound to JNDI name: topic/testTopic
13:43:32,175 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
13:43:32,175 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
13:43:32,175 INFO [testQueue] Bound to JNDI name: queue/testQueue
13:43:32,207 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
13:43:32,238 INFO [DLQ] Bound to JNDI name: queue/DLQ
13:43:32,347 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
13:43:32,394 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
13:43:32,613 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
13:43:32,628 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
13:43:32,644 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 16s:16ms
But in the Event log there appears following error:
JMXException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receice timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
I tried it without running my firewall, it´s the same.
I tried to run JBoss with the run.bat.
If I do that the only message that appears is "Syntax error".
I use Windows XP
Eclipse 3.3 (Europa Release with WTP 2.0)
JBoss Tools 2.0
Thank you very much for your help.
Greetings, NSchweig
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116389#4116389
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116389
18 years, 6 months
[JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
by hirowla
"jbalunas(a)redhat.com" wrote : Here is my plan - I'm wrapping up weblogic today, and this weekend.
|
| Then next week Websphere. Because I know there are some more people interesting in websphere I'll share my progress as I go, and not wait until I finish updating the doc.
|
Thanks for the update. It is much appreciated by everyone. I'll look forward to your progress updates.
"jbalunas(a)redhat.com" wrote :
| Just as a quick survey tell me about your application so I make sure I cover the needed areas. My plan is to attempt to deploy the jee5/booking example which is seam + ejb3 + richfaces + hibernate/JPA etc....
|
| I will also be porting an application generated through Seam gen.
|
That should cover what my application has in mind - EJB3, faces/facelets, JPA, some Ajax if appropriate
"jbalunas(a)redhat.com" wrote :
| The porting can be tricky until you figure out each containers quirks. For example on weblogic you cannot deploy EJBs with varargs (which seam has), and OC4J needs a special file just so richfaces css files resolve.
|
I only started working with WebSphere about 2 years ago, so I know there are certainly some quirks to remember! From experience, it's classloading is "interesting"!
Thanks,
Ian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117262#4117262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117262
18 years, 6 months
[JBoss Seam] - Re: How can I get the session id?
by chicochen
Also, is there a good way to keep http session in jboss seem actions calling via web service method?
@Stateless
| @Name("AuthenticateWebService")
| @WebService(name = "AuthenticateWebService", serviceName = "AuthenticateWebService")
| public class AuthenticateWebService implements AuthenticateWebServiceRemote {
|
| //@In(value = "authenticateAction", create = true)
| //private AuthenticateAction authenticateAction;
|
| @WebMethod
| public String login(String username, String password) {
| Identity.instance().setUsername(username);
| Identity.instance().setPassword(password);
| Identity.instance().login();
|
| if (Identity.instance().isLoggedIn()){
| ResponseInfo rInfo = ResponseInfo.getSuccessInfo();
|
|
|
| String xml = BeanXMLMapping.toXML(rInfo);
| return xml;
| }
| else {
| ResponseInfo rInfo = ResponseInfo.getFailInfo();
| String xml = BeanXMLMapping.toXML(rInfo);
| return xml;
| }
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117252#4117252
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117252
18 years, 6 months
[JBoss Seam] - How can I get the session id?
by chicochen
I use below code, but FacesContext.getCurrentInstance() always return null.
| FacesContext facesContext = FacesContext.getCurrentInstance();
| ExternalContext externalContext = facesContext.getExternalContext();
| HttpSession session = (HttpSession)externalContext.getSession(true);
| String sessionId = session.getId();
package com.eastidea.menglishweb.action;
|
| import javax.faces.context.ExternalContext;
| import javax.faces.context.FacesContext;
| import javax.persistence.EntityManager;
| import javax.persistence.NoResultException;
| import javax.servlet.http.HttpSession;
|
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.security.Identity;
|
| import com.eastidea.menglishweb.action.base.BaseActionImpl;
| import com.eastidea.menglishweb.entity.User;
|
| @Name("authenticateAction")
| public class AuthenticateActionImpl extends BaseActionImpl implements
| AuthenticateAction {
|
| private static final long serialVersionUID = 7601102159656515184L;
|
| @In
| private EntityManager entityManager;
|
| @In
| private Identity identity;
|
| public boolean authenticate() {
| try {
| User user = (User) entityManager
| .createQuery(
| "from User where username = :username and password = :password")
| .setParameter("username", identity.getUsername())
| .setParameter("password", identity.getPassword())
| .getSingleResult();
| setCurrentUser(user);
|
| FacesContext facesContext = FacesContext.getCurrentInstance();
| ExternalContext externalContext = facesContext.getExternalContext();
| HttpSession session = (HttpSession)externalContext.getSession(true);
| String sessionId = session.getId();
|
| return true;
| } catch (NoResultException ex) {
| return false;
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117251#4117251
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117251
18 years, 6 months
[EJB/JBoss] - Is passivation enabled twice?
by javidjamae
I've yet to verify, but it looks like passivation is enabled twice for stateful session beans in the all configuration of JBoss-5.0.0.Beta3.
1) In server/all/conf/standardjboss.xml, the container for "Standard Stateful SessionBean" has the StatefulSessionFilePersistenceManager persistence manager set.
2) In server/all/deploy/cluster/ejb3-cluster-sfsbcache-beans.xml, there is a cacheLoaderConfig property set to a bean named EJB3SFSBCacheLoaderConfig, which has a passivation property set to true. This enables passivation over JBoss cache.
Is passivation happening twice out of the box, once to the file system and once to the cache? If so, is this an oversight? Should the filesystem based passivation be turned off when running the all configuration?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117236#4117236
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117236
18 years, 6 months
[JBossWS] - Re: Writing a client - no examples for BindingProvider based
by mjhammel
I got a little further now. First, http://weblogs.java.net/blog/ss141213/archive/2005/12/dont_use_persis_1.html explains the problem a bit - you can't use injection in Web apps, which I assume translates to Web Services. So I used the technique listed in the blog.
This worked, eventually, after I added a couple of lines to my persistence.xml, as suggested by the JBOSS App Server entity config documentation (http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/e...).
updated persistence.xml
<persistence>
|
| <persistence-unit name="Crunch">
| <jta-data-source>java:/CrunchDS</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
| <property name="hibernate.connection.url" value="jdbc:mysql://localhost/crunch"/>
| <property name="hibernate.connection.username" value="root"/>
| <property name="jboss.entity.manager.jndi.name" value="java:/CrunchPersistence"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/CrunchFactory"/>
| </properties>
| </persistence-unit>
| </persistence>
The two jndi related properties bound the names specified in the property to the application so that they could be referenced an InitialContext.lookup() (see code below).
Now I can see the Session Bean retrieving the data from the database, but then it immediately complains about some "lazy" thing:
17:11:24,689 INFO [STDOUT] Subscriber.find(): em is not null; returning subscriber for guid = CRUNCH-DEFAULT-SUPERUSER
| 17:11:25,015 INFO [STDOUT] Subscriber name : SuperUser
| 17:11:25,015 INFO [STDOUT] Subscriber email: admin@localhost
| 17:11:25,176 ERROR [LazyInitializationException] failed to lazily initialize a collection of role: com.cei.crunch.ejb.Subscriber.crunchroleses, no session or session was closed
It should be noted that "crunchroleses" is a field in a generated class. The class, com.cei.crunch.ejb.Subscriber, is generated by the reverse engineering process provided through Hibernate in order to generate EJB code for an existing database. So maybe there is some (yet more) additional configuration of Hibernate that needs to be done.
My Web Services code now looks like this:
package com.cei.crunch.server.ws.SubscriberServices;
|
| import javax.ejb.*;
| import javax.jws.WebService;
| import javax.jws.WebMethod;
| import javax.jws.soap.SOAPBinding;
| import javax.persistence.*;
| import javax.naming.InitialContext;
|
| import com.cei.crunch.server.util.SubscriberUtil;
| import com.cei.crunch.ejb.Subscriber;
|
| /* Make this an EJB3 service endpoint. */
| @Stateless
| @Remote(SubscriberServices.class)
|
| /* Make this an Web Services endpoint. */
| @WebService(endpointInterface = "com.cei.crunch.server.ws.SubscriberServices.SubscriberServicesEndpoint")
| @SOAPBinding(style = SOAPBinding.Style.RPC)
|
| /**
| * The .Crunch interface to Subscriber Services
| */
| public class SubscriberServices implements SubscriberServicesEndpoint {
|
| @WebMethod
| public Subscriber findSubscriber(String guid)
| {
| Subscriber s;
| SubscriberUtil su = new SubscriberUtil();
|
| s = su.find(guid);
| if ( s == null )
| System.out.println("su.find() returned null.");
| return s;
| }
|
| }
My Session Bean code, which is called by the Web Services code above, looks like this:
package com.cei.crunch.server.util;
|
| import javax.ejb.*;
| import javax.jws.soap.SOAPBinding;
| import javax.persistence.*;
| import javax.naming.InitialContext;
| import javax.transaction.UserTransaction;
| import javax.annotation.Resource;
|
| import com.cei.crunch.ejb.Subscriber;
|
| /* Make this an EJB3 service endpoint. */
| @Stateless
|
| /**
| * The .Crunch interface to Subscriber Services
| */
| public class SubscriberUtil implements SubscriberUtilInterface {
|
| @Resource
| private UserTransaction utx;
|
| public Subscriber find(String guid)
| {
| InitialContext ctx = null;
| EntityManager em = null;
| try {
| ctx = new InitialContext();
| em = (EntityManager) ctx.lookup("java:/CrunchPersistence");
| }
| catch (Exception e)
| {
| // throw new WebServiceException(ex);
| System.out.println("Subscriber.find(): context lookup failure.");
| e.printStackTrace();
| return null;
| }
|
| if ( em == null )
| {
| System.out.println("Subscriber.find(): em is null; can't find subscriber");
| return null;
| }
| else
| {
| Subscriber s = null;
| System.out.println("Subscriber.find(): em is not null; returning subscriber for guid = " + guid);
| try {
| utx = (UserTransaction) ctx.lookup("java:/comp/UserTransaction");
| utx.begin();
| s = em.find(Subscriber.class, guid);
| utx.commit();
| }
| catch (Exception e)
| {
| System.out.println("Subscriber.find(): find problem.");
| e.printStackTrace();
| }
| if ( s != null )
| {
| System.out.println("Subscriber name : " + s.getFirstname());
| System.out.println("Subscriber email: " + s.getEmailAddress());
| }
| return s;
| }
| }
|
| }
You'll note that I manually create a UserTransaction here. This is because if I don't do this, no transaction is injected into the Session Bean by the @Resource (I don't know why). And if I don't create the UserTransaction before referencing the EntityManager (em), I get a null pointer exception when I do reference it.
My best guess at this is that the UserTransaction is in the wrong place - it may need to go in the Web Services class before it calls the Session Bean. However, that's pretty much a WAG at this point.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117235#4117235
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117235
18 years, 6 months
[JBoss Seam] - Does facesMessages.clear() work for conversion errors?
by supernovasoftware.com
Using Seam 2.0 on 4.2.2
I have a converter that I use for a datatable with dropdown filters and a button to update multiple values at once.
Each row has a single input box that should only accept positive doubles. When a dropdown changes I use a4j:support to rerender the entire datatable.
The update button also rerenders the datatable.
If I
throw new ConverterException(new FacesMessage("You must enter a positive number."));
The table is reloaded and the FacesMessages are correctly attached to the correct input components, but all values are reverted to their initial value and any changes are lost even if that field passes conversion.
If I
throw new ConverterException("You must enter a positive number.");
and then I change the filter and reload the datatable, both the value and the error message are carried with that row. The rest of the columns contain the correct data. I have to select a filter that has no results or less rows than where the conversion error occurs to clear it. Also the error message is not reflected and the error reads "value could not be converted to the expected type."
facesMessages.clear();
seemed to work when I was adding them in a validator
private void addMessage(UIComponent component, Object value)
| {
| HtmlInputText htmlInputText = (HtmlInputText) component;
| htmlInputText.setValid(false);
| facesMessages.addToControl(htmlInputText.getId(), new FacesMessage("Must be >= 0."));
| }
, but not when the converter adds them.
1. How can I clear the conversion errors when I change the filter?
2. Or, how can I throw the error with the FacesMessage and have the values perserverd?
Complete converter code
| @Name("positiveDoubleConverter")
| @BypassInterceptors
| @Converter
| public class PositiveDoubleConverter implements javax.faces.convert.Converter
| {
| public PositiveDoubleConverter() { }
|
| public String getAsString(FacesContext context, UIComponent component, Object value)
| {
| return (value==null) ? null : value.toString();
| }
|
| public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException
| {
| if(value==null || value.length()<1) return null;
| try {
| Double d = Double.parseDouble(value);
| if(d<0)
| {
| throwConverterException();
| }
| return d;
| } catch (NumberFormatException e) {
| return throwConverterException();
| }
| }
|
| private Object throwConverterException() throws ConverterException
| {
| //throw new ConverterException(new FacesMessage("You must enter a positive number."));
| throw new ConverterException("You must enter a positive number.");
| }
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117233#4117233
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117233
18 years, 6 months
[JBoss Portal] - Caching of navigation path
by tulumvinh
Hello all,
Question: How do I disable the caching of navigation in a portlet?
Scenario: Login to portal as user "admin" -> click on 'admin" link -> clickon the "home" tab -> navigate to the detail pages of a portal. Then click on the "members" tab, when you click on the "home" tab, you are automatically at the detail page. It seems that there is caching done on the navigation path within the portlet.
Questions:
- This navigation path caching does not seem to be done with Transient/Session or persistent cookies, true?
- is this caching control by <expiration-cache> tag within portlet.xml? I set the tag to a value of 0 but it didn't work.
- How do I inactivate this caching.
I am using:
JBoss AS 4.2.1 and JBoss Portal 2.6.2
Any guidance is appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117229#4117229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117229
18 years, 6 months