Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




Articles in August of year 2012

 
SQL Server interview question notes: - Raise error
Point 1:- RAISERROR is used to raise error / warning back to the application or a catch block. Point 2:- Syntax of RAISERROR is as below RAISERROR (@Messageid -- Error message number stored in Sys.messages table @ErrorSeverity, -- Severity ( 0-25) @ErrorState -- State @ErrorMessage, -- Error message string ); Point 3:- You can raise system error message or user defined error message. For user defined error messages it should be greater than 500
SQL Server interview question notes: - Raise error
Point 1:- RAISERROR is used to raise error / warning back to the application or a catch block. Point 2:- Syntax of RAISERROR is as below RAISERROR (@Messageid -- Error message number stored in Sys.messages table @ErrorSeverity, -- Severity ( 0-25) @ErrorState -- State @ErrorMessage, -- Error message string ); Point 3:- You can raise system error message or user defined error message. For user defined error messages it should be greater than 500
Java Training: - What is the difference between JNDI context, Initial context, session context and EJB context?
JNDI context JNDI Context Provides a mechanism to lookup resources on the network Initial context Initial Context constructor provides the initial context. Session context Session Context has all the information a session bean would require from the container Entity Context Entity Context has all the information that an Entity bean would need from a container EJB context EJB Context contains the information that is common to both the session and entity bean
What do you mean stateful and stateless session bean?
Stateful Session bean:- Stateful session bean maintain the state of the conversation between the client and itself When the client invokes a method on the bean the instance variables of the bean may contain a state but only for the duration of the invocation implements the javax.ejb.SessionBean interface and is deployed with the declarative attribute "stateful" Stateless session bean:- A stateless session bean is an enterprise bean that provides a stateless servi
Java Training: - Explain ORM and different levels of ORM quality?
ORM: - ORM stands for Object/Relational mapping which is mainly used to remove the difference between object oriented and relation model Different levels of ORM quality: - Pure relational entire application, including the user interface, is designed around the relational model and SQL-based relational operations Light object mapping The entities are represented as classes that are mapped manually to the relational tables Medium object mapping The application is designed
How to find controls in content page from another content page in asp.net
his article explains how we can find the controls from content page to content. First we will find t
Java Training: - Can you explain marshaling and unmarshalling?
Marshaling: - Marshalling creates an XML document from a content tree. To marshal a content tree, Create a JAXBContext object Create a Marshaller object (Marshaller marshaller = jaxbContext.createMarshaller();) Set required properties using setProperty method of Marshaller marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, new Boolean(true)); Call the marshal method marshaller.marshal(collection, new FileOutputStream("jaxbOutput.xml")); Unmarshalling:
Java Interview Questions: - Explain navigation rules and how to declare the same?
Navigation rules tells JSF implementation which page to send back to the browser after a form has been submitted The above configuration says that navigation will happen to page2.jsp if the action eventAction happens inside page1.jsp See the following video on Getting Started with Servlet in Java: - Click to get Java Interview Questions Regards, Get more Java Interview Questions from author’s blog
Java Training: - Can you explain differences between DTDs and Schema?
See the following video on overview on Servlets in Java: - Click to get Java Training Regards, Get more Java Training from author’s blog
Java Training: - Can you explain Bean lifecycle in Spring framework?
The spring container finds the beans definition from the XML file and instantiates the bean Using the dependency injection, spring populates all of the properties as specified in the bean definition If the bean implements the BeanNameAware interface, the factory calls setBeanName() passing the bean’s ID If the bean implements the BeanFactoryAware interface, the factory calls setBeanFactory(), passing an instance of itself If there are any BeanPostProcessors associated with t