aspose file tools*
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
Author

Communication Between 2 Action Classes

Naresh Shaan
Greenhorn

Joined: Mar 18, 2006
Posts: 22
hi,

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???

thanks,


Regards
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.


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Communication Between 2 Action Classes