Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7559847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:44:28+00:00 2026-05-30T12:44:28+00:00

I testing setting up a web logic server which can use an Oracle AQ

  • 0

I testing setting up a web logic server which can use an Oracle AQ JMS implementation, but for some reason my WLS connection pool cannot see the queue I have created, the only way I can see the find the queue in web logic is to make the web logic datasource connection pool use the credentials of the DB user who created the queue.

I have done the following as admin_user:

Created a Queue Table

EXECUTE DBMS_AQADM.CREATE_QUEUE_TABLE(queue_table=>'testqueue_table',queue_payload_type=>'sys.aq$_jms_text_message');

Created a Queue

EXECUTE dbms_aqadm.create_queue(queue_name=>'testqueue', queue_table=>'testqueue_table');

Started the Queue

EXECUTE dbms_aqadm.start_queue(queue_name=>'testqueue');

Granted the CPOOL user permissions

GRANT aq_user_role TO cpool;
EXECUTE DBMS_AQADM.grant_queue_privilege(privilege=>'ALL', queue_name=>'adming_user.testqueue', grantee=>'cpool',grant_option=>FALSE);

Set up 2 JDBC DataSources in Web Logic
I set up 2 datasources in web logic which connect to my database, both are identical except that one uses the cpool user and the other uses admin_user

Create JMS Modules
Now I register a jms module with the JDBC DataSources and wire up the local and foreign JDNI names.

If I use the DataSource which uses admin_user everything works fine and my deployed application can find queue in JNDI.

Problem
If I use the data source which uses cpool then it fails finds the connection pool in JNDI but never the Queue (despite the fact it worked for admin_user). I get the following error from WL:

Related cause:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testqueue': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Cannot resolve name:Queues/TESTQUEUE

Does anyone know why WL cannot resolve the JNDI name for the queue unless I use the admin_user account for my datasource.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:44:29+00:00Added an answer on May 30, 2026 at 12:44 pm

    The answer was that my connection pool user was missing some grants, the following where required:

    GRANT EXECUTE on DBMS_AQ to <CPOOL>;
    GRANT EXECUTE on DBMS_AQADM to <CPOOL>;
    GRANT aq_user_role to <CPOOL>;
    

    Make sure the user who creates the destination grants access to the connection pool user:

    `EXECUTE DBMS_AQADM.grant_queue_privilege(privilege=>'ALL', queue_name=>'<SCHEMAOWNER>.docprod_queue', grantee=>'<CPOOL>',grant_option=>FALSE);`
    

    Finally in Web Logic make sure to reference the destination by their full foreign JNDI name:

    Queues/<SCHEMA OWNER>.<DESTINATION_NAME>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking at setting up unit tests and integration testing, but I've run into
I am testing WebLogic 10.3.1 JMS, but there has a problem. My Testing step:
we are setting up new QE testing server. I guess host OS will be
I had to disable cookies for some testing in a web application. now for
I'm setting up some Selenium tests for an internal web app and looking for
The classic problem of testing and setting individual bits in an integer in C
Unit testing and ASP.NET web applications are an ambiguous point in my group. More
Unit testing sounds great to me, but I'm not sure I should spend any
I'm setting up to cron a web scraping job, using xvfb, firefox, and watir
I am building a Web application. When I am testing it on a simulator,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.