[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-12 Thread [EMAIL PROTECTED]
I would have tried clustering by using the interface javax.servlet.http.HttpSessionActivatiionListener in which you have a method : sessionDidActivate(HttpSessionEvent se) this method is called whenever you fail over another node and the servlet container deserialize your http session coming

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-12 Thread [EMAIL PROTECTED]
the SFSB is a good idea except JNDI. JNDI is not meant to scale according to your user number. In addition when a statefull bean is evicted it would not be unbound from the JNDI tree and you would have to make some garbage by yourself. Try with JBoss treecache which can be either replicated

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-11 Thread schnelzer
I have come up with a approach for communication between portlet applications and I would like to get some feedback. My requirements are: * a session that is visible across portlet applications * an approach that will work well in a clustered environment (Julian, I couldn't easily see how to

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-09 Thread schnelzer
Thanks Julien. I'll send you my email address. I also have a follow up question that I thought would be good to have on the forum. Will you take this capability in to account as you test the JBoss Portal in a cluster? Thanks for the assistance. View the original post :

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-09 Thread [EMAIL PROTECTED]
my current try is not for cluster, but could be adapted I think. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873331#3873331 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873331

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-09 Thread schnelzer
If you have some ideas on an approach, we would be happy to do some of the work. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=387#387 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=387

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-08 Thread schnelzer
I have two Portlet Applications in two separate .war files. I need to set a user session variable in one Portlet Application and then read it in the second application. Per the Portlet Spec this does not work using PortletSession session = request.getPortletSession(); |

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-04-08 Thread [EMAIL PROTECTED]
you can try to use a static map where you key objects with session ID because they will be the same. Of course you need an eviction mechanism to remove the expired objects. I have some prototype sitting in my intellij projects, send me an email if you want me to send you the code. View the

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-03-29 Thread schnelzer
I did some testing with JBoss Portal Beta 1 and JBoss AS 4.0.2RC1 and the HTTP Session and Portlet Session were being handled correctly per the Portlet spec. I did have to add crossContext=true to each of the context.xml files (portal core and portlets). I understand that you won't need to do

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-03-29 Thread [EMAIL PROTECTED]
what do you call inter portlet communication ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871944#3871944 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871944 --- SF

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-03-22 Thread schnelzer
I'd like to be able to deploy a configuration with the HTTPSession and PortletSession working as Julien describes above. Today, I built the latest version of JBossAS from the cvs head (5.0.0alpha), and followed the deployment instructions on the WIKI. I did copy the jgroups.jar and the

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-02-24 Thread [EMAIL PROTECTED]
no they don't share it, they only have the jessionid in common. that enables to have the same session wether you access the webapp by request dispatch from the portal or directly for the browser. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3867735#3867735

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-02-23 Thread [EMAIL PROTECTED]
this is a tricky issue :-) and has been solved recently. there have been a lot of discussions about this and the solution today is : use jboss 4 head with tomcat 5.5.8 what is does is pretty simple, all web apps share the same JSESSIONID which is issues under /, this is achieved in tomcat with

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-02-23 Thread [EMAIL PROTECTED]
btw this is what the spec mandates :-) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3867677#3867677 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3867677 --- SF email

[JBoss-dev] [Design of JBoss Portal] - Re: shared state between HttpSession and PortletSession

2005-02-23 Thread mholzner
ok, there is only one more question for me then: if all portlet apps share the same JSESSIONID , do they also share the same HttpSession ? I beliefe they shouldn't . If I remember correctly then the J2EE spec requires every context (WAR) to have it's own session for the same JSESSIONID, with