[jboss-user] [JBoss Portal] - Re: How to configure the portal from code

Antoine_h do-not-reply at jboss.com
Fri Feb 2 09:31:49 EST 2007


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#4010045

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010045



More information about the jboss-user mailing list