Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic