I do not want to implement as a Servlet filter in a webapp. which is intrusive to the webapp.
I want this to work as an application server plugin which will intercept
all httprequests, get the required information, and then disptach to other webapps deployed in the application server.
I am thinking of this way :Option 1
a. Develop a servlet and some related classes and package as a "PluginWebApp".
b. Configure application server to map all /* http requests to come to this "PluginWebApp".. can i configure like this ?
c. In the servlet, i would retrive the information from HttpRequest object and then dispatch the request to the URL (i.e. as found in the header of the HttpRequest.
Please let me know
1. will this option 1 work ?
2. any other better options ?
3. Does WebSphere provides any API, which will allow me to write a plugin.?
The appserver would pass me the Httprequest object..and provides APIs to forward the Httprequest to the appropriate Web Application deployed in the appserver.
i do not want to parse raw Httprequests.. I would want to use HttpRequest objects provided by the appserver..
Appreciate if anybody of you can provide me any clues, tips, solutions, pointers regarding this problem.
regards
Rajesh
I'm not even sure your suggestion would work.
That's ridiculous. This is exactly what filters are intended for.
Rajesh,
Sounds like an interesting project. I'd suggest you read the J2EE web
container spec.
And then reinvent it all.
Ken
1. Yes
2. Yes
3. Yes
as far as number 2 goes, why not use IHS and Websphere plugin? That's
a pretty standard nTier topology... At a very high-level, Folks
generally put webservers in front of Appsevers, webservers just
dispatches to app server... The websphere plugin also does load-
balancing for you, if clustering WAS...
> Rajesh,
> Sounds like an interesting project. I'd suggest you read the J2EE web
> container spec.
>
> And then reinvent it all.
>
> Ken
:-)
We have a problem trying tu run tivoli performace viewer on a cluster enviromment. Here I add the otuput from de command line, and the error from it
/was/WebSphere/AppServer/bin >. ./tperfviewer.sh debug host 8878 SOAP
[RAGui] Debug = true; version = WAS50
[RAGui] Using the command line parameters host:8878:SOAP
[RAGui] Connected!
java.lang.NullPointerException
at com.ibm.ws.pmi.perfServer.CollectorJMX.listNodes(CollectorJMX.java:201)
at com.ibm.ws.pmi.perfServer.DataCache.listNodes(DataCache.java:136)
at com.ibm.websphere.pmi.client.PmiClient.listNodes(PmiClient.java:619)
at com.ibm.websphere.pmi.ra.value.RAClientImpl.listChildren(RAClientImpl.java:211)
at com.ibm.websphere.pmi.ra.value.RAClientImpl.explore(RAClientImpl.java:229)
at com.ibm.websphere.pmi.ra.value.RAGroupNode.explore(RAGroupNode.java:298)
at com.ibm.websphere.pmi.ra.view.RAGui.connectToWAS(RAGui.java:588)
at com.ibm.websphere.pmi.ra.view.RAGui.main(RAGui.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
ERROR: no node in the collector
[PmiClient] ERROR: no node from listNodes()
[RAClientImpl] No child PDs for group: WebSphere Administrative Domain
[RAUtils] getProcessType(): Detected <NodeAgent> on host:8878:SOAP
[RAGui] Checking if PMI Service is enabled..
[ClientRuleDriver] setting EngineParameters from ruleLookup
Where host is the name of the Deployment manager and the port is the port of it. I have security enable, and I have correctly set the %CLIENTSOAP% and
%CLIENTSAS% properties. The thing is that I'm not able to see the nodes from the tree view. We are runnig Websphere Network Deployment and Base 5.1.0, and I have activated performance monitoring services on all the servers and nodeagents.
I would appreciate any help.
Thanks in advanced
Hernan.
Ken
HttpSession sharing on websphere:
http://www.redbooks.ibm.com/abstracts/tips0215.html?Open
DistributedMap cache:
My requirements are to share user information between two applications... Not the same as yours.
Never mind, Aferrer. Still i can keep note of your solution when i require for such requirement. THanks for taking time to look at my problem.
cheers
rajesh