From: Greg W. <gr...@mo...> - 2005-07-26 20:00:15
|
Another way is for the application to pass an API object to the servlet via a context attribute. The servlet can get the object during init and then directly call it. cheers Martin Roos wrote: > usually the magic thing about webapps and servlets is that they are > pretty much unaware of the containers classes and mechanisms, that makes > them universal and easilly transportable from one container to another > if such change is needed. > > generally u can go 3 ways : > a) simple approach to some static class in the general classloader, this > will make your program really simple just obey the rules of classloaders > and use a singleton model, you'll be fine this way if you stay within > one machine > b) if you are planning to go clustered, use sockets and interact through > them, this way you can switch between front/backends if your application > grows too large and needs load balanceing > c) go the remote way, meaning skeletons, stubs etc. just look up the > remote api ... this probably the hardest way for new programmers and > therefore i suggest u dont use it unless u know what u are doing > > you probably have in mind the a way, i suggest u create some abstraction > layer between the servlet/webapp and the other program you use, this way > you can easilly switch to b or c if you need to > > martin > > > bruce cranford wrote: > >> I have an embedded jetty running in my application. >> Is there a straightforward or "standard" way to make a running servlet >> or webapp communicate with >> the core application? >> >> Thanks for any help. >> >> Bruce >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> _______________________________________________ >> Jetty-support mailing list >> Jet...@li... >> https://lists.sourceforge.net/lists/listinfo/jetty-support >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support > |