-
1. Re: Principals population during deployment
darranl Sep 16, 2004 2:43 PM (in response to tonno01)The only solution that I can think of is to write an MBean that checks to see if initialisation has been performed after it has been deployed, if your app is not initialised then you can initialise the data in your tables.
-
2. Re: Principals population during deployment
danl_thompson Sep 16, 2004 4:38 PM (in response to tonno01)Yeah, but isn't there a chicken and egg here? if the CMP is secured, and the user isn't authenticated, how can the system check to see if he's in table, if the table is wrapped in a secure EJB?
dt -
3. Re: Principals population during deployment
darranl Sep 16, 2004 5:21 PM (in response to tonno01)Direct JDBC access?
-
4. Re: Principals population during deployment
danl_thompson Sep 16, 2004 5:24 PM (in response to tonno01)Ah, of course, from the MBean.
-
5. Re: Principals population during deployment
tonno01 Sep 17, 2004 3:19 AM (in response to tonno01)Hi, as i am pretty new to this stuff, can anyone give me some hint how this mbean is coded??
thanks a lot..
martin -
6. Re: Principals population during deployment
lretief Sep 17, 2004 4:05 AM (in response to tonno01)To see how to code an MBean read the JBoss Admin and Developers Guide or the JMX Spec.
To get back to the original question, have you considered using your datasource to execute SQL? The datasource could be bundled in your deployment and thus it would be loaded at deploy time and you could piggy-back in the arbitrary sql you could specify to be excuted. Ugly but available...