File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes How to redirect request to a new queue based on url-pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to redirect request to a new queue based on url-pattern" Watch "How to redirect request to a new queue based on url-pattern" New topic
Author

How to redirect request to a new queue based on url-pattern

Rusty Downey
Greenhorn

Joined: Feb 10, 2010
Posts: 2
Hi Everyone,

I need someone's help about redirecting request to a new queue I've created. basically, I need to redirect all the request when I access the url with the word aportal.portal. Here is the current working version of my web.xml:

<servlet>
<servlet-name>AppManagerServlet</servlet-name>
<servlet-class>com.bea.netuix.servlets.manager.PortalServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AppManagerServlet</servlet-name>
<url-pattern>/appmanager/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AppManagerServlet</servlet-name>
<url-pattern>*.portion</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AppManagerServlet</servlet-name>
<url-pattern>*.portal</url-pattern>
</servlet-mapping>


However, I've tried to add the following codes to my web.xml and now I can't access the web page (error 404) and it doesn't hit the new queue I've created:

<servlet>
<servlet-name>AAppManagerServlet</servlet-name>
<servlet-class>com.bea.netuix.servlets.manager.PortalServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>wl-dispatch-policy</param-name>
<param-value>AQueue</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>AAppManagerServlet</servlet-name>
<url-pattern>*aportal.portal*</url-pattern>
</servlet-mapping>

Apologies because I'm not that familiar with this. YOur help is gladly appreciated.
I am deploying the application on WebLogic 8.1. and I can usually access the application through http://<server>:<port>/web/aportal.portal and http://<server>:<port>/web/bportal.portal but i just like to redirect all the url access from aportal.portal to the new Queue I've created through WebLogic console which is AQueue.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

What is this queue ? A MQ queue ? A thread queue ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Rusty Downey
Greenhorn

Joined: Feb 10, 2010
Posts: 2
its a thread queue (if thats is the correct term). the one sometimes having the stucked thread.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

wl-dispatch-policy


ahh yes. Since WL 9 there is no specific thread queue.

To check if your requests are being redirected to this queue, check the performance of this queue and how many threads are allocated. That will give you an idea if your config works
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to redirect request to a new queue based on url-pattern
 
Similar Threads
Can't replicate session on clustered weblogic
The requested resource is not available.
how to set domain namin on jboss as 4.0.5
wsdd urgent help
wsdd urgent help Web Services