I found the ext js lib is a very useful javascript framework.So I decided to use it in this project.Because this project has many tabs pages,I want use this framework to make pages and want ues Volocity framework to auto generate all the pages.I plan to use spring web mvc framework and when the client requests a page which contains tabs the spring framework auto redirect to a controller which will get the name of the page from request's parameters and read properties from a configuration file which defines the name,display name,display page of all these tabs.Now this is only a concept,I will implement it next week if there is nothing about the web services.
In the Web Services module,I decided to use CXF web service framework to implement this project.In this project ,we have all the xsd and wsdl files,so I use the wsdl2java command which contains in CXF framework to generator all the java codes except the logic codes of business .I have just read the pojo in action book,so I decided to ues domain object to design this module.We used hibernate to access the Oracle 9i,and extended the HibernateSupport abstract class to implement the repository.When we implemented all the repositories we didn't deal with the HibernateException.Because the HibernateException is a RuntimeException but it isn't a RuntimeException in Hibernate2.0.All these Exception will be dealt with by spring aop.We will ues an interceptor to deal with all exceptions,so you can't find any try catch block in our codes.
That's all!
In the Web Services module,I decided to use CXF web service framework to implement this project.In this project ,we have all the xsd and wsdl files,so I use the wsdl2java command which contains in CXF framework to generator all the java codes except the logic codes of business .I have just read the pojo in action book,so I decided to ues domain object to design this module.We used hibernate to access the Oracle 9i,and extended the HibernateSupport abstract class to implement the repository.When we implemented all the repositories we didn't deal with the HibernateException.Because the HibernateException is a RuntimeException but it isn't a RuntimeException in Hibernate2.0.All these Exception will be dealt with by spring aop.We will ues an interceptor to deal with all exceptions,so you can't find any try catch block in our codes.
That's all!
本文介绍了一个使用ExtJS JavaScript框架和CXF Web服务框架的项目案例。通过ExtJS实现页面的快速开发,并利用CXF进行Web服务的构建。文章还提及了Spring Web MVC、Hibernate等技术的应用。
3535

被折叠的 条评论
为什么被折叠?



