From: Dain S. <da...@da...> - 2002-07-29 16:50:34
|
There is a feature request to add the ability to execute generic sql before and after deployment. This feature calls for a structure similar to the ant sql task. I suppose this could be expanded to generic scripting with the ibm scripting plugin. If you are interested in expanding this feature request, please add a comment to the feature at source forge. -dain Burkhard Vogel wrote: > Hi, > I would suggest to use a mbean packaged within your app which has a > dependency on the deployed ejbs. This mbean would do a lookup on the > userBean and creates the superuser or does a direct SQL call. > hth, > Burkhard > > ----- Original Message ----- > From: "Brian Topping" <to...@di...> > To: "JBoss User List (E-mail)" <jbo...@li...> > Sent: Sunday, July 28, 2002 1:19 AM > Subject: [JBoss-user] CMP Deployment with <create-table/> > > > Hi, > > Is there any way to trigger a user script after <create-table/> is complete? > I'm thinking this would be good for early testing purposes, I'd like to add > a > superuser entry to the generated users tables after they are deployed. This > would be ideal for Ant to do, but Ant can't tell when the deployer is done > with the tables, so it doesn't work. > > More from a process and testing standpoint, I want to be able to do a > complete automated build and deployment; without the ability to add a > superuser as a part of deployment I either have to hand-edit the user in or > have a special case routine in my business methods that allows the user to > be > created before there are any users that are added to the database. Allowing > me to add a superuser as a part of the deployment mirrors a typical OS > installation process. > > thanks in advance, > > -b |