Sunday Aug 19, 2012

J2EE - Connecting To HTTPS Site Using Simple Java Program When USing Proxy

In some cases we may have to connect to an HTTPS Site using simple Java Program when proxy is involved. Here in this article we are going to see how to connect. Here we are using HttpsURLConnection class.[Read More]

Saturday Aug 11, 2012

J2EE - Creating Clustered EJB Timer Services In Weblogic Server

The EJB timer service is an EJB-container provided service that allows you to create timers that schedule callbacks to occur when a timer object expires. Timer objects can be created for entity beans, message-driven beans, and stateless session beans. Timer objects expire at a specified time, after an elapsed period of time, or at specified intervals. For instance, you can use the timer service to send out notification when an EJB remains in a certain state for an elapsed period of time.[Read More]

J2EE - Creating Custom Cache Tool To Store User Sessions OutSide the Application Server.

Caching is useful for improving application performance and to prevent from OutOfMemory exceptions in Application Servers when huge data has to be stored in session. Some times you may have to store huge data in session. If there are many such users storing data into session you may lead to outofmemory and ApplicationServer goes down. Instead if you store session data in a separate JVM than where the Application Server is running, you won't stuck into memory issues. This blog entry will help you understand how this concept is implemented. Here I am going to discuss how the caching tool internally works by creating custom cash[Read More]

Thursday Aug 02, 2012

Handling Runtime Exceptions By Redirecting The Logs Using Log4j

Recently I came across a requirement where all the Runtime Exceptions(Unchecked) that are occured during runtime should be redirected to file with the help of log4j. One way is to handle all the above exceptions in the application using try/catch or Throws. But if they are not handled in the application(and it cannot be done
always as these are runtime exceptions), and during runtime if it occurs it won't be good to show the exception to the end clients. It would be good if we redirect
the page to underconstruction page and also the exception should be known to System Admin or the Application Support Team.
[Read More]
About

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today