ALDSP 3.2 - How to create JMS message from ALDSP

Is there a way to write a jms message from ALDSP?
I want to be able to perform database updates to a database and also write a message to queue in a transaction.
Thanks

As per my understanding only one resource can be non-transactional. In this case it would be the Web Service.If you have n data sources and the first n-1 are transactional and the nth one is not - if you update the first n-1 successfully, and the nth one fails - then you just throw an exception and the updates to the n-1 data sources get rolled back. If an update to one of the n-1 data sources fails you throw an exception and the update to the nth data source never happens. In your case, it's up to you to ensure the updates are executed in the correct order (how you write your XQSE procedure).
Will the call to write a jms message from a Java function in ALDSP participate in the database transaction? DSP doesn't suspend the current transaction when calling a Java function. So yes, the JMS call would participate in the same transaction as the database call.
If you want to dump out the transactionId in your java function in the same format as it appears in the DSP Audit, you can use :
public String byteArrayToHexString(byte in[]) {
StringBuffer out = new StringBuffer(in.length * 2 + 2);
out.append("0x");
for(int i = 0; i < in.length; i++) {
byte ch = 0x00;
ch = (byte) (in[i] & 0xF0);
ch = (byte) (ch >>> 4);
ch = (byte) (ch & 0x0F);
out.append(HEX[(int) ch]);
ch = (byte) (in[i] & 0x0F);
out.append(HEX[(int) ch]);
return out.toString();
}

Similar Messages

  • How to send JMS Message from a BPM Process

    Hi All
    I have small query regarding sending JMS Message from a bpm process. Is it possible to send JMS message from one bpm process to another bpm process.
    I have a scenario in which I need to send a JMS message to a queue where another process is listening on that queue and as soon as the message is received on the queue the process instance is created.
    I know how to listen for the JMS message on the queue, but I don't how to send a JMS message from a process.
    Also Can I create process by sending the Notification to the process instead of a JMS message. But the process to be created is not a subprocess i.e. Can notification be send accross different processes.
    Any information or example in this regard would be helpful.
    Thanks in advance
    Edited by: user9945154 on Apr 22, 2009 7:46 PM

    Hi,
    Here's one approach to sending JMS messages from an Oracle BPM process. If you're doing this just to send a message into another process, do not take this approach. It's far easier and quicker if you do this using the OOTB "send notification" logic.
    These steps describe how to do this using WebLogic. The steps would be different if you're using another ap server / JMS provider.
    1. Guessing you've already done this, but first expose the two required WebLogic jar files for JMS messaging as Java components in the External Resources. The two files for WebLogic are weblogic.jar and wljmsclient.jar” (located in the < WebLogic home directory > /weblogic/server/lib” directory).
    AquaLogic BPM JMS Queue Listener for WebLogic 8.1
    2. You've probably already done this, but add an External Resource to represent the J2EE container:
    • Name: “weblogicJ2EE” - this is important and will be used in the next step
    • Supported Type: “GENERIC_J2EE”
    • Initial Context Factory: “weblogic.jndi.WLInitialContextFactory”
    • URL: “t3://localhost:7001”
    • Principal: and Credentials: whatever userid and password you defined to access theWebLogic administrative console.
    3. Create the External Resource that represents the send queue configuration. In this example, I'm calling it “WebLogic Send Queue”. This is important - remember what you named it because you will use this name in the logic that sends the JMS message. This new External Resource is configured as:
    • J2EE: “weblogicJ2EE” (same name as the second External Resource you created)
    • Destination Type: “QUEUE”
    • Lookup Name: “weblogic.examples.jms.exampleQueue”
    • Connection Factory Lookup Name: “weblogic.examples.jms.QueueConnectionFactory”
    4. Here's the logic to send a Message to the Queue
    <pre class="jive-pre"><p />msg as String = "Hello World"
    jmsMsg as Fuego.Msg.JmsMessage
    msg = "<?xml version=\"1.0\"?><Msg>" + msg + "</Msg></xml>"
    jmsMsg = JmsMessage(type : JmsMessageType.TEXT)
    jmsMsg.textValue = msg
    sendMessage DynamicJMS
    using configuration = "WebLogic Send Queue",
    message = jmsMsg</pre>
    Note that the “sendMessage” method uses the configuration parameter “WebLogic Send Queue”. You previously created a JMS messaging service External Resource with this name in the third step.
    Again, please don't go this route if you're just using it to send notifications between processes,
    Dan

  • How to send JMS message from oracle to weblogic

    Hello,
    I am facing with a problem of sending jms message from oracle to weblogic. I am using oracle 10g and weblogic server 9.1. Here is the problem. I would like to create a trigger to send JMS message to weblogic server whenever there is an update in oracle database. So I created a java class that will send a jms message to weblogic server. But in that class I use the jndi from weblogic: weblogic.jndi.WLInitialContextFactory
    when I use the loadjava utility to load that class into oracle, the status of that class is invalid though this class is working fine in eclipse with the weblogic.jar included. I was thinking because the jndi from weblogic needs the weblogic.jar in order to work, then I loaded that jar file into oracle (it took about 20 minute to load everything) and everything loaded into oracle from that jar file is invalid and missing some reference.
    So my question is: how do I send a jms message from oracle to weblogic using a java class with the right jndi?
    Any help will be appreciated.
    Thanks
    TL

    It should be quite straightforward to do this. As stated you need weblogic.jar in your classpath, then use 100% standard JMS calls to publish.
    Ensure that you set the following properties before getting your initial context:
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://node:7001 (or whatever)
    this will ensure that the correct JMS implementation classes are invoked.
    You can't easily (without some mucking around) build a test implementation in an AQ environment and then deploy to WebLogic because in AQ you don't tend to use JNDI lookups (unless you've implemented oracle JNDI etc) but rather use non standard factory class to create connections etc.

  • How to send JMS message from pl/SQL to jBoss

    Hi all,
    I need a helping. This is my problem:
    There's a queue which is definitied under the Jboss. I would like send a message from pl/SQL to jBoss.
    Why is't working??
    http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/jms/Readme.html
    thnk's,
    fgy,,

    You can defince a queue in Oracle, then access this queue from your Jboss application. Not sure if you need JMS, but there are some Oracle OCI functions that are certainly helpful for such a task.
    You might look into further details be reading the manual on Oracle Advanced Queuing or Oracle Streams.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14257/part4.htm#i436427

  • How to delete the messages from JMS Queue

    Hi,Can anybody help how to delete the messages from the JMS Queue.Thanks in advance.

    You can dequeue the message using a JMS client or delete it using Weblogic Admin Console -
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13952/taskhelp/jms_modules/queues/ManageQueues.html
    Regards,
    Anuj

  • How to create system message in SAP EP?

    Dear All,
    How to create system message in SAP EP?
    i need to find solution for this task. Is there any way without collaboration? For example in SLD there is "System message" without additional functions. Please help.
    Portal installed on Netweaver 7.01 EHP1

    Hi Abay,
    You need to develop custom application to accomplished your requirement for system message in the potral.
    Please have a look at "Brodcast messages to logged on users in Portal:
    Brodcast messages to logged on users in Portal(Part1)
    Brodcast messages to logged on users in Portal(Part2)
    Also you can develop system message in the KM and integrate in the portal.
    Hope it will helps,
    Regards, Arun Jaiswal

  • How to create new message in wsdl

    Hi all, how to create a new message apart from the request message and response message that get created when the BPEL process is created? For example, in LoanValidator project(this is the sample project that came with 10g instatllation), the request and response messages are LoanValidatorRequestMessage,LoanValidatorResultMessage and another message is there which is InvalidApplicationExceptionLoanValidatorMessage there. how to create this message? and its corresponding operation also.Thank you.
    Regards,
    user11275112

    messages are defined in the wsdl and have part(s) that refer to the real type / element. So just go to the wsdl that is the client partnerlink's one - and add yours there. the operation (defined in the portType) contains input / output / fault children. each referring to a message defined.
    cheers clemens

  • How to creat Process messages automatically through PI sheet saved?

    How to creat Process messages automatically through PI sheet to the Process message destinations.

    Hi Jessie,
    When you process instruction category PROD_3 in master recipe, the process message PI_PROD is created.
    After releasing process order, you have to create control recipe. Upon successful creation of control recipe, process instructions will get generated. Check the error log for control recipe creation for error if any. 
    Note that control recipe will be generated only with order status "Released".
    You have to sent this control recipe to process control (CO53).
    Hope it is helpful.
    Regards,
    Sachin

  • How to acknowledge JMS messages manually in BPEL

    How to acknowledge JMS messages manually in BPEL?
    Thanks!

    If Oracle BPEL/SOA Dev team is watching this form then please add this feature as all the major vendors support this.

  • How do you export messages from Ovi Suite?

    As the title says, how do you export messages from Ovi Suite?
    I know how to export messages from Nokia PC Suite, but it doesn't seem to be possible in the new Nokia Ovi Suite.
    Here is how I would do it in the Nokia PC Suite.
    1. I click the Messages icon to open Nokia Communication Center.
    2. I click on the Messages option on the left pane to view only messages.
    3. In the main window I mark the messages I want to export.
    4. Then I go to File menu and chose Export.
    5. Choose destination folder and I'm all set to export my messages from my Nokia.
    I can chose between the formats CSV and VMG (vMessage) for export. If more than one message is marked only the CSV format is available. But what you can do to export several messages in the VMG format is to mark them all in the main window and press CTRL+C or right click and chose Copy to copy them all to RAM memory. Then all you have to do is create an empty folder on the desktop and paste them in there by pressing CTRL+V or right clicking and chosing Paste.
    That's all there is to it, using Nokia PC Suite. So how do you do this in Nokia Ovi Suite? You don't, right?
    And this **bleep** Ovi Suite is supposed to replace PC Suite?
    Thank God I won't be needing neither of them much longer. I am switching to Android and HTC. Good luck with Ovi, the Ovi Player, the Ovi Suite, the PC Suite, the Symbian, the S60, the Symbian^1 (S60 5th edition), the Symbian^3, the Symbian^4 and what not.

    I believe OVI took a step in the right direction with this option. I also believe it was made available due to the fact that OVI Suite cannot take a huge number of messages altogether. This option was made available so that the messages could be backed up.
    However, I'd like to suggest the following, if possible.
    1. Make Nokia OVI Suite be able to handle a huge number of messages.
    2. Have the option to export only selected messages.
    Nokia 701 Dark Steel on Belle FP2

  • Creating Support Messages from Satellite System without SolMan user account

    Hi
    We are having some problems with users "creating support message" from our ECC system  to SolMan, if the user does not have a user account in Solution Manager.
    It is not correct, that users from Satellite systems can create support messages from these systems, without the user having an account in Solution Manager? And that the user is identified by the business partner for the user, that must exist in the Solution Manager system ?
    We have set up the RFC for the supportmessages between SolMan and the ECC system as trusted RFC, with the "Current user" as the user, but how should this be set up, if the user does not have an account in the Solution Manager system. If we enter a user with the right authorizations in the RFC, will the messages that come through not just appear as created by that user, instead of the ECC user and corresponding business partner ?
    Regards
    Lars

    Hi,
    you can use the use the user for the RFC-Connection in that case. I have customizied a similar scenario. In my scenario the System from which the message was created, is the business partner (SOLD-TO-PARTY). For that you have to create a communication user (i.e SOLMAN<SYSID>). In TA SM59 in the satellite-system you assign this user for the connection. (Don't forget to assign the user to the role "SAP_SV_FDB_NOTIF_BC_ADMIN"). Now, it schould be possible to create messages from the satellite system to the solution manager. Additionally you should create business-partner for each user of the satellite system, by using TA DSWP>EDIT>CREATE BUSINESS PARTNER.
    With this TA, it is easy to create BP for each satellite system.
    Best regards
    Marc

  • How can i  remove messages from faces context

    hi
    how can i remove messages from faces context
    with regards
    shannu sarma

    I'm also looking to find a way to remove message/s from FacesContext, and so far I've not been able to do this.
    The issues described below (if you have the patience to understand it) may uncover some JSF issues when combining different functionalities in JSF to come up with a solution.
    I have a requirement to display (let's just say error) messages in a message board. I do this in 2 steps: field-level validations are done first, and if all corrected (by the user), I do multi-field-level as well as business logic validation after model update (the way JSF seems to be designed to handle different types of validations). Let's say I have a combination of 3 combo-boxes that are dependent on one another. Selection from (1) requires dynamically filtering and setting a list for two and that in turn requires dynamically filtering and setting a list for 3, so the first two have valueChangeListener (try doing this in JSF!!!, I had to hack my way through to set this up with JSF, but that is not the issue). I have business rules associated with items within combo (1) and other entry fields entered by users (i.e. for simplicity let's just say, if material 'chain' is selected from combo 1, I should set combo (2) and (3), and validate that user entered at least four in # used entry field). Let's say I have a table with many rows of above combination of combo-boxes specified. Again for simplicity, assume we only have business rule violations (not field-level that would not go through model update):
    * User selects many combination of entried before submit (with no field-level error)
    * Business rules are checked and messages added to FacesContext and displayed in a message board
    * Next, all these messages disappear from the view when selecting any item from any combo-box (with valueChangeListeners attached to them) - 2 reasons: 1. a new FacesContext is created per valueChangeEvent 2. Business model update does not happen (so we don't generate these messages again and add them to FacesContext, it is not efficient to do so anyways)
    * we would like to display all those business logic validation messages so the user could correct them all (and not lose them by any combo-box selection)
    * As a workaround, I add these messages to session (which is another issue, since FacesMessages are not serializable) at the end of business logic validation, and retrieve and display them by (a.) forcing combo-boxes go through (field-level) validation, (b.) adding a new hidden field at the end of all fields in JSP page with a custom-validator that all it does is to get messages saved to session (from the last business logic validation) and add them to the FacesContext - this ensures that messages are not lost due to combo-box selections
    * The problem is that when user submits (to validate the business rules again), since the old Business validations messages are added to FacesContext at the end of field-level validation, I need to clear them, before adding the newly generated messages
    * But....I can't remove messages from FacesContext
    So here's a reason for this 'needed' functionality, based on whatever is available (as of JSF 1.1.01). Is there a better way to this, I'll be delighted to hear it (as I have tried different solutions myself with above combination of issuses), and have wasted some time trying to work-around the issues I've faced using JSF (in every one of those ways I've tried) ....part of which is described here...
    Thanks...

  • How to create dll file from c code to use in compactrio 9004 RT controller

    Hi.
    I am using Compactrio 9004 Real time controller and i am new to this. I have a C code and i want to use this with the RT controller.I red that that can be done by creating a dll file and can be called in labview.Can any body expalin how to create a DLL from the c code and be used with this RT controlelr?
    Regards,
    Vishnu

    vishnu123 wrote:
    Hi,
    Earlier in this forum itself in cRIO 900x controllers will run Pharlap and run C/C++ code compiled into .dll files.Can you please tell how to transfer the created DLL to RT controller memory throght FTP?
    Thanks and regards,
    Vishnu
    There is another KB article about this for Pharlap based controllers. And you are right the earlier CompactRIO controllers were Pharlap based. Basically for a deployed application to work, you need to put the DLL through FTP in "/ni-rt/system". If you deploy it directly from the project everything will be loaded into memory through the project environment itself including directly dependable DLLs, (but of course won't survive a power cycle).
    I hope you are aware that while Windows DLLs can work on Pharlap OS they by no means will do so always. The Pharlap OS has not a fully featured Windows API. Also you need to be careful which version of Visual C you are going to use depending on the Pharlap OS version, since the VC runtime DLLs already present on the controller will need to be the same as the ones your Visual C environment likes to link in. Recent Pharlap OS versions use the msvcr71.dll. It's very possible that those runtime libraries can't just simply be copied from a normal Windows installation but might have been recompiled by NI specifically for their controller targets.
    So to avoid problems it's a good idea to make sure your DLL uses the same runtime library DLL or make your DLL to include the static MS runtime.
    Rolf Kalbermatter
    Message Edited by rolfk on 02-05-2008 09:51 AM
    Message Edited by rolfk on 02-05-2008 09:53 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How 2 move the message from memory card 2 phone me...

    did anyone know in nokia N73 how 2
    move the message from memory card move
    to phone memory???? did anyone know
    how 2 move it??? teach me plz.....

    Here is an easy way to move your messages from Phone Memory to Memory Card or from Memory Card to Phone memory In Nokia models.
    1- Install latest version of Nokia PC Suite and connect your set.
    2- Open Nokia Communication Centre. (Select Phone Memory or Memory Card from which you want to move messages to other memory)
    3- Select all messages in a single folder (Inbox/Sent Items or from My Folders) and click on file> export. This will create *.csv file.
    4- Download NBU Explorer 1.8 from http://www.soft82.com/download/windows/nokia-nbuex​plorer/  (You must have installed Windows Installer 3.1 and Microsoft .Net Framework 3.5 to run NBU Explorer. You can easily download these from Microsoft Site,)
    5- Open *.csv file in NBU Explorer and click File > Export All. (Your all messages will be exported as *.vmg files.)
    6- Disconnect and connect your phone again in Nokia PC Suite.
    7- Now set your target memory in your phone for messages.
    8- Open Communication Centre and Select your desired folder then click on file > Import messages by selecting multiple messages *.vmg files. (You don’t have to import messages one by one but you can import all messages in a single folder at once)
    9- And you have done it.
    10- You can import *.csv list in Nokia PC Suite rather *.vmg files, but in this case, all the spaces (blank spaces) in your messages will be lost. All the text of your messages will be merged to a single line. So exporting via NBU Explorer is recommended.  
    11- Any query?  Contact me at ********@yahoo.com.
    MODERATOR'S NOTE:
    E-mail address has been removed from this post as it is unwise to post such personal information in a public web forum. This is for your personal safety and privacy.
    Edited by: Aikin19

  • HT201269 how do i transfer messages from one iphone to another

    how do i transfer messages from one iphone to new iphone

    "There is nothing there when I go to it."
    What does "there" mean?  What does "it" mean?
    If you saved a backup in iCloud or iTunes, and then restored that backup to a newer device, you would see the messages ... assuming the newer device uses the same telephone number and cellular carrier as the old one did.

Maybe you are looking for

  • Unable to upgrade from aperture 3.0.2

    i have aperture 3.0.2. when i try to upgrade to 3.1 i get a message telling me that i need aperture 3.0 !!!

  • Problem with printing presets in  LR 4

    Printing presets do not reflect perameters I set or update to in HP 9100 shortcut preferences working in Windows Vista.  I have reloaded the HP application and upgraded from LR 4.1 to 4.2 just in case that was the problem.  I do not know if I had the

  • CS2 on Mac, InDesign/Acrobat: Printing 2-sided pdf's on digital printer

    A small printer client of mine is using an Oce CM4521 color printer to print 2-sided business cards 10-up with crops all around. The second side is not aligning with the first, because, I think, the pdf-making function in InDesign is cropping the pdf

  • How to Deploy crystal reports in BOE

    Hi,     I have two questions.     1.How to deploy crystal reports in BOE server.     2.How many ways is there to deploy crystal reports in BOE server and name of the method is needed.    Anyone knows about these details could you please reply me Rega

  • Multiple key-bound Action

    Lets say I have a Navigation action      class NavigationAction extends AbstractAction {           static final String START = "START";           static final String BACK = "BACK";           static final String FORWARD = "FORWARD";           static f