This is sample application that demo the Intregration of Struts 1.x with Spring and Hibernate. Most of the old java web apps were build you struts 1.x it was great web framework build apps in last decade but this 2018 it has been 10 years of last stable release of struts 1.3.
This example use struts as frontcontroller and all business/service layer done in spring and the Data Access layer is taken care by Hibernate.
This project structure is maven-archetype-webapp. And depencencies use are listed below.
- struts-core 1.3.10
- struts-taglib 1.3.10
- spring-struts 3.1.1
- spring-core 3.1.1
- spring-web 3.1.1
- hibernate 3.2.2
Note: You can update the spring and hibernate as per you application.
JCache is a common API for using caching in Java. Specifies API and semantics for temporary, in memory caching of Java objects, including object creation, shared access, spooling, invalidation, and consistency across JVM’s.
Caching is something that everyone has implemented in there app. There are n numbers of services and system available from just a simple Concurrent Map implementation to all the way to caching servers like Redis and memcache. Each cache provider have distinct api to use. JCache provide a standard set of API to implement caching in your app. JCache is based on JSR-107, JSR was submitted in year 2001 and finally released on 18 Mar 2014.
JCache is just like Jdbc but for caching provider rather then database. Jdbc is comman api interact with any database, JCache is to interact with caching providers.
Undertow is a flexible performant web server written in java, provid blocking and non-blocking api. It can also embeded in your app can ship it prod with no problem. Now it is also becoming the hot choice for mircoservice deployment.
Undertow is extremely lightweight, with the Undertow core jar coming in at under 1Mb. It is lightweight at runtime too, with a simple embedded server using less than 4Mb of heap space
Jetty is java servlet container developed by Eclipse Foundation and it has such small footprint that you can embedded it in you java app or can use as test server alternative to any web server like tomcat. All by writting small main class of just over of 10 line.
Jetty is used in a wide variety of projects and products, both in development and production. Jetty can be easily embedded in devices, tools, frameworks, application servers, and clusters.
User or Identity management is most important and critical part of an application any minor loophole can be exploited by Hacker. Its big challenge and hassle for a developer to secure and maintain his application. Stormpath provides an ecosystem for user management, authentication and authorization for your application. As their tagline says “Never Build Auth Again” that mean developer don’t have to worry to build auth system to secure and maintain.
This post shows you how to use Stormpath Auth system with Spring Boot app. To get started we need put all the following dependency in our pom.xml
Server getting very slow and hanging up a lot sometime ending up by “java.lang.OutOfMemory” error frequently while deploying or republishing J2EE Web application in WebSphere Application Server.
Today, I’ll telling how to set initial heap size and maximum heap size of JVM. that can solve these issues So to do so start your WAS first. then After the server has been started run the admin console from the IDE I am using IBM RSA(Rational Software Architect for WebSphere) you could be use whatever you like.
Web Service is web app which offer intersystem commutation between one electronic device to another electronic device over World Wide Web by using HTTP (Hyper Text Transfer Protocol). Web Service can be written in enterprise and high level language like Java and C#. And other hand client of this web service could be embedded program written in C or any other embedded language of your house hold refrigerator connected to internet.
Web services may use SOAP over HTTP protocol, allowing less costly interactions over the Internet than via proprietary solutions like EDI/B2B
The Java API for XML Web Services (JAX-WS) is a Java programming language API for creating web services, particularly SOAP services. JAX-WS is one of the Java XML programming APIs. It is part of the Java EE platform.
The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the “plumbing” of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.
Spring app is generally configured by XML based file but with release of spring 2.5 we saw the introduction of annotation in spring framework. Now spring app can be configured by annotation, no need to have a spring-context.xml (the XML file used by bean factory for initialisation of beans).
Install or Move your wordpress blog to live host in 7 Easy Step
It always had been a pain for a developer to migrate project from one environment to another and with php and static web site which can’t be bundle it like war, dll and exe.
3 years back I use to be a freelance web developer, primarily working with wordpress. When I use complete project and hand it over to client I have sit long hour and support them over remote and phone to make there site live and client don’t want to share there live credential with a freelance(why would they anyway). Then wrote this post and use to give them this doc.
Now there are better way to do this like docker and other. But with small business manually migrating website is the only way.
Step 1. At your hosting server install wordpress. I am using my cpanel godady.
Now wordpress ready with default theme and with Hello Post.
Python is general-purpose dynamic programming language desgined by Guido van Rossum. Which support multiple programming paradigm like object oriented, imperative, functional and others but it considered as one of the main stream functional programming language as it extensive use in functional world. If you are new to python you find people working of different version of python which parallely maintanied. As now 15 july 2016 there are two different stable vision of python are avaliable. 3.5.2 and 2.7.12. 3.5.2 is not at all compatible with 2.7.12 there are even minor syntax differences. So this we will focus on find the differences between the two favour of python.
Subscribe to this blog via RSS.
Java 14
Python 2
Ops 3
Shared 3
Angular 1
Web 1
Java (14) Python (2) Wordpress (1) Ops (3) Angular (1) Web (1)