strange need, you could just install Hibernate into JBoss as recommended...
but if you do need this, create a MBean that does it at startup and deploy it !
linuxaid wrote:
the two line spend too much time!Code:
Configuration objConfig = new Configuration();
SessionFactory objSessionFactory = objConfig.configure().buildSessionFactory();
i want the two line code,run after the jboss server start,in my code,nerver run the two line again(because the two line spend too much too much too much time)
thanks a lot!