This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply 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: 6588
    
    1

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


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
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: 6588
    
    1

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to redirect request to a new queue based on url-pattern
 
Similar Threads
Can't replicate session on clustered weblogic
wsdd urgent help
how to set domain namin on jboss as 4.0.5
The requested resource is not available.
wsdd urgent help Web Services