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
Terms of Agreement:
By using this article, you agree to the following terms...
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.
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.
You may link to this article from another website, but ONLY if it is not wrapped in a frame.
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.)
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:
Re-scan downloaded files using your personal virus checker before using it.
NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
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...
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.
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.
You may link to this article from another website, but ONLY if it is not wrapped in a frame.
You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)