A:
1) If a graphical interface is required, the client can implement it through java/swing
2) The TCP server is packaged into system Services through Apache Daemon to provide services for clients to call
3) Hibernate+Spring method, loading the Hibernate framework through Spring
Resource resource = new FileSystemResource("E:projapplicationContext.xml");
XmlBeanFactory bean = new XmlBeanFactory(resource);
Configure Hibernate related parameters in applicationContext.xml
Or load Hibernate configuration directly
B:
1) Change the TCP service you need to implement into web Services. The use of Hibernate is the same as in the web development environment
2) The client accesses and obtains service data through HttpClient
There was a similar project before.
The jar method is used,
If it is a product, if you use java socket to write TCP yourself, stability and performance will be a big problem. It is recommended to use mina or java nio
Just use hibernate directly, no web environment is required.
A:
1) If a graphical interface is required, the client can implement it through java/swing
2) The TCP server is packaged into system Services through Apache Daemon to provide services for clients to call
3) Hibernate+Spring method, loading the Hibernate framework through Spring
Resource resource = new FileSystemResource("E:projapplicationContext.xml");
XmlBeanFactory bean = new XmlBeanFactory(resource);
Configure Hibernate related parameters in applicationContext.xml
Or load Hibernate configuration directly
B:
1) Change the TCP service you need to implement into web Services. The use of Hibernate is the same as in the web development environment
2) The client accesses and obtains service data through HttpClient
There was a similar project before.
The
jar
method is used,If it is a product, if you use
java socket
to write TCP yourself, stability and performance will be a big problem. It is recommended to usemina
orjava nio
Just use
hibernate
directly, no web environment is required.