0

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?

Thomas Bitonti
  • 1,179
  • 7
  • 14
Durga
  • 545
  • 7
  • 21
  • 39

1 Answers1

0

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

Thomas Bitonti
  • 1,179
  • 7
  • 14