Important alert: (current site time 7/16/2013 12:34:06 AM EDT)
 

article

Tutorial On Application Severs: Develop Killer Web Applications In VB..

Email
Submitted on: 10/22/2000 9:29:29 PM
By: Anoop Madhusudanan  
Level: Intermediate
User Rating: By 65 Users
Compatibility: VB 6.0, VB Script, ASP (Active Server Pages)
Views: 62441
author picture
(About the author)
 
     This Tutorial will teach you the Ins and outs of creating custom Application Servers. Get the power to make true killer VB web applications, and give more scalability to your existing applications.

If you are new to the term 'Application Server', just consider that it is an application that runs between a thin front end (in this case the web browser) and back end servers: After reading this article, you can

(a) Understand what is an 'Application Server'

(b) Create an Application Server, with a general handler

(c) Extend the Application Server with additional logic.(In this case, a 'Banner Creator', which can create Banners with respect to user requests, and writes the picture back to them)

Also, kindly VOTE for me, if you find it interesting..b'coz I took 6-7 solid hours to write it

Your's Anoop M Nedumkunnam

This article has accompanying files



 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				

Dear Friends,

Kindly see the attached ZIP for the article and associated projects. Anyway, here is a short introduction. As you know, now a days, the term Application Server is becoming so hot. An Application Server is a software that runs on the middle layer. I mean; it runs between a thin front end (in this case the web browser) and back end servers.

Most Application Servers rely on Internet Servers, to pass information/data to clients on the web. Application Servers are expected to support COM (Component Object Model) and/or CORBA (Common Object Request Broker Architecture) frameworks.

In this case, we are creating an Application Server that supports COM interface. After reading this, you can

  • Get an idea about Application Servers.
  • Create and use your own COM based Application Servers.
  • Write directly to RESPONSE object from a COM component (Got it? Instead of passing a value back to a variable in ASP to write it to response object, write directly to response object from your component)
  • See how to integrate additional logic (say your existing business COM objects) using our Application Server

Also, if you are the CEO of an IT/Web company, don't forget to read about my ventures in the preface section :-). OOPS, forgot to tell all of you one thing; VOTE for me please, because I took nearly 6-7 hours to write this completely :-) (ofcourse, the brain work is extra.lol.)

Always ur's Anoop, anoopj13@yahoo.com

winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.


Other 12 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/22/2000 10:07:54 PMAuthor

Hello People, You can post your doubts or questions here. Or just send them to anoopj13@yahoo.com , when you need a quick reply. Also, please VOTE for me, if you find this innovative: Your's Anoop..
(If this comment was disrespectful, please report it.)

 
10/22/2000 10:35:51 PMJon

So what it does is allows you to do is create objects compiled in VB and run the functions of the vb code? That iss cool! If I'm wrong correct me!
(If this comment was disrespectful, please report it.)

 
10/22/2000 10:48:38 PMAnoop

Jon, it allows you to use the ASP objects (Response, Request etc) directly from your VB application, to scale your existing business application to multiple levels, and even to create a better application server than Cold Fusion. :-) Regards, Anoop
(If this comment was disrespectful, please report it.)

 
10/22/2000 11:59:20 PMAnoop

Hey ppl, please VOTE for me, na..Atleast that is what you can give in return, for my 7 hr effort :-) lol..
- ur's Anoop
(If this comment was disrespectful, please report it.)

 
10/23/2000 2:22:00 AMOmar

Hi, First let me say thanks for posting this Excellent program. This truly deserves an award. I would also really - really,like to see some more codes like this. Thanks and please post some more.
(If this comment was disrespectful, please report it.)

 
10/23/2000 4:09:27 AMArsalan Aslam

Nice piece of code
(If this comment was disrespectful, please report it.)

 
10/23/2000 8:46:36 AMLarry Stevens

Wow - What a great teacher you are. Thank you for the clear logic that un-muddled what had always been confusing to me in the past. I really apppreciate your hard work.
(If this comment was disrespectful, please report it.)

 
10/23/2000 8:56:31 AMCShellVB

First I will say thanks for the COM code sample there are very few good ones on the Planet. I had one question, Why did you choose to use late binding for the ASP objects in your project? Certainly with an Application Server you would not want to create any slow downs with binding issues..? Just some small feedback from CShellVB. (www.cshellvb.com)
(If this comment was disrespectful, please report it.)

 
10/23/2000 11:46:21 AMAnoop

Hey People, Thank you really for all the appreciation. And well, CShellVB - I also do not support late binding..but in this case, my preference is for understandability :-) .. ur's Anoop
(If this comment was disrespectful, please report it.)

 
10/23/2000 3:08:17 PMAnoop

I feel that a lot of people have doubt about 'Creating an Alias'. Here is it.
An Alias is nothing other than a URL for a mapped directory. In PWS, goto Advanced section, click Add button, and in the Directory textbox, type the directory where the ASP file resides. In the Alias text box, type something (say ). Then take your browser, and type http:///. If you have PWS in your system, you can type http://localhost/.: Regards, Anoop

(If this comment was disrespectful, please report it.)

 
10/25/2000 11:09:24 AMJack

I have been programming for over 3 years now in VB and I have read all the books and this is one of the simplest explinations of a web server app I have seen - you have my vote.
(If this comment was disrespectful, please report it.)

 
10/26/2000 4:33:44 PMvbmaster

With out doubt, this one is the greatest brainstormer I have seen so far in PSC. Really great idea. And thank you sincerely for the time you took for writing this..
(If this comment was disrespectful, please report it.)

 
11/7/2000 4:38:06 AMjpvdm@iafrica.com

Would have like to know how MTS compares to this.
(If this comment was disrespectful, please report it.)

 
11/23/2000 5:31:25 AMErik Forbes -- Mobius-Corp

Commendable! ;) A+, 100%, 5 huge whoppin planets for this guy!

In other words, Very nice work! Easy to understand, VERY well written, and recommended for anyone interested in writing application servers! :) Keep it up Anoop!
(If this comment was disrespectful, please report it.)

 
11/23/2000 8:04:02 AMPaul

Great work anoop...Great Indian Brain!
(If this comment was disrespectful, please report it.)

 
11/24/2000 8:20:30 AMMaximillian

Dear Anoop
(If this comment was disrespectful, please report it.)

 
11/24/2000 8:21:36 AMMaximillian

Well done Anoop!!!
(If this comment was disrespectful, please report it.)

 
3/17/2001 11:48:35 AMBenjo

I'm running a PWS and tried it.

But it gave me this:

Microsoft VBScript runtime error '800a01ad'

ActiveX component can't create object: 'AppServer.Handler'

/banner/Default.asp, line 55

I didn't change anything on the ASP file and I tried running the project file before I typed the URL on my browser and press enter.

When I compiled it, it was an EXE. Do i need to register it as something.

Anyways, I liked it. I understand how it works.
(If this comment was disrespectful, please report it.)

 
2/16/2002 2:49:46 AMTuk

You are D man my man, this is one of the best examples i have seen on the net. 5 2 U!
(If this comment was disrespectful, please report it.)

 
6/13/2002 7:01:53 AMOckert

Great Code and Excellent Comments - Same problem as Benjo (3/17/2001) though:
Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object...
WHAT TO DO, WHAT TO DO ???

(If this comment was disrespectful, please report it.)

 
7/29/2002 8:22:55 PMSunny

Nice Work...Anoop
Hope that u teach us more in future...
(If this comment was disrespectful, please report it.)

 
2/15/2003 8:46:50 PM

runs on the background, but doesn't show up as a form. Platform W2K DC... shows up intermittently on W2K Pro.

(If this comment was disrespectful, please report it.)

 
3/13/2003 4:24:25 PM

I really apreciate the savvy ness in temrs of going for custom build engines, where you have the potential of learning the underlying basic pricnciples. I am looking for a similar solution for a webserver in VB. Can you please give me some tips on this ?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.