23 Oct 2007

MBA in IT or IT in MBA??

Guys, I am really confused what our institute is offering us- "MBA in IT" or "IT in MBA" because we are dealing with all technologies and less of Management. We have these interesting technical subjects which i suppose no Management institute has. I don't know if i should be proud of my institute for this or just nod my head. The subjects we have in the last trimester are:
1) Cyber law
2) Information Security and Audits
3) Advanced C++
4) Web Application Development Technology (with HTML,Java and xml coding rolled into one!)
5) Entrepreneurship (ah at last one management subject!)
6) Enterprise Application Integration (EAI)
7) Software Quality Management
8) Enterprise Resource Planning (ERP) (SD module,we have done FI and MM modules earlier).

So you tell me what would it be "MBA in IT " or "IT in MBA"??
To help you decide ,lemme tell you about todays Java lab. We were supposed to use JDK and write a java program to link with an xml file,interfaced by HTML file. People went haywire at the first instance. Some even forgot the command to run a Java compiler!! But on the contrary, if you look from a technician's perspective its wonderful to learn all these technologies.
Lets take a closer look into the subject.

What are servelets?
Servlets are modules of Java code that run in a server application (hence the name "Servlets", similar to "Applets" on the client side) to answer client requests. Servlets are not tied to a specific client-server protocol but they are most commonly used with HTTP and the word "Servlet" is often used in the meaning of "HTTP Servlet".

Servlets make use of the Java standard extension classes in the packages javax.servlet (the basic Servlet framework) and javax.servlet.http (extensions of the Servlet framework for Servlets that answer HTTP requests). Since Servlets are written in the highly portable Java language and follow a standard framework, they provide a means to create sophisticated server extensions in a server and operating system independent way.

Typical uses for HTTP Servlets include:

  • Processing and/or storing data submitted by an HTML form.

  • Providing dynamic content, e.g. returning the results of a database query to the client.

  • Managing state information on top of the stateless HTTP, e.g. for an online shopping cart system which manages shopping carts for many concurrent customers and maps every request to the right customer.

Servlets Vs CGI (Common Gateway Interface)
CGI is a language-independent interface that allows a server to start an external process which gets information about a request through environment variables, the command line and its standard input stream and writes response data to its standard output stream. Each request is answered in a separate process by a separate instance of the CGI program, or CGI script.

Servlets have several advantages over CGI:

  • A Servlet does not run in a separate process. (In CGI,a separate process or instance is created for each request..isn't that cumbersome?)

  • A Servlet stays in memory between requests. A CGI program needs to be loaded and started for each CGI request.

  • There is only a single instance which answers all requests concurrently. This saves memory and allows a Servlet to easily manage persistent data.

In short, if a page is requested by 100 people,CGI will create 100 instances for the 100 requests whereas Servlets share the common resource and have only one instance for those 100 requests (isn't that cool?)

Servlet life cycle
A servlet has a life cycle consisting of:
1)Init method (when servlet starts)
2) Service method (use of servlet)
3) Destroy method (when servlet ends)

How to create servlet?
1) Install JDK and set path
2) Install Tomcat Web server and set class path of servlet-api.jar
3) Create Java (*.java) file
4) Create HTML file to call servlet
5) Deployment descriptor (web.xml)
6) Start Tomcat and run servlet in the browser

We wrote the java program but it showed some errors,made xml file and HTML file too but could not run though we could run the Tomcat server. It was an interesting class mixed with confusion and excitement. I have installed Tomcat server and JDK too,so i'll try running it on my laptop later on. Hope you had fun exploring with me?
For those who think the water has gone above the head,God save them! For here we deal with technical more than management subjects. Lets see what C++ has to offer tomorrow!!

References: http://www.novocode.com
Class notes

Disqus

comments powered by Disqus