• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Question for change a web application to portal and porlet

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 57
Eclipse IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 469
20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic