Monday, August 25, 2008

Difference Between Session and Entity Beans

Difference Between Session and Entity Beans: "The EJB specification supports both transient and persistent objects. A transient object is referred to as a session bean, and a persistent object is known as an entity bean."

Difference Between Stateful and Stateless Session Beans

Difference Between Stateful and Stateless Session Beans: "Session beans can either be stateful or stateless. With stateful beans, the EJB container saves internal bean data during and in between method calls on the client’s behalf. With stateless beans, the clients may call any available instance of an instantiated bean for as long as the EJB container has the ability to pool stateless beans. This enables the number of instantiations of a bean to be reduced, thereby reducing required resources."

Monday, August 18, 2008

Play a multimedia file in J2ME Program (Audio/Video) using MMAPI

Play a multimedia file in J2ME Program (Audio/Video) using MMAPI: "The simplest MMAPI MIDlet that can be built allows you to easily play a multimedia file from within your MIDlet without worrying about controls, feature sets, or security architecture. If all you’re doing is adding some sampled audio (or any other media) in a game, MMAPI allows you to do so in two lines of code. Listing below shows this code within a complete MIDlet."

Saturday, August 16, 2008

Math object and Math functions in Javascript

Math object and Math functions in Javascript: "The Math object is the built-in object that you wish you had during those high school math classes: It knows all the formulas for the most complicated mathematical problems, and it can figure them out for you if you give it the numbers to work with. The Math object has several properties, consisting mostly of special values in the world of mathematics."

Javascript tutorials, javascript basics, javascript samples and example code

Javascript tutorials, javascript basics, javascript samples and example code A comprehensive knowledgebase on Javascript. A good online resource for javascript reference and javascript code samples and tutorials for web developers.

Friday, August 15, 2008

Getting started with Interview

Getting started with Interview: "The mere fact that you are reading this article is a proof that you are looking for your first Job or a change of Job. You have probably read many other articles about preparing for and facing an interview and you are already overwhelmed with a wealth of information. Hence I will stick to the point and keep this short."

Spring Vs EJB ( A feature comparison)

Spring Vs EJB ( A feature comparison): "In quite a few design brainstorming sessions, the debate between Spring and EJB results in a deadlock. There are developers who are damn passionate about Spring and hate EJBs. Let’s have a look at the main important differences between the two in terms of features they support."

Thursday, August 14, 2008

Java Interview Questions and Answers

Java Interview Questions and Answers
A good collection of Java Interview Questions for Java developers who need to brush up their Java knowledge before attending a technical Java Interview

Wednesday, August 13, 2008

Calling JSP from a batch file

Calling JSP from a batch file: "If you wondering why in the world should I call a JSP from a batch file then read on. In fact, my problem was to schedule a task that runs every day on a specific time and must generate a report for my management and email the same. Searching the net I was able to accomplish this by combining VB and batch files. But I was not happy with the results. Or to be more specific, my management was not happy with the type of report I was generating in terms of formatting etc."

List of Java Interview Questions

java-samples.com Latest Tutorials: "2008-08-13 : Interview Question: What is Struts? By: Ash
2008-08-13 : Interview Question: How is the MVC design pattern used in Struts framework? By: Ash
2008-08-13 : Interview Question: Who makes the Struts? By: Ash"

Thursday, August 07, 2008

Getting started with ASP

Getting started with ASP: "To start programming with ASP, you will need two things. The .Net Framework and the visual Web developer 2008. Fortunately both of them are available free for download from microsoft website http://www.asp.net/downloads/essential/ ."

Wednesday, August 06, 2008

if, if...else and switch statements in C with samples

if, if...else and switch statements in C with samples: "The if..else statement is a two way branch: it means do one thing or the other. When it is executed, the condition is evaluated and if it has the value `true' (i.e. not zero) then statement1 is executed. If the condition is `false' (or zero) then statement2 is executed. The if..else construction often saves an unnecessary test from having to be made."

Formatting with printf in C

Formatting with printf in C: "We could right justify our output using the format specifiers. The field-width specifier tells printf( ) how many columns on screen should be used while printing a value(as in %wd),here the value is right justified and is padded with blanks on the left. If we include the minus sign in format specifier (as in %-wd), this means left justification is desired and the value will be padded with blanks on the right."

Tuesday, August 05, 2008

Handling CSV in Stored Procedures

Handling CSV in Stored Procedures: "You have a number of key values, identifying a couple of rows in a table, and you want to retrieve these rows. If you are the sort of person who composes your SQL statements in client code, you might have something that looks like this:"

Sunday, August 03, 2008

Calling JSP from a batch file

Calling JSP from a batch file: "If you are wondering why in the world should I call a JSP from a batch file then read on. In fact, my problem was to schedule a task that runs every day on a specific time and must generate a report for my management and email the same. Searching the net I was able to accomplish this by combining VB and batch files. But I was not happy with the results. Or to be more specific, my management was not happy with the type of report I was generating in terms of formatting etc."

Saturday, August 02, 2008

IIS and WAP. Configuring IIS to deliver WML (WAP content)

IIS and WAP. Configuring IIS to deliver WML (WAP content): "Follow the steps given below to setup IIS to deliver WAP content such as WML.
The following are the mime types and the file extensions used for WAP."

Friday, August 01, 2008

RMSCookieConnector - Using Cookies in J2ME

RMSCookieConnector - Using Cookies in J2ME: "The RMSCookieConnector class stores cookies in an RMS record store. An RMS record store is accessed by its name, rather than reference, and can persist between soft resets, or reboots. That ensures an old session remains valid when a user later returns to an application after previously quitting it. Considering most people use their mobile information devices for many different tasks simultaneously, cookie persistence is a desired feature."

Datagrams in J2ME (UDP Programming sample)

Datagrams in J2ME (UDP Programming sample): "It is quite possible for someone to have worked with Java for some time without ever needing to understand or use datagrams. For mobile devices, however, datagrams offer some advantages in that they are rather lightweight when compared to TCP-based connections such as sockets. User Datagram Protocol, UDP, is one of the more common datagram protocols. However, because most datagram protocols follow the same basic principals as to their usage, the GCF is able to support datagrams generically."