File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Communication Between 2 Action Classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Communication Between 2 Action Classes" Watch "Communication Between 2 Action Classes" New topic

Communication Between 2 Action Classes

Naresh Shaan

Joined: Mar 18, 2006
Posts: 22

can two action classes on two different application server communicate with each other??

just like two servlets on two different applications communicate using httpurlconnection and servlet inputstream,

i tried to use the same API between two action classes on different application server,

i am not getting any exception in identifying the second action class, but when i open servlet input stream and try to read bytes, i get nothing.

has anyone tried this sort of communication before???


Naresh G L

"The greatest pleasure in life is doing what people say you cannot do." - Walter Bagehot
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I haven't tried this type of communication between action classes. If this were my application, I'd extract the logic from Action B and turn it into a web service. I'd then access the web service from Action A.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Communication Between 2 Action Classes
It's not a secret anymore!