Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss portal - attribute passing between 2 EAR files

 
dwarakanathan thiru
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to Portlets and need more information about the Portlet Session Scope.

If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all the portlets that belong to the same WAR-file.
Is it visible to other WAR-file(s)? If so how can I pass attributes from one JSP / Portlet Java in WAR-1 file to another JSP / Portlet Java in WAR-2 file?

Thanks!!
 
Komari raj
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi dwarakanathan

Please use jsr 286 portal spec to implement interportlet communication between 2 wars or 2 ears.

check examples at

https://portlet-container.dev.java.net/public/Samples.html and

http://developers.sun.com/portalserver/reference/techart/jsr286/jsr286.html

i hope this will help you


Regards
raju
 
dwarakanathan thiru
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally I got a way that works.
I tried passing request parameters from the 1st application to the 2nd application using a servlet in the 2nd app.
And from there I will set the parameter back to a session & use a redirect to my portal page, which will use up the parameter.

I shall post the code soon.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic