File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for change a web application to portal and porlet

 
avseq anthoy
Ranch Hand
Posts: 106
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all
I am a new man for portals and porlets.
I have some question for portals and porlets and I was stuck.
Can someone explain the following question?

Question1: Can I write a simple helloworld porlet and just deploy it on Tomcat or other ap server like JBoss but not on a portal server?

Question2: Now I have a web appplication developed by struts , can I just deploy it on a portal server without change? Or I should change the web ap to a portlet and deploy it?

Question3: Can portlet communicate another porlet in the same portlet server( inter-portlet communication)?

Question4 : If I want to receive contents that provoides by a portlet appliction on anther server , how can I communication with it ? Send httpRequest?


Tks & Best Regards
 
Ankur Srivastav
Ranch Hand
Posts: 57
Eclipse IDE Java PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I started on the same lines that you have mentioned.

I was able to create a JSR 168/Struts based portlet and deployed it on Liferay-Tomcat bundle. Alternatively you can use IBM Websphere Portal/JBoss Portal or any other Portal available.

Liferay is open source thats why its easy to work on that.

I have put together all the steps starting from the basics on my website at CreatePortlets I will suggest you to go through all the Posts available and if you find any problem let me know.

Coming on the other half of your question. Yes Portlets can interact as per JSR 286 Spec.
 
Ashish Sarin
author
Ranch Hand
Posts: 432
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question1: Can I write a simple helloworld porlet and just deploy it on Tomcat or other ap server like JBoss but not on a portal server?
The portal server is required for deploying a portlet. You can find different portal server bundles like Liferay-Tomcat, where you have Liferay portal server extending the features of the underlying application server. Portlet Containers are meant to manage portlet components, so you definitely need Portlet Container.

Question2: Now I have a web appplication developed by struts , can I just deploy it on a portal server without change? Or I should change the web ap to a portlet and deploy it?
You have to turn you web application into a portlet application to register your portlets with the portal server.

Question3: Can portlet communicate another porlet in the same portlet server( inter-portlet communication)?
Yes. You can do that using sending/receiving events or by using public render parameters.

Question4 : If I want to receive contents that provoides by a portlet appliction on anther server , how can I communication with it ? Send httpRequest?
You should consider using WSRP (Web Services for Remote Portlets) for reusing content generated by remote portlets.

regards
Ashish
-----------------------
SCJA, SCJP, SCJD, SCWCD, SCEA, SCBCD, IBM-XML, IBM-DB2
Author: Portlets in Action
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic