Is there a way to create a portlet instance via java code? Maybe a portlet for creating portlet instances.
yes but that code will be specific to the version of jboss portal.look at the managemeent portlet .