"tomcmok" wrote : I assume the code you provided will rescan the deploy 
directories and deploy this what is new in there - right?
  | 
No. It is not rescaning. You don't need to have WAR file or any file. 
Everything what you need is portal description XML String in a variable. Your 
overriden create method will create org.w3c.Document from this String instead 
of loading it from file.

"tomcmok" wrote :  So - whenever I create new portal dynamically (i.e. some 
basic set of config files in new *.war directory), I just call create() in my 
derived class and this should do the trick?
  | 
yes, what you need to do is to create instance of you class and call create().

"tomcmok" wrote : ...and what do I need 'server' MBean for - it doesn't seem to 
be referenced in your suggested code?
  | 
Not referenced? and what is this than?
server.invoke(objName, "deploy", new Object[] {portalMD}, new String[] 
{"org.jboss.portal.server.metadata.ServerObjectMetaData"});
You have to call it instead of "getServerManager()" method than is called in 
the class you derived from.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891183#3891183

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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to