i have add a remote client for petclinic,for test this client,i add some jars to a folder,and add clientContext.xml to this folder, then add a bat file,content is:
it works well.Code:echo on set classpath=%classpath%;aopalliance.jar;cglib-full-2.0.2.jar;commons-collections.jar;commons-dbcp.jar;commons-lang.jar;commons-pool.jar;dom4j.jar;ehcache1-.0.jar;hibernate2.jar;hsqldb.jar;jstl.jar;jta.jar;odmg.jar;standard.jar;spring.jar;petclinic.jar;swt.jar;jface.jar;jfacetext.jar;runtime.jar;commons-logging.jar; java org.springframework.samples.petclinic.client.Bt echo off
but if i remove hibernate.jar, it can't work, be a remote use,hibernate should work at server side, why client must need hibernate.jar to work, does this means my httpinvoker code not work??
what i think:all persistence operation should occur at server side,should't operate database directly in client.


Reply With Quote