aspose file tools*
The moose likes Portals and Portlets and the fly likes Jboss portal - attribute passing between 2 EAR files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Jboss portal - attribute passing between 2 EAR files" Watch "Jboss portal - attribute passing between 2 EAR files" New topic
Author

Jboss portal - attribute passing between 2 EAR files

dwarakanathan thiru
Ranch Hand

Joined: Oct 14, 2009
Posts: 49
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!!


Thanks,
Dwarak T
Komari raj
Ranch Hand

Joined: Dec 12, 2008
Posts: 43
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

Joined: Oct 14, 2009
Posts: 49
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.
 
 
subject: Jboss portal - attribute passing between 2 EAR files