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]

Tags: Fusion Middleware

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.

  • 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

  • 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

  • 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?

  • 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

  • the printer queue

    Bought a new copy and the old does not work. Have documents in the print queue for the old printer that I need to print, but can't figure out how to transfer those to the print queue of the printer?

    Ok. you gave all the info I requested. All we need to do is change the printer driver and port of the printer icon F4180 for the corresponding parameters of the C6380.

    To do this, open the Printers folder. Right-click on the PS C6300 series printer icon, select "run as administrator '(if available) and then click on 'Properties'." Click the Ports tab and note the FULL NAME of the port currently highlighted and ticked. It would generally be USB002 in your case. Close the Properties window.

    Now, open the Properties window for the series the same way F4100 printer, but now, click on the "Advanced" tab, you should see the driver in a drop-down list. Change DJ F4100 to PS C6300. no go to the Ports tab and change the port that you noted down earlier. Click apply, and it should start printing. If it isn't, then restart your laptop.

  • Copy of the Batch (.bat) file to the Start Menu for all users User/Each

    Created a lot on each machine (file1.bat) leader to create a queue (file2.bat) of lot for a launch of a page to start windows.

    This is the content of file1.bat:

    off @echo

    @echo > C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\file2.bat «»
    @echo start http://www.MSN.com/ > C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\file2.bat

    Expected result is to copy the file2.bat to the start of each user profile.  However, the file2.bat is not copied to the Startup Windows 7, 8, 10 folder after the test.

    However, it will work in file1.bat:

    off @echo

    @echo>"C:\Testing\file2.bat
    @echo start http://www.MSN.com/ > C:\Testing\file2.bat

    I have not the network joins a domain.  I need to send the file1.bat to all staff.  I intend to deploy to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup.

    Thanks in advance to all.  Any help is appreciated.

    To run a command as Administrator file, you must click on it & select run as administrator.  Despite being connected with an Admin-level account, individual actions like yours needs as the run as Admin permission.  This is the way Windows works.

    You cannot add anything in a batch file to run as an administrator.

    You will see the system's responses to your batch file by adding a last line containing just the word break [test]

    - - - - - - - - - - - - - - - - - - -

    "File2.bat is to launch a web page which start machine"-Yes, I understand that. ""  But using a batch file to do this isn't better than just sending them the URL shortcut to the Web page instead.

    - - - - - - - - - - - - - - - - - - -

    "Wish only to send the file1.bat for users" - you must give them instructions to run as admin.  Since the instructions are necessary in all cases, then you might as well keep it simple by sending them a shortcut in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup folder and url of msn [shortcut].  In your email, you can tell them to use the first shortcut [Startup folder] to get to the good copy of place and then * the second [msn url] in there, giving approval to the Admin when / if * it is called for.

    Some target computers may have lower security settings [settings "UAC"] meaning permission Admin is not necessary, but since you do not know that in advance, you will have to warn that it may be necessary.

    If there are multiple users on each computer only one of them has to do this on each machine.  You must choose a user who is either an Admin user who knows the password for this computer.  If you ask each individual user to do this, then only the first will be something to see; others may follow your instructions, but they will see that it has already been done and he can stop then.

    - - - - - - - - - - - - - - - - - - -

    It is difficult to tell many users on many different computers to do something.  Some will ignore your instructions & do nothing.  Some will try to comply, but will make mistakes.  Some will do what you want.  You won't know the results even if you ask them to email you back to let you know.

    Denis

  • Printing win 7 guest, the printer queue maintains a loop and increases the size of the file

    Hi all

    That are running Windows 7 enterprise and on another professional machine, same results:

    I share a "laser" on the USB printer, the printer works very well under windows prgms...  (all as administrator)

    Open CMD window:

    "net use LPT2: \\hp1\laser / persistent: Yes" command complete and looks good in "Net view \\hp1".

    Now, I open the print queue window and try printing a text file:

    "print test.txt > lpt2" command appears to complete.  (Same results for copy, etc.)

    I now see the file appear in the print queue, flashing, saying: rolling/printing, repeating & loop, and each Flash increases the size of the file!

    I tried to change the Port LPT1 and 3

    Nothing prints, because I have to stop the spooler, delete the file, start the spooler to clear.

    What happens on two different machines, I'm totally stuck!

    Help appreciated!

    Hello Stan,

    Thank you for visiting the Microsoft Community Forum.

    The question you asked is more complex than what is generally answered in the Microsoft Community Forums. We have a support forum dedicated to complex issues. I suggest you to send your query on Microsoft TechNet forum. You can get more effective suggestions and adapted by experts familiar with this topic. Your understanding is appreciated.

    Here is the link:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itprovirt

    Hope this information is useful. Feel free to write us again to the case where you are facing in the future any other problem with Windows. We will be happy to help you.

  • Integrate CEP with weblogic JMS queue

    Hi guys,.

    I am trying to send data of CEP to the of Weblogic JMS queue, but I get the error message


    Error:

    org.springframework.beans.FatalBeanException: error initializing the context lifecycle; nested exception is java.lang.IllegalArgumentException: failed to find JNDI for jms/CEP_Q1 of the t3://10.80.4.206:7001 provider

    at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:146)

    to org.springframework.context.event.SimpleApplicationEventMulticaster$ 1.run(SimpleApplicationEventMulticaster.java:79)

    at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)

    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)

    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)

    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)

    at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)

    to org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$ 4.run(AbstractDelegatedExecutionApplicationContext.java:358)

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

    to org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$ CompleteRefreshTask.run (DependencyWaiterApplicationContextExecutor.java:139)

    at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)

    to weblogic.work.commonj.CommonjWorkManagerImpl$ WorkWithListener.run (CommonjWorkManagerImpl.java:204)

    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:545)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    <jms-adapter>
      <name>CreditCardJMSOutboundAdapter</name>
      <event-type>CreditCardEvent</event-type>
      <jndi-provider-url>t3://10.80.4.206:7001</jndi-provider-url>
      <destination-jndi-name>jms/CEP_Q1</destination-jndi-name>
      <user>admin</user>
      <password>welcome1</password>
      </jms-adapter>
    

    In the weblogic server:

    The JMS adapter resources outgoing connection JNDI adapter: eis/queue / CEP

    ConnectionFactoryLocation: jms/OCEP_CF

    Connection factory JNDI name: jms/OCEP_CF

    JNDI queue name: jms/CEP_Q1


    Advice me please.


    Thank you

    Yatan

    Hi guys, this solved, the problem was that I was using the wrong port of JNDI, my queue was targeting the soa-server1 on 8001.  correct is t3://10.80.4.206:8001

Maybe you are looking for