question : why can't you use the usual *-object.xml to describe the pages, windows
etc... of your portal ?
and put all this in a webapp (.war file) and deploy it like that ?
do you have a specific need ?
seems more simple to use the xml descriptor than programatically write all this setup of
your portal.
for the users : see also how it is done the first time the portal launch, for the creation
of the two default user (user and admin).
they are set by a file :
\deploy\jboss-portal_2_4_1SP1.sar\conf\hibernate\user\setup.txt
this file is used by hibernate to populate the user and role tables at first launch.
It shows how to populate some user with the UserImpl and RoleImpl classes. You can reuse
this to write some better way to do it than just replacing this file.
you could also launch a sql script to populate automatically the tables with your user
definition.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010045#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...