Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migration

 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to migrate existing web application to portal server?
Is it possible?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to migrate existing web application to portal server?
Is it possible?

Yes, it is possible, we are now working on that, however, we just use portal applications for data-retrival operations. For non-data-retrival operations, we will use Serlvet instead of Portlet.

Nick
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your application is divided between application server and portal server?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your application is divided between application server and portal server?

Nope, they are in the same application server, which is also the portal server.

Nick
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application server is a part of portal server?

Are you doing changes in application code?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application server is a part of portal server?

Our AS can be performed as Portal server, of course, NOT all ASs can behave like this.

Are you doing changes in application code?

What do you mean by this? In order to make use of Portlet, we need to change the Servlets into Portlets for those display only pages, and corresponding modules. Besides this, we dont need to have a big code change.

Nick
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this is what I mean. How much of the application code must be recoded.

And JSP's ? Into what they are converted?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How much of the application code must be recoded.

For each Portlet that you wanna to replace the Servlet, you need to make the change. Also, you need to define which Portlet has been added for each page. Portlet is a page level, so you need to define it for every page.

And JSP's ? Into what they are converted?

For JSP, we need to defne a default template for Portlets. And the Portlet will render the required info to the JSPs. In addition, the users are allowed to customerize their own default layout, and thus, this makes developing a *good* layout difficult.

Nick
 
Dave Minter
Author
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Ulicny:
How to migrate existing web application to portal server?
Is it possible?


It's certainly possible. It can be moderately painful, depending on how well structured your originating application is.

We actually provide a concrete (but necessarily brief) example in Chapter 13, where we take an open source forum application and convert it into a portlet.

Most of the pain comes from simple things - you don't own the page, so you can't set content headers, or necessarily govern the CSS styles which are available to you (a subset is dictated by the JSR168 standard). Also, the handling of URLs is unexpectedly complicated since they must be permitted to contain arbitrary container specific information in addition to the relative paths and attributes associated with your portlet.

Dave.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

you don't own the page, so you can't set content headers, or necessarily govern the CSS styles which are available to you

That's exactly what we are facing.

We set a *good* style for displaying the content, however, when the user himself makes changes for customization, the layout becomes *very odd*. And the user complains that why the look and feel be that.

Do we really have anything can do to cater these *personalization* problems?

Nick
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

We actually provide a concrete (but necessarily brief) example in Chapter 13, where we take an open source forum application and convert it into a portlet.


The whole application is converted into one portlet?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The whole application is converted into one portlet?

This should be possible for very simple applications.

Nick
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if I have complex application, where are many srceens and forms, than must every single screen converted into portled?
I think not. Am I right?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if I have complex application, where are many srceens and forms, than must every single screen converted into portled?
I think not. Am I right?

Depends on the function of the screens.

Ususally, a portlet represents one piece of information from 1 source. Thus, if your page is divided into 2 screens, one is NBA and the other is FIFA, you have 2 different sources, and they are retrieved by 2 different portlets. If they are from 1 single source, you might use 1 portlet.

Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic