Liferay has very good service builder
utility. We can specify our domain model in
a service.xml file and run an ant task. The
utility will create Java files, Hibernate files,
Service Builder
and service classes
• Service Builder is a RAD tool, we may
choose to use our own service framework
and layer instead
Friday, July 30, 2010
Liferay supports Web Services
Liferay supports Web Services :-
• JSON
• Hessian
• Burlap
• REST
• RMI
• Spring HTTP
• WSRP
• WebDAV
• JSON
• Hessian
• Burlap
• REST
• RMI
• Spring HTTP
• WSRP
• WebDAV
Thursday, July 29, 2010
HashMap sort by key
HashMap map = new HashMap();
map.put("05", "500");
map.put("04", "400");
map.put("03", "600");
map.put("01", "100");
Object[] key = map.keySet().toArray();
Arrays.sort(key);
for (int i = 0; i < key.length; i++) {
System.out.println(map.get(key[i]));
}
map.put("05", "500");
map.put("04", "400");
map.put("03", "600");
map.put("01", "100");
Object[] key = map.keySet().toArray();
Arrays.sort(key);
for (int i = 0; i < key.length; i++) {
System.out.println(map.get(key[i]));
}
Subscribe to:
Posts
(
Atom
)