[jboss-user] [EJB 3.0] - Re: customize name of persistence.xml

skajotde do-not-reply at jboss.com
Thu Jul 24 10:30:11 EDT 2008


I know that is option with :


  |         // AssembledDirectory jar = AssembledContextFactory.getInstance().create("ejbTestCase.jar");
  |         // jar.addClass(Customer.class);
  |         // jar.addClass(CustomerDAOBean.class);
  |         // jar.addClass(CustomerDAOLocal.class);
  |         // jar.addClass(CustomerDAORemote.class);
  |         // jar.mkdir("META-INF").addResource("tutorial-persistence.xml", "persistence.xml");
  | 

In this persistence.xml is alias for additional file but unfortunately jboss embedded with hibernate doesn't work with vfs ;/ 

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

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



More information about the jboss-user mailing list