Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rusty Downey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is this queue ? A MQ queue ? A thread queue ?
 
Rusty Downey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its a thread queue (if thats is the correct term). the one sometimes having the stucked thread.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic