Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact


JSP Page 3
2008-08-03 14:44:00
Q: What is the difference b/w variable declared inside a declaration part and variable declared in scriplet part?A: Variable declared inside declaration part is treated as a global variable.that means after convertion jsp file into servlet that variable will be in outside of service method or it will be declared as instance variable.And the scope is available to complete jsp and to complete in


JSP Page 2
2008-08-03 14:38:00
Q: How do I prevent the output of my JSP or Servlet pages from being cached by the browser? A: You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute the following scriptlet at the beginning of your JSP pages to prevent them from being cached at the browser. You need both the statements t


JSP Page 1
2008-08-03 14:36:00
Q: What is a output comment? A: A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser. JSP Syntax Example 1 Displays in the page source: TOP Q: What is a Hidden Commen


Page 7
2008-08-03 14:33:00
Q: Is Empty .java file a valid source file?A: Yes, an empty .java file is a perfectly valid source file. [Received from Sandesh Sadhale] TOPQ: Can a .java file contain more than one java classes?A: Yes, a .java file contain more than one java classes, provided at the most one of them is a public class. [ Received from Sandesh Sadhale] TOPQ: Is String a primitive data type in Java?A: No


Page 6
2008-08-03 14:27:00
Q: Can an unreachable object become reachable again?A: An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects. [Received from P Rajesh] TOPQ: What method must be implemented by all threads?A: All tasks must implement the run() method, wheth


Page 5
2008-08-03 14:25:00
Q: How are Observer and Observable used?A: Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects. [Received from Venkateswara Manam] TOPQ: What is syn


Page 4
2008-08-03 14:22:00
Q: Does Java provide any construct to find out the size of an object?A: No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java. [ Received from Sandesh Sadhale] TOPQ: Give a simplest way to find out the time a method takes for execution without using any profiling tool?A: Read the system time just before the method is invoked


Page 3
2008-08-03 14:18:00
Q: Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?A: Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can not resolve symbolsymbol : class ABCDlocation: package ioimport java.io.ABCD; [ Received from Sandes


Page 2
2008-08-03 14:15:00
Q: What if the main method is declared as private?A: The program compiles properly but at runtime it will give "Main method not public." message. [ Received from Sandesh Sadhale] TOPQ: What if the static modifier is removed from the signature of the main method?A: Program compiles. But at runtime throws an error "NoSuchMethodError". [ Received from Sandesh Sadhale] TOPQ: What if I write


Page 1
2008-08-03 14:12:00
Q: What is the difference between an Interface and an Abstract class?A: An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have th


A Perfect N-Tier Architecture
2008-08-01 14:37:00

Read more: Architecture , Perfect

A Perfect Distributed Transactions
2008-08-01 14:31:00

Read more: Distributed , Perfect

A Perfect J2EE Architecture
2008-08-01 14:26:00

Read more: Architecture , Perfect

Bibliographie
2008-08-01 14:20:00
[CARO] Common Architecture for RMI ObjectWeb Layer (CAROL).[DON 04] Didier Donsez, Vincent Lestideau, Osmose/ObjectWeb Generic DeploymentFramework Specification, v 0.1, UJF-IMAG-LSR-ADELE, June 2004, available at~donsez/ow/owdeploy/doc/OSMOSE-ObjectWeb-Generic_Deployment_Framework.html.[J2EE 03] Java™ 2 Platform, Enterprise Edition Specification Version 1.4. November 2003.Available at [JCA 03] J


Conclusion
2008-08-01 14:19:00
Deployment on application servers is an important topic that is handled in aspecific way for each kind of platform. The J2EE deployment concepts and processhave been precisely defined within the J2EE Deployment Specification. After ashort introduction to J2EE and to the JOnAS platform, this paper presents the J2EEdeployment concepts, their implementation within JOnAS, and the restrictions ofthe co


Deployment Issues
2008-08-01 14:17:00
4.1. JOnAS implementationImplementing the J2EE Deployment Specification for JOnAS consists inimplementing the product provider interfaces, i.e. the DeploymentManager and allrelated interfaces, which is tightly linked to the JOnAS implementation. Theseinterfaces implementations may be compared to an adapter between the deploymenttool relying on standard deployment interfaces, and the application se
Read more: Issues

2.J2EE Deployment
2008-08-01 14:16:00
In order to understand the use of these APIs, an example of interaction scenariobetween the deployment tool and the J2EE platform is following:- The Deployment tool gets a J2EE module to be deployed: if the module is aWAR, a JAR or a RAR, it instanciates a J2EEDeployableObject, if themodule is an EAR it instanciates a J2EEApplicationObject (containingJ2EEDeployableObjects)- The Deployment tool mak


J2EE Deployment
2008-08-01 14:13:00
The J2EE Deployment Specification [JDEP 03], available since J2EE 1.4, allowsa clear separation between the J2EE platform and the tool used to deployapplications upon such a platform. The specification defines APIs to beJ2EE deployment: the JOnAS case study 31provided/required by deployment tools and J2EE products, in order for anycompliant deployment tool to be able to deploy applications on any


2.J2EE Architecture
2008-08-01 14:12:00
the following Java APIs: J2EE CATM 1.5, JDBCTM 3.0, JTATM 1.0.1, JMSTM 1.1,JMXTM 1.2, JNDITM 1.2.1, JAASTM 1.0, JACCTM 1.0, JavaMailTM 1.3.In addition to the implementation of all J2EE-related standards, JOnAS providesthe following important advanced features:Management: JOnAS server management uses JMX and provides a JSP/Strutsbasedmanagement console.Services: JOnAS's service-based architecture p
Read more: Architecture

J2EE Architecture
2008-08-01 14:03:00
JOnASJOnAS [JONA] is an open source implementation of J2EE, developed within theObjectWeb consortium. ObjectWeb is an open source initiative which can becompared to Apache or Linux, but in the area of middleware. The aim ofObjectWeb is to develop and promote open source middleware software.ObjectWeb is an International Consortium hosted by INRIA, officially founded inFebruary 2002 by Bull, France
Read more: Architecture

1.J2EE
2008-08-01 14:02:00
The SunTM J2EE specification [J2EE 03] defines an architecture and interfacesfor developing and deploying distributed Internet JavaTM server applications basedon a multi-tier architecture. This specification intends to facilitate and standardizethe development, deployment, and assembling of application components; suchcomponents will be deployable on J2EE platforms. The resulting applications aret


Fidelity Information Services Launches Corebank J2EE in the Global Marketplace
2008-08-01 13:26:00
Jacksonville, Florida -- (July 25, 2005) -- Fidelity National Financial, Inc. (NYSE:FNF), a Fortune500 provider of products and outsourced services and solutions to financial institutions and thereal estate industry, and its Fidelity Information Services (Fidelity) division today announced theglobal availability of the world's first platform independent core banking solution adapted to theJava2 Pl
Read more: Global , Marketplace

Other Issues
2008-08-01 13:19:00
 Security = Access Control keep information about all users assign roles to users and access rights to roles method oriented role X is allowed to execute method Y no data-centric access control role X is allowed to execute method Y on data Z but not on data Z’ Other services lifecycle management of application components resource pooling (typically database connecti
Read more: Issues

Distributed Transactions
2008-08-01 13:12:00
 Support of 2-phase-commit within onecontainer/across containers
Read more: Distributed

Transaction Atomicity
2008-08-01 13:11:00
 Upon abort:All database operations / operations on entity beansare undoneAll operations on attributes of stateful sessionbeans remain! Application programmer has to write “compensating”operations if neededafterBegin/beforeCompletion/afterCompletion
Read more: Transaction

Page 1 of 1 « < 1 > »
eXTReMe Tracker