users@glassfish.java.net

how to populate table during ejb-module startup ?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Mon, 29 Dec 2008 10:07:39 +0100

is there a way to invoke a method during an ejb-module startup ?

I have this Entities classes, that creates tables just after my
ejb-module deployment.. now I am interested in to automatically add
test data to some of these tables..

* my current alternative is to pack the ejb-module in an EAR file and
then use the web features to inject a session bean and then do the
job.. but it seems a bit ugly solution ...