Durga
Durga

Reputation: 565

How to call one war file urls in another war file web.xml in java

I am new to java development. In my project i have multiple .ear files with war files. For example i have first.ear have config.war and transactions.war, and second.ear have employee.war,server.war and webconfig.war files.

Now my requirement is config.war and transactions.war file have some URLs, that URLs i want to access inside of webconfig project web.xml file by using filters or any other.

Is it possible?

Upvotes: 0

Views: 794

Answers (1)

Thomas Bitonti
Thomas Bitonti

Reputation: 1234

(Note: This question is about very basic servlet functionality. For questions at this level, I'd start one of many servlet tutorials, with a focus on request forwarding and servlet filters.)

This may provide an answer:

Forward a servlet request to another server

For a very detailed design pattern perspective, try:

Design Patterns web based applications

This introduces servlet filters:

Difference between request dispatcher forward and servlet chaining

This provides some practical examples:

How to use a servlet filter in Java to change an incoming servlet request url?

Upvotes: 0

Related Questions