File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss portal - attribute passing between 2 EAR files
 
Similar Threads
Portlet Session Scope - Application or Portlet
spring global session scope
Http Session and PortletSession?
portlet
Achieving Inter-portlet communication.