Article
Problem
A Forum reader recently asked:
"I don't know how to import my own portlets, and I couldn't find any documentation on that."
And here's the response from John DaSilva ...
Solution
I'm assuming that you understand the way J2EE Applications are packaged into an archive. Here are the basic steps to follow:
1. Make a backup of your IDM WAR file.
2. Your portlets must be JSR 168-compliant, and they must not be using any of the Portlet Implementation provided by Novell. They must use only the APIs defined in the specification.
3. Package your portlets and supporting classes into a jar file, or more than one if needed.
4. You will need to rebuild the WAR by taking the default and placing your JAR files in the WEB-INF/lib
5. Edit the portlet.xml file to add your portlet definitions to the file. Be very careful in editing this file - it must remain valid to the specification. I would suggest adding your portlets to the end of the file. Make sure none of your names conflict with the existing names.
6. Deploy the WAR.
7. Go into Portlet Admin in the User Application and register your portlets.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 5475 reads


0