Dynamic creation of the JMS queues

Hello

I understand that it is possible to define queues (and subjects) in configuration appropriate application jms.xml file. However, I suppose it is also possible to dynamically create JMS queues (i.e. at run time).

Could someone point me in the right direction for more information on how I can achieve this? I used have a Oracle 10 g and intend to use Oracle AS JMS.

Thank you very much


Alistair.

Hi Alistair,.

Your options:
(1) JMX Mbeans [http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14432/jmxbrowser.htm]
(2) [http://download.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm] ant tasks

Tags: Oracle

Similar Questions

  • (XML-based) SMS sending to the JMS queue

    Hi gurus,

    How we can publish a text message in the JMS queue using message text option by writing to Java or PL/SQL according to the following XML schema definition:

    <? XML version = "1.0" encoding = "windows-1252"? >

    " < xsd: Schema container = ' http://www.w3.org/2001/XMLSchema "

                xmlns=" http://www.example.org "

    " targetNamespace = ' http://www.example.org "

    elementFormDefault = "qualified" >

    < xsd: element name = "Employee" >

    < xsd: annotation >

    < xsd: documentation >

    An element of the sample

    < / xsd: documentation >

    < / xsd: annotation >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "EmpNo" type = "xsd: Decimal" / >

    < xsd: element name = "EmpName" type = "xsd: String" / >

    < xsd: element name = "Salary" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    My Composite SOA will contain a JMS as a Service exposed adapter.

    Hello

    Please find enclosed the attachment for an example implementation of the Java client code to post the message to a weblogic JMS queue.

    It will be useful.

  • That could limit the number of MDB instances in the JMS queue?

    Hi all, I have an app that publish messages in a JMS queue. In SD in the MDB, I defined the following:

    < wls:ejb - name > VfDataMiner < / wls:ejb - name >
    < wls:message - driven-descriptor >
    < wls:pool >
    < wls:max - beans-in-free-pool > 25 < / wls:max - beans-in-free-pool >
    < wls: initial-beans-in-free-pool > 10 < / wls: initial-beans-in-free-pool >
    < / wls:pool >
    < / wls:message - driven-descriptor >

    My understanding is that this should create up to 25 multilateral development banks to process messages when necessary and that number will fall to 10 if there is no traffic. However, it does not appear so as I saw that 16 consumers at all times.

    At first, I thought it might be that the server is running out of threads to spawn new BMD so I also added the thread pool using the - Dweblogic.threadpool.MinPoolSize = 100 in the start, but it is always showing 16 consumers. I miss any idea what else do you? I use this on WLS 11 g.

    Thanks in advance for the advice/pointers.

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/EJB/message_beans.html

    The number of MDB instances in the free pool is limited by the value of the element of max-beans-in free-pool in memory of weblogic-ejb - jar.xml and available. The value of max-beans-in free-pool is > determined by the following rules, in order of precedence:

    If a custom ExecuteThreadPool is set, the number of threads MDB is identical to the value of ExecuteThreadCount.
    If a WorkManager customized with max-son-constraint is defined, then the number of threads MDB is identical to the value of max-son-stress.
    If the autotune option is disabled, the number of threads MDB is equal to the:
    (ExecuteThreadCount / 2) + 1

    The number of threads MDB is equal to 16 (this is the default).

    If you want more of 16 sons define a handler for a custom job and associate it with the strategy of sending of the mdb.

  • Copy of the JMS queues

    I write Weblogic Integration (WLI) applications. When I deploy these apps I create JMS queues on the server or I get warning messages in the Weblogic console. I have several Weblogic 10.3 servers that I need to deploy these applications WLI too.

    I wonder if there is a way I can copy the contents of the xml files that define the queues JMS from one server to another server? What are the files should be copied? I'm trying to find an easier way to create JMS queues. Create queues in the console can get a lot of time if you have a lot of queues to create.

    Any help is greatly appreciated!

    John

    Hi John,.

    There are several ways to automate the configuration of WebLogic and WebLogic JMS (like all other subsystems WebLogic), can be configured with any of them. Here are a few:

    -Script WLST on-line or off line

    -Program in Java that makes calls to mbean JMX config

    -If the JMS-dest config is absolutely identical, then you can just copy the XML of the JMS module in different areas and then use the console, JMX or WLST to modify the config.xml file to reference it. The module contain config destination, while the config.xml file contains subdeployment, store, and JMS server config.

    When you work with several WebLogic domains, make sure that all domain names are different and all the WebLogic Server names are different (even if the WebLogic servers are in different domains). In addition, in some cases all the JMS server names must be different (even if they are in different domains - apply to the apps feature FAS that use meet cross-domain if I remember correctly).

    Tom

    PS. See also [best practices Configuration JMS | http://download.oracle.com/docs/cd/E15523_01/web.1111/e13738/best_practice.htm#CACJCGHG]

  • Message-Driven beans and the order of the messages in the JMS queues.

    Hi all

    We use Weblogic 10.3.6 and we have a cluster with 2 JMS servers. In our project, it is important to process messages in the order when they arrive in the queues.

    Our question is simple enough, the fact that Message-Driven Beans (of the sort that take up messages in parallel) follow the order of the messages? Or do we need to configure something to do this.

    Thank you!

    According to the oracle documentation:

    With the help of unit-of-Order with Destinations spread

    As already mentioned in the Message of treatment according to the specification of JMS, Service of Message in Java specifications (to http://www.oracle.com/technetwork/java/jms/index.html ) doesn't guarantee no message ordered delivery when applications use distributed queues. WebLogic JMS redirects messages with the same disorder unit and have a target distributed to the same distributed destination member. The Member is chosen by unit of the order of the destination configuration:

    You can also

    If you distribute, you can use control unit andmax-beans-in-free-pool:

    http://docs.Oracle.com/CD/E23943_01/Web.1111/e13814/mdbtuning.htm#BABBEFCA

    More information here:

    Using Message unit-of-Order - 11g Release 1 (10.3.6)

    Tuning Message-Driven Beans - 11g Release 1 (10.3.6)

    WebLogic Server (WLS) JMS mapping control unit works with uniform distribution Destinations (Doc ID 1310795.1)

    Best regards

    Luz

  • Dynamic creation of the viariable

    Can I TS dynamically (API) create any variable (including containers and tables)?

    Yep,

    In the meantime, I found the right API command:. () SetPropertyObject

    THX

  • Issue, while reading the file data from a JMS queue

    Hello

    I'm trying a simple case to receive the XML of the JMS queue and inside BPEL use Assign activity to read data in a temporary variable to check the file from the JMS queue. I do the archive file name, CHRAPcXMLInvoices_DUNS_XXXXXXX_datestamp.dat, XXXXXX as the mapping of the identity of the XML from the JMS queue. Some reasons is not mapping... Can someone help me on this please? I stuck here because my final requirement was to insert the data from the XML file in a custom table, but because of this, it fails saying "can not insert a null" which means that some how he does not read the data...

    I enclose the screen... Please help...

    Hello

    I would try to replicate the same at my end, but you can do the following to me.

    You could manually put the message ("but add xmlns ="http://www.example.org" in cXML item payloadID") in the JMS and test it.

    For Ex:

    " xmlns ="http://www.example.org">"

    The XML message is clearly the namespace XSD lacks. The BPEL is looking in the correct namespace (xmlns:ns3 ="http://www.example.org" ") of the XML message, but as space of names are not added to the incoming message sound throw an exception.

    So, try to add the namespace to the XML message and publish manually in the JMS queue to start the process.

  • JMS queue

    Hello

    I read an xml file and pushed to the JMS queue successfully.
    Now, I need to read it and place it in another location.
    Pls guide me on this.

    You can create a proxy service with JMS as Protocol and transport likewise, Endpoint URI configuration: jms: / /:/ and so on.

    Kind regards!

  • Problem in the JMS Quota

    Hello

    We got a scenario in which we stop accepting messages from the producer if the JMS queue quota is full. (for example. Configured for the queue quota is 10). While publish us messages from JMS queue in OSB when the quota is full, we need to catch the error of the weblogic and had to turn and must send the response to requests citing that the size of the queue is full.


    Citing the queue of proxy of the OSB and the quota is reached, OSB throws no error even we have set up the mechanism in part necessary exceptions Management error Manager. But when we try to introduce messages directly running the business of producer service (configure JMS) when the quota is full his spear an error response: (the call resulted in an error: weblogic.messaging.kernel.QuotaException: Quota blocking the time limit and no quota available.) But when the call to the proxy service is not to throw any error.


    Thanks in advance

    Can try you a Service call for business, instead of post?

  • Hi friends this is the code for the dynamic creation of user in plsql, but these statements are not run if pls help for this error

    DECLARE

    n NUMBER.

    BEGIN

    n: = 1;

    WHILE (n < = 10)

    LOOP

    CREATE a user EM | IDENTIFIED BY KLU n;

    SESSION CREATION GRANT, GRANT ANY PRIVILEGE TO EM. n;

    COMMIT;

    n: = n + 1;

    END LOOP;

    END;

    Hello

    Here is the dynamic creation of user query and giving grants to the user,.

    DECLARE

    n NUMBER.

    cr_user VARCHAR2 (300);

    gr_user VARCHAR2 (300);

    BEGIN

    n: = 1;

    While (n<=>

    LOOP

    cr_user: = 'CREATE user EM | n | "IDENTIFIED BY KLU";

    gr_user: = "GRANT CREATE SESSION, GRANT ANY PRIVILEGE to EM '. n | '';

    EXECUTE IMMEDIATE cr_user;

    EXECUTE IMMEDIATE gr_user;

    n: = n + 1;

    END LOOP;

    END;

    Edited: Removed when OTHER exceptions to Code.

    See you soon!

  • JMS: How to set the time-out to a JMS queue in the weblogic admin conso

    Hello


    I need to fix a JMS queue for 1 month expiration date, which means I want messages to be persisted in the queue for 1 month. How I put it to the queue in the weblogic administration console.

    Thank you
    Kalapana.

    Go to the queue on the weblogic Admin Console. Select the Exceptions tab. There is an option of substitution of Time-to-live. You can set the length of your message there. This will overrirde life defined by the producer.

  • How to manually publish the data in a JMS queue

    Hi all

    We have a weblogic JMS queue and an OSB acting as a consumer.
    Is it possible to display the results (xml entry) in this queue manually without creating a producer.

    TIA,
    Vishal

    Open the console server WL.
    Go to the JMS Module
    Click Queue--> Monitoring--> select the checkbox of the queue and click Show messages--> click on the NEW button... Then, you can send a message to the queue.

  • cannot resolve the new jms queue.

    Hi all, I'm new to weblogic. I try with weblogic JMS weblogic example queue, it works very well. Can I send and receive from the queue (tail Original provided for example weblogic called "exampleQueue").
    But when I try to create a new queue (exampleQueue2) and use the source of the example just rename the name of queue, it throws the following exception. Can someone tell me what's going wrong with the queue, I created.



    Running on the local machine of weblogic.

    Exception in thread "main" javax.naming.NameNotFoundException: unable to resolve 'weblogic.examples.jms.exampleQueue2 '. Solved "weblogic.examples.jms" [root exception is javax.naming.NameNotFoundException: could not resolve "weblogic.examples.jms.exampleQueue2".] Fixed the "weblogic.examples.jms"]; other name 'exampleQueue2 '.
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup (unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at examples.jms.queue.QueueSend.init(QueueSend.java:55)
    at examples.jms.queue.QueueSend.main(QueueSend.java:93)
    Caused by: javax.naming.NameNotFoundException: unable to resolve 'weblogic.examples.jms.exampleQueue2 '. "Weblogic.examples.jms" solved
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)



    Run in a different machine.

    Exception in thread "main" javax.naming.NameNotFoundException: Exception in research. : ' weblogic/examples/jms/exampleQueue2' was not found. [Root exception is weblogic.corba.cos.naming.NamingContextAnyPackage.NotFound: IDL:weblogic/corba/cos/naming/NamingContextAny/NotFound:1.0]
    at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:65)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:230)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:168)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at examples.jms.queue.QueueSend.init(QueueSend.java:55)
    at examples.jms.queue.QueueSend.main(QueueSend.java:93)
    Caused by: weblogic.corba.cos.naming.NamingContextAnyPackage.NotFound: IDL:weblogic/corba/cos/naming/NamingContextAny/NotFound:1.0
    at weblogic.corba.cos.naming.NamingContextAnyPackage.NotFoundHelper.read(NotFoundHelper.java:72)
    at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:87)
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:208)
    ... 4 more


    Thanks in advance.

    Happy to help :)

    The jndi-local name hides under the section advanced in the console Services/weblogic/JMS Modules / [your Module] / General

    I hope that answers your question, mate!
    See you soon,.
    -Adrian

  • Insert the dynamic creation of statements

    Hello

    My version of db is: 11g Enterprise edition 11.2.0.3.0

    I am trying to create queries dynamically insert using the code below:

    declare

    v_cl varchar2 (4000);

    v_tn1 varchar2 (30): = 'T1 ';

    v_tn2 varchar2 (30): = 'T2 ';

    v_vl varchar2 (4000);

    v_id number 4: = 900;

    v_il varchar2 (4000);

    v_count number (3): = 1;

    cursor c1 is select column_name from all_tab_columns where table_name = v_tn1 order of column_id.

    cursor c2 is select column_name user_tab_columns where table_name = v_tn2;

    Start

    I'm looping c1

    v_cl: = v_cl | «, » || i.column_name;

    end loop;

    v_cl: = ltrim (v_cl, ',');

    v_il: = ' insert into ' |. ' v_tn1 | ' ('| v_cl |') values (';)

    for j in loop c2

    v_vl: = v_vl | Chr (10) | v_id | «, » || v_count | «, » || j.column_name |') ' ;

    v_count: = v_count + 1;

    v_il: = v_il | v_vl;

    end loop;

    dbms_output.put_line (v_il);

    end;

    The problem is with this v_il statement: = v_il | v_vl

    The desired output is to get

    insert into tn1 values (...)

    insert into tn1 values (...)

    .

    .

    But I'm getting

    insert into values tn1 (insert values (...) tn1)

    How to change the code above to get the desired result.

    Also, I'm getting ORA-06502: PL/SQL: digital or value error: character string buffer too small when I run dbms_out.put_line

    Please advice.

    I did a minor change, and it seems to work now.

    What I did:

    Declared all the variable as a CLOB

    And modified

    v_vl: = v_vl | Chr (10) | v_il | v_id | «, » || v_count | «, »...

    v_count: = v_count + 1;

    end loop;

    dbms_output.put_line (v_vl);

    The above change worked. Thank you.

  • Dynamic creation of components on the page giving problems

    Hello

    We create a number of custom components to interface dynamic user on the page, according to the information, we know that when running (for some reason, we could simply not create them statically and hide and show them dynamically: Please don't suggest that you do this at the moment).

    Custom components are derived from elements of the ADF, so, for example:
    public class MyRichInputText extends RichInputText implements Serializable {
    }
    They are created dynamically in a bean that is associated with a button and used for the first time. In other words, once wle browse page, for example via tabs, or fragments, still get us an exception "Session timeout". Here is the log of the server:

    < error > < org.apache.myfaces.trinidadinternal.application.StateManagerImpl > < BEA-000000 >
    java.lang.InstantiationException: mycompany.lib.MyRichInputText
    at java.lang.Class.newInstance0(Class.java:340)
    ...
    < WARNING > < oracle.adfinternal.view.faces.lifecycle.LifecycleImpl > < BEA-000000 > * < ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase RENDER_RESPONSE 6 *.
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:978)
    ...
    javax.faces.application.ViewExpiredException: viewId: / myPage - ADF_FACES-30107: the page view state has expired.  Reload the page.

    In addition, just for your knowledge, we use javax.faces.STATE_SAVING_METHOD = "customer" in the web.xml file. Note that MyRichInputText is already Serializable.

    You have a solution?

    Yes.

    Have you read http://docs.oracle.com/cd/E21764_01/web.1111/b31973/ad_custom.htm

    John

Maybe you are looking for

  • Continual Promp for old Apple ID password

    (this is not a question specific to the iPhone - this is my Apple ID - but Apple did not see fit to create a community of Apple ID, apparently, even if it's a common theme across all Apple products) So... is my story, I'm using my iPhone 6 + and iPad

  • AFTER RE-INSTALLING VISTA, COULDN'T READ MY PRODUCT KEY

    I HAD TO REINSTALL MY VISTA SO COULD NOT READ MY PRODUCT KEY, WHAT CAN I DO?

  • frequently remembering user passwords

    Hello.  I hope it's an easy question.  How to activate the automatic password and user don't forget to switch on?  I want Windows to remember my user name and password automatically when I type this so that I don't have to remember all the time.  App

  • CAVEAT! 10.3.1 project corruption issue SDK

    We discovered an issue where install the 10.3.1 beta BlackBerry SDK in BlackBerry Momentics 2.1.0 may cause corruption of project.  Please do not install the beta version 10.3.1 SDK in your current Momentics 2.1 installation. You can Download Momenti

  • Printer does not appear in "devices and printers".

    I recently "upgraded" to Windows 8, after that my laptop was stolen and have spent hours trying to restore comparable to my new functionality. My workhorse printer, I've used extensively with Windows 7, is a EPSON Artisan 1430 I have correctly instal