(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.

Tags: Fusion Middleware

Similar Questions

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

  • 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

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

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

  • Reading order of the JSM queues

    Hello

    I'm trying to submit the order in OSM osm_ws_request queue directly using Hermes UI, but these orders are not getting picked up by OSM for treatment.

    Please let me know if you have any idea how to proceed.

    Kind regards
    Harman

    Harman salvation;

    Of WebLogic JMS implementation requires you to define special properties of JMS in so he can be recognized as a JMS/WS request. There is an example how to do this in the SDK OSM samples (web_service sample).

    The JMS wlsmimehdrContent_Type header should be set to the following value: text/xml; charset = "UTF-8".
    The JMS URI header should be set to the following value: / osm/wsapi

    After setting the headers above of JMS, OSM should be able to receive your WS/JMS request successfully.

    Kind regards

    Brian.

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

  • 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

  • Files to send to the printer remains in the print queue

    My printer Brother HL-5470DW many years and has worked well as recently as a couple of days. Now start yesterday, everything I send to it (I've tried so far to print from Word, Notepad and Adobe Reader) just sits there in the print queue. (Also, I hear no sound, as if no communication to the printer took place; "I think that I do not usually such a sound, as if the printer wakes just.)

    It has always been possible to click Cancel for work out of the queue (which is what I do to ensure that each test is not blocked by the one who joined the queue before him). But by clicking on restart has not led to a change. No sound. Nothing, as if I had not clicked on it at all.

    I restarted the computer and that did not help. By turning the printer off and on again did not help either. The other printer on my network works, so the problem is specific to this printer. This printer is networked, too, but the network seems to recognize since, when I pull the ethernet cord our back, my computer seems to usually two tones you hear when you unplug a USB device as an external drive, and you hear the other standard two-tone when you plug the power cord back in - even ethernet once the same two-tone means when you plug a USB device.

    Troubleshooting Windows app recognizes a problem, presenting little yellow triangle used with an exclamation mark inside), but can't find anything wrong, despite the announcement of a great many things he checked with the result "there is no Question."

    This must be a common problem? But I have found no solution so far.

    I also opened a trouble with the brother society report on this subject, but they have not responded.

    Thanks for your help.

    I suddenly remembered that I have an account with Geek Squad which entitles to support me on their part so I called them, and the problem is now resolved. As a public service to anyone who is interested, I will present a report which re-start the computer, turning the printer then next turn, and re - installing the printer driver did not help (even if by turning the printer and turn it back on (that is, unplug and plug again at least there the message in the window of the printer to 'Pause' in 'Ready').)

    After these changes, we have reached at least point jobs were sent to the printer (they were no longer in the print queue), but when they got to the printer the results was simply that 'Data' and 'Error' lights came.

    Finally, something else has been tried: taking the paper out of the feeder and everything put back in. There is no reason that I see why this would work, but now all of a sudden he made. He had been without paper jams in this printer for months and months so that should have nothing to do with it!

    Although I don't see the connection, the tech support guy said that it had to do with the configuration of the printer port. And that fits at least with the fact that it is a new computer. According to that is the fact that - once we have solved the problem on this new computer - the old computer could no longer print: actually there now have exactly the same problem the new computer was seen: files sent to the printer simply remain in the print queue.

    If someone saw to offer as to how something so strange by removing the paper and put it back could solve that problem, I would like to know about it. Is there a way that this incident can be changed to a question in a discussion?

    Can anyone enlighten me as to what type of configuration of ports is involved and how you achieved it?

  • Queue: print jobs are automatically send to the printer

    Original title:

    Queue

    I often work on the laptop when I'm not at work.

    My laptop I send jobs to the printer to work. The next day when I turn on the computer in my office, jobs are automatically send to the printer.

    Printer at work has changed to a new one (Minolta) and I can't do this anymore.

    What I can do!

    Thank you

    If you have been sending documents to the specific printer then you should be able to start the computer when you are at work and locate the printer in devices and printers. Right click on the printer and choose to see what's printing. When the print queue is displayed with your documents, choose printer, printer to use online.

    Note that older documents which have kept the printer used previously (Word documents and Excel workbooks are two examples of programs that keep the information on the printer), and then you should make sure that you send the print job to the printer.

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

  • Based on decision of the user XML loading

    Hello-
    I'm working on a Flash project which includes an introductory film, which - done - leads to a 'decision' screen when the user chooses what kind of 'visitor' they are. In other words, an introductory film will play and lead then to a screen with three choices: 'I am this', 'I am this' or 'I am that '.

    No matter what they choose, the region and the graphics they are taken to the is the same (a flash card with content pop ups of reversal). But, depending on what type of user, they have selected in the previous screen, the content will vary slightly on this map. I could have just three scenes for three different users using the same graphics card (but with a different content in each), but this seems like a waste. Is it possible to have the Flash card appear with the appropriate content based on the decision of the user to the previous screen?

    An example would be the following:
    User A look at the introductory movie and decides that they are "A visitor". They click this button and are taken to the Flash card their custom content (if all goes well charged via XML). User B watches the same movie intro, but this time choose 'user B '. They are taken to the same map and area (within the same scene or clip), but contains a slightly different content.

    Any help would be appreciated. Thank you!

    :

Maybe you are looking for