>>> Mark de Lange <[EMAIL PROTECTED]> 7/9/99 1:18:17 PM >>>
>The problem is that I don't know where to run the customer,
>basket and product objects. One possibility is to run them
>in de Java Virtual Machine of the HTTP-server. But how can
>I create and manage these objects without using a servlet?
> For example, when the HTTP-server starts, I want to create
> the product-instances to build the initial product-catalog.
method 1:
- have the servlet autoloaded by the web server's servlet engine
- use the servlet's init() method to ensure your business objects are
instantiated
method 2:
- use static initialisation code to instantiate an object manager
which will instantiate your objects
>Another way is to run these objects in a Java application
>and let the servlets communicate with this application
>using RMI, but I expect performance problems using this method.
Lots of people might disagree but I think you're right here. Having
an extra network connection and protocol stack can only get in the
way.
If you need such things - fine, if you don't ditch it.
Nic Ferrier
Tapsell-Ferrier Ltd
www.tapsellferrier.co.uk
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html