sorry for my bad english if u don't understand
i've follow instruction at
http://hibernate.org/66.html, using jboss 4.0.rc2 to deploy caveator.sar (i am also use your caveatemptor POJOs).
i have some problem,
1, some class' id property don't have setter method -> some reflect probs, so i have to put some setter for each POJO
2, i have <depends>jboss.jca:service=LocalTxCM,name=MySqlDS</depends> in /META-INF/jboss-service.xml
but it doesn't wait for MySqlDS, so i have delete caveator.sar, wait and undo delete it each time i start jboss AS
3, i can lockup SessionFactory inside jboss (use a jsp at a webapp), but when i lockup outside (in main() of a test class) i've got following things
mycode:
Code:
Hashtable init = new Hashtable();
init.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
init.put(Context.PROVIDER_URL, "jnp://localhost");
Context context = new InitialContext(init);
//testing
System.out.println(context.lookup("hibernate/HibernateFactory"));
and here is the output:
Code:
2004-09-18 10:50:46,660 WARN net.sf.hibernate.impl.SessionFactoryObjectFactory[main] - Not found: 40e4e48cff0f88d000ff0fa20ff90002
null
thanks