J2EE_Framework
文章平均质量分 75
wonderfan
云计算,电商和移动互联网
展开
-
Servlet,spring,hibernate
the hibernate session embodies the concept of a persistenceservice that can be used to query and perform query insert anddelete operations on instances of a class mapped by hinerbate.session wraps原创 2012-12-26 18:49:28 · 504 阅读 · 0 评论 -
An introduction to JAX-RS and JAXB
Java defines REST support via the Java Specification Request 311 (JSR). This specificiation is called JAX-RS (The Java API for RESTful Web Services). JAX-RS uses annotations to define the REST relevan原创 2013-03-16 16:25:35 · 812 阅读 · 0 评论 -
REST In Spring : RestTemplate
RESTTEMPLATEThe RestTemplate is the central Spring class for client-side HTTP access. Conceptually, it is very similar to the JdbcTemplate, JmsTemplate, and the various other templates found i原创 2013-02-25 22:33:47 · 589 阅读 · 0 评论 -
Understanding the Request Processing Lifecycle Phases
The Lifecycle object processes a JSF request (encapsulated in the FacesContext object; the FacesContext is the object that is read and modified by Lifecycle during processing) in six phases, executed原创 2013-03-17 09:00:48 · 660 阅读 · 0 评论 -
Add or change content in welcome page
It is easy to customize the splash to use your own brand or logo during eclipse starts up. If you want to make your own welcome page, just follow these steps:1. add extension point in your plugin<原创 2013-04-25 21:09:48 · 770 阅读 · 0 评论 -
Java in the Cloud
What is the cloud?Every one defines the cloud in their own way, here is my take on it. Companies whose main business is not Computer related, they outsource their IT work to some computer consulti转载 2013-05-21 21:00:51 · 602 阅读 · 0 评论 -
Java EE 7 and Cloud Computing
JSR for Java EE 7Java EE 7 will further enhance the Java EE platform for cloud environments. As a result, Java EE 7 based applications and products will be able to more easily operate on priva转载 2013-05-21 20:36:57 · 823 阅读 · 0 评论 -
First Impression about the Play Framework
Since Play follows the MVC pattern very clearly, I felt almost at home when I started with it. Here are some random facts I found when I started to work with Play:It work with the MVC patternA lot原创 2013-05-12 06:34:26 · 735 阅读 · 0 评论 -
Templating with JSF 2.0 Facelets
In JavaServer Faces (JSF) 2.0, Facelets is the default view declaration language (VDL) instead of JavaServer Pages (JSP). With Facelets, you don’t need to configure a view handler as you used to do in原创 2013-06-12 09:37:19 · 857 阅读 · 0 评论 -
Handling Events in JavaServer Faces
The JSF event model is based on the event model defined by the JavaBeans specification. In this model, an event is represented by an instance of an event class. An event source object fires an event b原创 2013-06-15 21:56:38 · 654 阅读 · 0 评论 -
Building Custom JSF UI Components
The term "JSF UI Component" is generally used to describe a set of sub-components which each which perform their own specific task such as rendering the component, validating its input, and/or perfo原创 2013-06-15 15:57:23 · 873 阅读 · 0 评论 -
JSF Implementation: go into the world of MyFaces
MyFaces is an successful implementation of JSF specifications and it is the core members of Apache web framework family.In this recipe, we explore its core class in the code manner.1. Facade Servlet原创 2013-08-02 15:09:45 · 780 阅读 · 0 评论 -
Strategy Pattern in Spring MVC
Spring MVC provides a convenient way to add your custom mapping handler, view resolver,locale resolution,theme resolution and request handlers. This convenience is achieved by strategy pattern. This原创 2013-08-02 16:53:36 · 779 阅读 · 0 评论 -
The Practise of Spring MVC with Hibernate
1.Project Structure2. Different Layer3.Web Info and Template原创 2013-08-06 08:51:59 · 945 阅读 · 0 评论 -
RESTFUL Service : based on Jersey
REST, Representational State Transfer, is a powerful, lightweight architecture that allows you to work with data in a comprehensive manner via HTTP. Yet, as powerful as REST is, getting it to work with Spring.原创 2013-08-19 09:36:23 · 710 阅读 · 0 评论 -
Get Started Using Spring MVC
Spring's web MVC framework is, a request-driven web MVC framework, designed around a servlet that dispatches requests to controllers and offers many other functionality for the development of web ap原创 2013-02-27 22:08:56 · 500 阅读 · 0 评论 -
Tag lifecycle in JSP page
The following is the flow of methods that are called on a tag when it's encountered in a page:Two methods, setParent() and setPageContext(), are called on the TagHandler class. These methods are h原创 2013-03-10 18:59:18 · 664 阅读 · 0 评论 -
Configure vhost
1.Change drive mappingpath: C:\Windows\System32\drivers\etc\hostscontent: 127.0.0.1 dummy.localhost2.Change the apache sever configuration ##ServerAdminpostmaste原创 2012-12-26 18:54:33 · 327 阅读 · 0 评论 -
Hibernate and Spring Integration
the hibernate session embodies the concept of a persistenceservice that can be used to query and perform query insert anddelete operations on instances of a class mapped by hinerbate.session wraps the原创 2012-12-26 18:49:32 · 287 阅读 · 0 评论 -
Is REST the Future of SOA?
It seems like everywhere we turn we keep hearing that SOA’sfuture is REST. There are a lot of publications comparing REST toSOAP and WS*[1], but such comparison seems to be toosimplistic. There are原创 2012-12-26 18:51:42 · 601 阅读 · 0 评论 -
Dojo concept for javascript developer
IntroductionIf you're a Java programmer coming to Dojo with little or noexperience of JavaScript, chances are you're going to struggle withsome of the concepts that enable it to work. The main conce原创 2012-12-26 18:52:46 · 436 阅读 · 0 评论 -
Programming Tips Summary
rails is a collection of libraries, each with a specialized task.Assembled together, theseindividual libraries make up the rails framework.#active record: a library that handles database abstrac原创 2012-12-26 18:52:48 · 352 阅读 · 0 评论 -
Java Url Rewrite Tool : UrlRewriteFilter
Url rewrite is a common requirement in the web development. Apache Web Server uses its module mod_rewrite to offere a powerful Url rewrite function. In this post, i make some introduction to UrlRewrit原创 2013-02-02 12:38:18 · 820 阅读 · 0 评论 -
How to use JUnit and Surefire in Maven
Surefire is a test framework project. The Surefire Plugin is used during the test phase of the build lifecycle to execute your Java Unit testsUse JUnit:To execute all of the unit tests in a proj原创 2013-02-19 22:02:42 · 534 阅读 · 0 评论 -
Use Store Procedure in JPA
Usually, we use JDBC to call store procedure and it works well.However, i found that it is hard to call store procedure when i used OpenJPA in my project.Frankly speaking, i try my best to think up po原创 2013-02-20 21:29:01 · 1515 阅读 · 0 评论 -
Understand ClassLoader in Java
A class loader is an object that is responsible for loading classes. The class ClassLoader is an abstract class. Given the binary name of a class, a class loader should attempt to locate or genera转载 2013-02-21 19:51:35 · 428 阅读 · 0 评论 -
Dynamic Class Loading in Java
It is possible to load and reload classes at runtime in Java, though it is not as straightforward as one might have hoped. This text will explain when and how you can load and reload classes in Java.原创 2013-02-21 20:45:18 · 539 阅读 · 0 评论 -
The basics of Java class loaders
The class loader concept, one of the cornerstones of the Java virtual machine, describes the behavior of converting a named class into the bits responsible for implementing that class. Because class l转载 2013-02-21 20:24:04 · 332 阅读 · 0 评论 -
Introdution to Spring Mobile
1. In Eclipse, create a new Maven Project using the spring-mvc-jpa-archetype.2. Add the spring-mobile-device dependency to pom.xml. org.springframework.mobile spring-mobile-device原创 2013-02-23 09:19:19 · 661 阅读 · 0 评论 -
Use Flexible Jetty Anywhere You need
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you do not need to configure and run a seperate web server (like Apache) in order to use java, servlets and JSPs to generate dyn原创 2013-03-08 22:28:20 · 706 阅读 · 0 评论 -
Deployment descriptor in Java
A deployment descriptor (DD) refers to a configuration file for an artifact that is deployed to some container/engine.In the Java Platform, Enterprise Edition, a deployment descriptor describes how原创 2013-02-26 10:29:19 · 682 阅读 · 0 评论 -
[Java] Behavior Driven Test supported by Mockito
In this article, I will describe how to use Mockito to do behavior driven test for high quality coding.原创 2014-01-25 11:36:27 · 923 阅读 · 0 评论