92014Sep

Check User Active Status Using Idle Timer

There are most of the time when there is requirement for setting session timeout when user is idle for sometime. Like there are ajax requests going on for users who are logged in e.g notification call, new messages call. But the user is idle or leaves the browser open for long time so in that…

Read More
32014Sep

Need Of serialVersionUID In Serialization

serialVersionUID In Serialization If we do not explicitly declare serialVersionUID during serialization then JVM generates this ID based upon the structure of class. And then if we implement another interface or any other class or change the structure of class then JVM will generate different serialVersionUID for the class. After that if we try to…

Read More
32014Sep

Singleton In Java

Singleton in java is a class which has only one instance in whole application and provides a getInstance() method to access the singleton instance. There are many classes in JDK which is implemented using Singleton pattern like java.lang.Runtime which provides getRuntime() method to get access of it. There are many ways to create singleton in…

Read More
32014Sep

What is Marker Interface

Marker interface It is interface that neither have any type of method nor data members. If we implements this interface to any class then JVM add specific code or instruction in class byte code and provide additional behaviour at runtime.Marker interface is heavy process because JVM has to set up completely different task for it,we should…

Read More
12014Sep

GenericFormHandler And RepositoryFormHandler in ATG

GenericFormHandler And RepositoryFormHandler Classes In ATG Both of these classes in ATG are used to create a custom form handler to deal with user input and repositories. But these two classes have different purposes in terms of creating new form handler. The difference is GenericFormHandler Custom form handlers should typically extend GenericFormHandler, which: Is a…

Read More
212014Aug

Component-item-type and Item-type in ATG

Component-item-type and Item-type Both these attributes are use to link table column to other repository item. The difference is Component-item-type – When you are using one-to-many mapping and you are referring to other repository items i.e another item descriptor. e.g Album and Song are two different item-descriptor. An album can have multiple songs so there…

Read More
212014Aug

Application Logging In ATG

For logging you can use logging capabilities of built-in components of ATG. ATG provides GenericService class in order to use logging in your component smoothly. But If your component extends a non-ATG base class, and you are therefore unable to use GenericService as a base, you can still take advantage of ATG logging by implementing…

Read More
202014Aug

How To Create Component In ATG – GenericService Class

For creating nucleus components your component class must implement number of interfaces to get the desired functionality but we can simplify our work by extending only one class. ATG provides a base class that provides smooth integration into the ATG Nucleus: atg.nucleus.GenericService Properties loggingDebug loggingError loggingInfo loggingWarning name nameContext Methods resolveName(): Finds a component by…

Read More
202014Aug

Types of Components In ATG

Most components in ATG can be classified into one of the following categories: Service: A component that provides functionality on which one or more systems depends. Form Handler: A component to validate and manage form input data. Servlet Bean: A droplet to handle page display logic. An example of a service component is a scheduled service. Your server-wide…

Read More
132014Aug

Oracle Import Export From Remote System Using IMPDP & EXPDP

Oracle IMPDP and EXPDP Oracle provides two very good tool for importing and exporting data dump very efficiently and in very simple manner using new data pump feature. There are two ways to import data using data pump. Using IMPDP directly without dump file. Using IMPDP with dump file. Things To Consider – Utility command…

Read More
132014Aug

Request Flow of Struts 1.x

There is following task is happening when you deploy any web-application which is developed in Struts 1.x, Step 1:- All Step of web-application deployment will be done first Process Steps of any web-application at deployment Step 2:- Because of configuring ActionServlet with <load-on-startup> tag, ActionServlet is initialized at container startup. Step 3:- Container invokes service(request,response)…

Read More
132014Aug

ORA-31679: Solved

ORA-31679: Solved ORA-31679: Table data object “Table_Name” has long columns, and longs can not be loaded/unloaded using a network link When ? ORA-31679 error occurs when we try to import the data using impdp over a network link. Why ? When the remote database contains table data object that has long columns, and longs can not…

Read More
62014Aug

ArrayList and LinkedList Difference

ArrayList ArrayList is backed Array datastructure and Alllow Duplicacy,we can insert multiple null value in it.Array initial capacity is 16. ArrayList make a contiguous memory allocation,for contiguous memory allocation arraylist always firstly create a space then insert a value in it.So arrayList  require two step for insertion first create space then insert value. If we insert any value in ArrayList it take more…

Read More