Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
Ron McLeod
Junilu Lacar
Liutauras Vilda
Sheriffs:
Paul Clapham
Jeanne Boyarsky
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Piet Souris
Carey Brown
Bartenders:
Jesse Duncan
Frits Walraven
Mikalai Zaikin
Forum:
Servlets
Invoke a class from different context
Saravanan Vijayappan
Ranch Hand
Posts: 47
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello
I have 2
servlet
application running in my
tomcat
, let's say App1 and App2. I need to call CacheRefresh class in App1 from CachCallerClass from App2. How can i do this ?
Thanks
Cheers,<br />Sarav
Bear Bibeault
Sheriff
Posts: 67645
173
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You don't. Either include the class in both web apps, or expose the functionality via web service.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Vinod K Singh
Ranch Hand
Posts: 198
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Alternatively you can expose that as a plain servlet as well and invoke that using URLConnection.
My Blog
Saravanan Vijayappan
Ranch Hand
Posts: 47
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have chosen to use URL connection. Thank you!
Cheers,<br />Sarav
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
access one EAR from another EAR
(Web Archieve) war to war communication
JBoss in Action: different class loaders for each web application
Logging out from muliple applications
Session is not invalidated
More...