File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Websphere 6.x.2.x - Can we keep web.xml outside Enterprise Application EAR file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere 6.x.2.x - Can we keep web.xml outside Enterprise Application EAR file." Watch "Websphere 6.x.2.x - Can we keep web.xml outside Enterprise Application EAR file." New topic
Author

Websphere 6.x.2.x - Can we keep web.xml outside Enterprise Application EAR file.

Aakash Parashar
Ranch Hand

Joined: Jul 25, 2005
Posts: 123

Hi All,

We have three servers and client side. Dev, Pre and PROD. Dev and PRE are similar but PROD is production server having security layer. To enforce security we are using Filters to rout all the requests to a specific Servlet Filter, then to actual application. So, We need web.xml with entries of Filter for PROD server but we don't need Filter entries in web.xml for PRE and UAT. Is there any way to keep the web.xml on server like shared library feature in WAS6.0.2.x server and refer it from application EAR?


Your's Aakash
SCJP 1.4 96%, SCBCD 1.3 94%, http://java-application-programming.blogspot.in
Aakash Parashar
Ranch Hand

Joined: Jul 25, 2005
Posts: 123

Everybody,

I was thinking of Having a filter to branch the request to lower level filters depending upon some condition.

E.g Filter f1, Filter f2 and Filter f3.

in doFilter() method of f1

if(production){
f2.doFilter(req, res);
}else{
f2.doFilter(req, res);
}

Is that possible?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

I think you have your solution backwards. Your test systems should match your production system as closely as possible; having different code in test versus production means that some production code might not be tested. So in particular your test systems should also have the security layer in place.
Aakash Parashar
Ranch Hand

Joined: Jul 25, 2005
Posts: 123

Hi Paul, Thanks for the advice. The same I said to the guy sitting at client side. But problem is that client does not want to add security layer at DEV environment.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

Sorry to hear about your client. You probably made a mistake when you allowed your client to dictate that sort of thing to you. So I would suggest setting up a trivial security layer in the test version, one which essentially works like the production version but allows everybody to do everything. Don't forget to mention to your client that the security layer will be untested and that you will accept no responsibility for any errors in that layer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere 6.x.2.x - Can we keep web.xml outside Enterprise Application EAR file.