Posted on August 12, 2008 by sharat
use the flyweight pattern to reduce object creation [The flyweight pattern uses a factory instead of 'new' to reuse objects rather than always create new ones]. The Singleton pattern and the Flyweight (object factory) pattern are useful to limit numbers of objects of various types and to assist with object reuse and reduce garbage collection. [...]
Filed under: Design Pattern, Performance | 2 Comments »
Posted on August 8, 2008 by sharat
<html > <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){var chart1 = new dojox.charting.Chart2D(“simplechart”);chart1.addPlot(“default”, {type: “Lines”});chart1.addPlot(“other”, {type: “Areas”, hAxis: “other x”, vAxis: “other y”});chart1.addPlot(“Grid”, {type: “Grid”, hAxis: “other x”, vAxis: “other y”,hMajorLines: true, hMinorLines: false, vMajorLines: true, vMinorLines: false});chart1.addAxis(“x”, { labels: [{value: 1, text: "Jan"}, {value: 2, text: "Feb"}, [...]
Filed under: Dojo | 1 Comment »
Posted on August 8, 2008 by sharat
<html > <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){var chart1 = new dojox.charting.Chart2D(“simplechart”);chart1.addPlot(“default”, {type: “Lines”});chart1.addPlot(“other”, {type: “Areas”, hAxis: “other x”, vAxis: “other y”});chart1.addPlot(“Grid”, {type: “Grid”, hAxis: “other x”, vAxis: “other y”,hMajorLines: true, hMinorLines: false, vMajorLines: true, vMinorLines: false});chart1.addAxis(“y”, {vertical: true});chart1.addAxis(“other x”, {leftBottom: false});chart1.addAxis(“other y”, {vertical: true, leftBottom: false, [...]
Filed under: Dojo | Leave a Comment »
Posted on August 8, 2008 by sharat
<html> <head runat=”server”><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){var chart1 = new dojox.charting.Chart2D(“simplechart”);chart1.addPlot(“default”, {type: “Lines”});chart1.addPlot(“other”, {type: “Areas”, hAxis: “other x”, vAxis: “other y”});chart1.addAxis(“x”);chart1.addAxis(“y”, {vertical: true});chart1.addAxis(“other x”, {leftBottom: false});chart1.addAxis(“other y”, {vertical: true, leftBottom: false, max: 7, stroke: “green”, font: “normal normal bold 14pt Tahoma”, fontColor: “red”, majorTick: [...]
Filed under: Dojo | Leave a Comment »
Posted on August 8, 2008 by sharat
<html> <head runat=”server”><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){var chart1 = new dojox.charting.Chart2D(“simplechart”);chart1.addPlot(“default”, {type: “Lines”});chart1.addPlot(“other”, {type: “Areas”, hAxis: “other x”, vAxis: “other y”});chart1.addAxis(“x”);chart1.addAxis(“y”, {vertical: true});chart1.addAxis(“other x”, {leftBottom: false});chart1.addAxis(“other y”, {vertical: true, leftBottom: false});chart1.addSeries(“Series 1″, [1, 2, 2, 3, 4, 5, 5, 7]);chart1.addSeries(“Series 2″, [1, 1, 4, 2, 1, 6, [...]
Filed under: Dojo | Leave a Comment »
Posted on August 8, 2008 by sharat
<html> <head runat=”server”><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){ var chart1 = new dojox.charting.Chart2D(“simplechart”);chart1.addPlot(“default”, {type: “Lines”});chart1.addPlot(“other”, {type: “Areas”});chart1.addAxis(“x”);chart1.addAxis(“y”, {vertical: true});chart1.addSeries(“Series 1″, [1, 2, 2, 3, 4, 5, 5, 7]);chart1.addSeries(“Series 2″, [1, 1, 4, 2, 1, 6, 4, 3], {plot: “other”, stroke: {color:”blue”}, fill: “lightblue”});chart1.render(); };dojo.addOnLoad(makeCharts);</script></head><body><div id=”simplechart” style=”width: 250px; height: [...]
Filed under: Dojo | Leave a Comment »
Posted on August 8, 2008 by sharat
<html> <head runat=”server”><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){ var chart1 = new dojox.charting.Chart2D(“simplechart”); chart1.addPlot(“default”, {type: “Lines”, markers: true, tension:3, shadows: {dx: 2, dy: 2, dw: 2}}); chart1.addAxis(“x”); chart1.addAxis(“y”, {vertical: true}); chart1.addSeries(“Series 1″, [1, 2, 2, 3, 4, 5, 5, 7]); chart1.render();};dojo.addOnLoad(makeCharts);</script></head><body><div id=”simplechart” style=”width: 250px; height: 150px;”></div></body></html> Output:
Filed under: Dojo | 5 Comments »
Posted on August 8, 2008 by sharat
<html> <head runat=”server”><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){ var chart1 = new dojox.charting.Chart2D(“simplechart”); chart1.addPlot(“default”, {type: “Areas”}); chart1.addAxis(“x”); chart1.addAxis(“y”, {vertical: true}); chart1.addSeries(“Series 1″, [1, 2, 2, 3, 4, 5, 5, 7]); chart1.render();};dojo.addOnLoad(makeCharts);</script></head><body><div id=”simplechart” style=”width: 250px; height: 150px;”></div></body></html> output:
Filed under: Dojo | Leave a Comment »
Posted on August 8, 2008 by sharat
<html> <head runat=”server”><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><title>Untitled 1</title><script type=”text/javascript” src= “../js/dojo/dojo/dojo.js” djConfig=”isDebug: true”></script><script type=”text/javascript”>dojo.require(“dojox.charting.Chart2D”);makeCharts = function(){ var chart1 = new dojox.charting.Chart2D(“simplechart”); chart1.addPlot(“default”, {type: “Lines”}); chart1.addAxis(“x”); chart1.addAxis(“y”, {vertical: true}); chart1.addSeries(“Series 1″, [1, 2, 2, 3, 4, 5, 5, 7]); chart1.render();};dojo.addOnLoad(makeCharts);</script></head><body><div id=”simplechart” style=”width: 250px; height: 150px;”></div></body></html> Output:
Filed under: Dojo | Leave a Comment »
Posted on August 5, 2008 by sharat
1. Use Firebug or Firebug Lite Firebug, an open source debugging extension for Firefox, is essential for JavaScript, HTML and CSS debugging. You can download it from the Firebug web site. 2. Logging In Dojo logging, you can associate messages with severity, just like in log4j. The following code illustrates the five severity levels: [...]
Filed under: Dojo | Leave a Comment »
Posted on August 5, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> // Load Dojo’s code relating to the Button widget dojo.require(“dijit.form.Button”); </script> <script> function helloCallback(data,ioArgs) { alert(data); } function helloError(data, ioArgs) { alert(‘Error when retrieving data from the server!’); [...]
Filed under: Dojo | 1 Comment »
Posted on August 5, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> // Load Dojo’s code relating to the Button widget dojo.require(“dijit.form.Button”); </script> <script> function helloCallback(data,ioArgs) { alert(data); } function helloError(data, ioArgs) { alert(‘Error when retrieving data from the server!’); [...]
Filed under: Dojo | Leave a Comment »
Posted on August 5, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> // Load Dojo’s code relating to the Button widget dojo.require(“dijit.form.Button”); </script> <script> function helloCallback(data,ioArgs) { alert(data); } function helloError(data, ioArgs) { alert(‘Error when retrieving data from the server!’); [...]
Filed under: Dojo | Leave a Comment »
Posted on August 5, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> // Load Dojo’s code relating to the Button widget dojo.require(“dijit.form.Button”); </script> <button dojoType=”dijit.form.Button” id=”helloButton”> Hello World! <script type=”dojo/method” event=”onClick”> alert(‘You pressed the button’); </script> </button> <style type=”text/css”> /* [...]
Filed under: Dojo | Leave a Comment »
Posted on July 25, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> dojo.addOnLoad(function(){ var animArgs = { node: “testHeading”, duration: 1000, // ms to run animation delay: 250 // ms to stall before playing }; dojo.fadeOut(animArgs).play();}); </script> <style type=”text/css”> [...]
Filed under: Dojo | Leave a Comment »
Posted on July 25, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> dojo.addOnLoad(function(){ var node = dojo.byId(“testHeading”); dojo.connect(node,”onclick”,function(){ node.innerHTML = “Click! Click!!”; }); }); </script> <style type=”text/css”> /* CSS */ .testClass { background-color:red;} </style> </head> <body> [...]
Filed under: Dojo | Leave a Comment »
Posted on July 25, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> dojo.require(“dojo.NodeList-fx”); dojo.addOnLoad(function(){ // our dom is ready, get the node: dojo.query(“#testHeading”) // add “testClass” to its class=”” attribute .addClass(“testClass”) // and fade it out after 500 ms .fadeOut({ [...]
Filed under: Dojo | Leave a Comment »
Posted on July 25, 2008 by sharat
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> dojo.require(“dijit.form.Button”); dojo.require(“dijit.TitlePane”); dojo.addOnLoad(function(){ dojo.byId(“testHeading”).innerHTML = “See!! New Heading is here”; console.log(“Execution Sequence: 1. require() 2. onLoad “); }); </script> <style type=”text/css”> /* CSS */ </style> [...]
Filed under: Dojo | Leave a Comment »
Posted on July 25, 2008 by sharat
dojotest.html <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <head> <title>Dojo</title> <!– load the dojo toolkit base –> <script type=”text/javascript” src= “dojo/dojo/dojo.js” djConfig=”parseOnLoad:true, isDebug:true”></script> <script type=”text/javascript”> // a very common method of loading code onLoad var init = function(){ console.log(“Hello World in Dojo!!”); }; dojo.addOnLoad(init); // and/or pass an anonymous function [...]
Filed under: Dojo | Leave a Comment »
Posted on July 23, 2008 by sharat
Dojo is structured in 4 main projects: Dojo Core, Dijit, DojoX, and Dojo Utilities. Simply including the standard dojo.js gives you: A very fast, lean (26KB gzipped) core packed full of APIs for XHR, events, DOM, query, animations, namespacing, and other highly used convenience functions. Optional modules for dates, colors, back button/history, currency, and more [...]
Filed under: Dojo | Leave a Comment »
Posted on May 12, 2008 by sharat
1.GenericsAllows programmers to specify the types allowed for CollectionsAllows the compiler to enforce the type specifications//BeforeList stringList //In JDK 1.5List<String> stringList;2.Enhanced for loopA new language constuct for the Iterator pattern//Beforefor(Iterator i = line.iterator();i.hasNext(); ) { String word = (String)i.next(); …}//In JDK 1.5for(String word: line){ …}3.AutoboxingEssentially bridges between the “primitive” types (such as int, boolean) and [...]
Filed under: Interview Questions, JDK 1.5 features | 3 Comments »
Posted on May 9, 2008 by sharat
What is Spring? Spring is a lightweight inversion of control and aspect-oriented container framework. Explain Spring? Lightweight – spring is lightweight when it comes to size and transparency. The basic version of spring framework is around 1MB. And the processing overhead is also very negligible. Inversion of control (IoC) – Loose coupling is achieved in [...]
Filed under: Interview Questions, Spring | 2 Comments »
Posted on May 7, 2008 by sharat
1. Getting Data Create one sample file to load in and name it as sample.txt with below textI am a <em>remote</em> file.We used Dojo(Ajax) to put textin our page <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”><html><head><meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″><title>Getting data with Dojo</title><!– load the dojo toolkit base –><script type=”text/javascript” src=”dojo/dojo.js”djConfig=”parseOnLoad:true, isDebug:true”></script><script type=”text/javascript”>var init = [...]
Filed under: Dojo | 1 Comment »
Posted on May 7, 2008 by sharat
<html><head><title>Dojo Toolkit Working Examples</title> <!– load the dojo toolkit base –><script type=”text/javascript” src=”dojo/dojo.js”djConfig=”parseOnLoad:true, isDebug:true”></script><script type=”text/javascript”>/* our JavaScript will go here */dojo.require(“dijit.form.Button”);dojo.require(“dijit.TitlePane”);dojo.require(“dojo.NodeList-fx”);//——Example – 1————-dojo.addOnLoad(function(){dojo.byId(“testHeading”).innerHTML = “We’re on our way!”console.log(“onLoad fires after require() is done”);dojo.query(“#testHeading”)// add “testClass” to its class=”” attribute.addClass(“testClass”)// and fade it out after 500 ms.fadeOut({ delay:2000 }).play();dojo.query(“.para”).addClass(“testClass”).fadeOut({ delay: 1000 }).play();var node = dojo.byId(“testHeading”);dojo.connect(node,”onclick”,function(){node.innerHTML = [...]
Filed under: Dojo | 1 Comment »
Posted on May 7, 2008 by sharat
1. What is JavaScript? JavaScript is a platform-independent, event-driven, interpreted client-side scripting and programming language developed by Netscape Communications Corp. and Sun Microsystems. 2. How is JavaScript different from Java? Java is an entire programming language developed by Sun Microsystems, while JavaScript is a scripting language that was introduced by Netscape.3.What’s relationship between JavaScript and [...]
Filed under: Interview Questions, JavaScript | 1 Comment »
Posted on May 7, 2008 by sharat
1. What is HTML? HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to create web pages to be viewed on the Internet. HTML Code is the code that tells the browser what to do.2. What is a tag? In HTML, a tag tells the browser what to [...]
Filed under: HTML, Interview Questions | 7 Comments »
Posted on May 7, 2008 by sharat
What is CSS? What are Cascading Style Sheets? How do I center block-elements with CSS1? If background and color should always be set together, why do they exist as separate properties? What is class? What is grouping What is external Style Sheet? How to link? Is CSS case sensitive? Three selectors: h1, .warning and #footer, [...]
Filed under: CSS, Interview Questions | Leave a Comment »
Posted on November 13, 2007 by sharat
1.What is and Why Dojo Toolkit ? Dojo toolkit is open source DHTML toolkit written in JavaScript. In other words, it is a set of JavaScript libraries. Dojo toolkit aims to solve some long-standing historical problems with DHTML such as browser incompatibility. Dojo toolkit also allows you easily add dynamic capabilities into the web pages [...]
Filed under: Dojo, Interview Questions | 3 Comments »
Posted on May 10, 2007 by sharat
What is ant? Ant is a small animal who can build magnificent buildings. Ant builds!ANT is a Java based building tool, which is similar to make, and so much better than make.ANT, what a smart name for a building tool, even the original author of ANT, James Duncan Davidson, meant “Another Neat Tool”. A [...]
Filed under: ANT | 1 Comment »
Posted on April 12, 2007 by sharat
What is a design pattern.————————————–“Design patterns are recurring solutions to design problems you see overAlpert, et. al., 1998).“Design patterns constitute a set of rules describing how to accomplish certain tasks in the realm of software development.” (Pree, 1994) How many catogeries are there in Java patterns.————————————————–Creational patterns are ones that create objects for you, rather [...]
Filed under: Design Pattern | 2 Comments »
Posted on April 9, 2007 by sharat
1.What is a design pattern.2.How many catogeries are there in Java patterns.3. How many patterns did you use in your project.4.Give me an example of Creational Patterns.5.What is Singleton pattern. Where did you use it.6.How do you use Factory pattern.7.Can explaing examples of Structural Patterns.8.What is difference between adapter pattern and decorator pattern.9.What is Facade [...]
Filed under: Design Pattern | 5 Comments »
Posted on April 9, 2007 by sharat
1. Factorial finding public class Fact { public static int factorial(int n) { if (n==0) return 1; else return n * factorial(n-1); } public static void main(String argv[]) { int x; x=9; System.out.println(“Factorial of “+x+” is “+factorial(x)); }} 2. Divisible by number public class Divisor{ public static void main(String[] args){ int a [...]
Filed under: Basic Programs | 2 Comments »
Posted on April 5, 2007 by sharat
1.What is DDL and DML ? DDL :- Data defination Language its having four commands Create , Alter , Drop , Truncate DML :- Data manuplation language Insert , Update , Delete , select 2.How can you compare a part of the name rather than the entire name ? SELECT * FROM people WHERE empname [...]
Filed under: Databases | 6 Comments »
Posted on March 27, 2007 by sharat
1. What is Hibernate2. What are ORM tools3. What is Object/relation paradigm mismatch4. What role does the session interface play in Hibernate5. What is sessionFactory interface6. What is Configuration interface7. What is the naming convention of Hibernate XML mapping file extensions8. What are the most common methods of configurating hibernate9. How can the mapping files [...]
Filed under: Hibernate | 7 Comments »
Posted on March 27, 2007 by sharat
1. What is the difference between JavaScript and AJAX ? JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is written into an HTML page. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it’s up to the [...]
Filed under: AJAX | 2 Comments »
Posted on March 22, 2007 by sharat
Can you control when passivation occurs? The developer, according to the specification, cannot directly control when passivation occurs. Although for Stateful Session Beans, the container cannot passivate an instance that is inside a transaction. So using transactions can be a a strategy to control passivation. The ejbPassivate() method is called during passivation, so the developer [...]
Filed under: EJB | 1 Comment »
Posted on March 22, 2007 by sharat
What is the differnece between EJB and Java BeansExplain Local InterfacesWhat is EJB ContainerWhat is in-memory replicationWhat is ripple effectWhat’s new in the EJB 2.0 SpecificationWhat is the difference between a Coarse Grained Entiry bean and Fine Grained Entity Bean.What are transaction isolation levels in EJBWhat is the software architectury of EJBs.Waht is the need [...]
Filed under: EJB | 1 Comment »
Posted on March 20, 2007 by sharat
What are the differnt kids of EJBs Stateless session bean- An instance of these non-persistent EJBs provides a service without storing an interaction or conversation state between methods. Any instance can be used for any client.Stateful session bean- An instance of these non-persistent EJBs maintains state across methods and transactions. Each instance is associated with [...]
Filed under: EJB | 1 Comment »
Posted on March 20, 2007 by sharat
The Java Naming and Directory Interface (JNDI) is an application programming interface (API) for accessing different kinds of naming and directory services. JNDI is not specific to a particular naming or directory service, it can be used to access many different kinds of systems including file systems; distributed objects systems like CORBA, Java RMI, and [...]
Filed under: EJB | Leave a Comment »
Posted on March 20, 2007 by sharat
A session in a Servlet, is maintained by the Servlet Container through the HttpSession object, that is acquired through the request object. You cannot really instantiate a new HttpSession object, and it doesn’t contains any business logic, but is more of a place where to store objects. A session in EJB is maintained using the [...]
Filed under: EJB | 3 Comments »
Posted on March 20, 2007 by sharat
Stateless Session Beans Stateful Sessions Beans Are pooled in memory, to save the overhead of creating a bean every time one is needed. WebLogic Server uses a bean instance when needed and puts it back in the pool when the work is complete. Stateless sessions beans provide faster performance than stateful beans. Each client creates [...]
Filed under: EJB | 2 Comments »
Posted on March 20, 2007 by sharat
Stateless session beans are a good choice if your application does not need to maintain state for a particular client between business method calls. WebLogic Server is multi-threaded, servicing multiple clients simultaneously. With stateless session beans, the EJB container is free to use any available, pooled bean instance to service a client request, rather than [...]
Filed under: EJB | 1 Comment »
Posted on March 20, 2007 by sharat
Short answer: with bean-managed persistence, you can optimize your queries and improve performance over the generalized container-managed heuristics. But container-managed persistence is very convenient, and vendors will be working to improve its performance as time goes on.] There is of course a difference as many CMPs use O-R mapping using metadata, which is slower than [...]
Filed under: EJB | 2 Comments »