File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Migration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Migration" Watch "Migration" New topic
Author

Migration

David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
How to migrate existing web application to portal server?
Is it possible?


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
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


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Your application is divided between application server and portal server?
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
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

Joined: Aug 04, 2004
Posts: 724
Application server is a part of portal server?

Are you doing changes in application code?
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
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

Joined: Aug 04, 2004
Posts: 724
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

Joined: Nov 07, 2003
Posts: 4982
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

Joined: Nov 11, 2004
Posts: 17
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

Joined: Nov 07, 2003
Posts: 4982

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

Joined: Aug 04, 2004
Posts: 724

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

Joined: Nov 07, 2003
Posts: 4982

The whole application is converted into one portlet?

This should be possible for very simple applications.

Nick
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
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

Joined: Nov 07, 2003
Posts: 4982
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migration