Rise Process from a Button

Hi @all
I've created a process whit the Process Point "on submit..."
Now I want to run this process after the user press on the submit button on my page, how can I make that?
My Page is coded with the htp.p('and than plain html'); procedure, I'dnot generate it with the wizard.
The tag from my button is like this:
<input type="button" onclick="" name="Commit" value="Commit" onclick="">
If I want the create a button in html db wich runs the process, i've allway a error.
The question is how can I say from the html that htmldb have to run the process...
Thanks
Dean

Source:
declare
v_anzahl_meat number;
v_anzahl_fisch number;
v_anzahl_veg number;
v_anzahl_children number;
v_dinner_meat_id number;
v_dinner_fisch_id number;
v_dinner_veg_id number;
v_dinner_children_id number;
v_ok boolean;
begin
v_ok := true;
begin
v_anzahl_meat := :dinner_meat;
v_anzahl_fisch := :dinner_fisch;
v_anzahl_veg := :dinner_veg;
v_anzahl_children := :dinner_children;
exception
when value_error then
v_ok := false;
htp.p('alert('||''''||'Please type a numeric number for dinner!'||''''||')');
end;
if v_ok then
if nvl(v_anzahl_meat,0) < 0
or nvl(v_anzahl_fisch,0) < 0
or nvl(v_anzahl_veg,0) < 0
or nvl(v_anzahl_children,0) < 0 then
v_ok := false;
htp.p('alert('||''''||'Number of dinner must be > 0!'||''''||')');
end if;
end if;
if v_ok then
insert into person (pers_id,prename,lastname,street,zip_code,location,email,min_time,size_fk,country_cd_fk)
values (person_seq.nextval,:prename_in,:lastname_in,:street_in,:zip_in,:loc_in,:email_in,
:min_time_in,:t_size_lov,:country_cd_lov);
select dinner_id
into v_dinner_meat_id
from dinner
where description = 'Fleisch';
select dinner_id
into v_dinner_fisch_id
from dinner
where description = 'Fisch';
select dinner_id
into v_dinner_veg_id
from dinner
where description = 'vegetarisch';
select dinner_id
into v_dinner_children_id
from dinner
where description = 'Kinder';
if v_anzahl_meat > 0 then
insert into person_dinner (pers_id_fk,dinner_id_fk,anzahl)
values (person_seq.currval,v_dinner_meat_id,v_anzahl_meat);
end if;
if v_anzahl_fisch > 0 then
insert into person_dinner (pers_id_fk,dinner_id_fk,anzahl)
values (person_seq.currval,v_dinner_fisch_id,v_anzahl_fisch);
end if;
if v_anzahl_veg > 0 then
insert into person_dinner (pers_id_fk,dinner_id_fk,anzahl)
values (person_seq.currval,v_dinner_veg_id,v_anzahl_veg);
end if;
if v_anzahl_children > 0 then
insert into person_dinner (pers_id_fk,dinner_id_fk,anzahl)
values (person_seq.currval,v_dinner_children_id,v_anzahl_children);
end if;
insert into section (team_id_fk,section_id,pers_id_fk)
values (:team_id_lov,:section_id_lov,person_seq.currval);
commit;
htp.p('alert('||''''||'Transaction successful!'||''''||')');
htp.p('location="f?p=102:8"');
end if;
end;

Similar Messages

  • Call process from a button

    hello,
    I have a question:Is it possible to call and execute a process on a button click?
    LAFOND Romain

    Since the processes are performed by the HTML DB engine, the page has to be submitted to execute it. I think the only way to evade it is to use JavaScript (please correct me if I'm wrong).
    But why do you want to prevent submitting - you can call the submitted page again after processing!
    Bettina

  • Hi There, Any one Know How To Call Workflow Process From Special Menu.

    Hi There,
    Any one Know How To Call Oracle Workflow Process From Special Menu.
    I mean Tool -> Special Menu 1-45
    Or How to call Oracle Workflow Process From Command Button.
    Thanks
    Bachan.

    Can u give me some examples.
    Second thing we can add special action (special Menus) from Form Personaliztion.
    But how to add launch wft through Personalization
    Please Give me a breaf detail.
    Thanks
    Bachan

  • How to call a BPEL process from Oracle Apps Java Concurrent program

    Hello,
    I need to trigger a BPEL process from Oracle Apps. Can anybody tell me how to do that? I have two triggering option--
    1. On button click from a Form 6i screen
    2. Using Java Concurrent program.
    Thanks in advance.
    Debkanta

    I am not sure how concurrent program works, but may be one of the way might work out, let me know if Java Concurrent Program works a bit different way
    - [if async] Through concurrent program, you can insert message token to db or aq, and BPEL can be instantiated from there
    or
    - If it supports pure java call, then you can look at multiple documents (e.g. http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Tutorial7-InvokingBPELProcesses.pdf) to invoke your process
    - You can also use oracle db utility to invoke soap operation and get the result back
    HTH,
    Chintan

  • How to pass multiple values while invoking bpel process from ADF?

    Hi,
    I want to call a bpel process from my ADF application. The bpel process is having one input parameter. I have created webservice data control by using WSDL url.
    Lets say, I have an Emp multi select table. I drag and drop the data control into Emp table selection facet to create an "Invoke" button.
    I am able to pass single value (lets say Empid) to the bpel process after clicking the "Invoke" button.
    But, my requirement is to pass all the selected values ( as its a multi select table) to the bpel process after clicking the "Invoke" button once.
    How can I achieve this?
    --Abhijit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    if the BPEL method that you access allows you to pass arrays or lists, then you can get a list of selectedRowKeys from the table, which then you use to get the value from the underlying binding or the table. This however requires some Java coding instead of directly invoking the executable on the binding layer
    - you create the BPEL method in the binding layer
    - from a Java managed bean you call ADFBindingContext --> get current instance and access Binding container
    - OperationBinding oper = (OperationBinding ) bindings.get("method to invoke");
    oper.gerParamsMap().put("the BPel argument name", value);
    oper.execute();
    - To access the table selected rows
    RowKeySet rks = _table.getSelectedRowKeys();
      //iterate over the set of selected row keys and delete
      //each of the found rows
      Iterator selectedRowIterator = rks.iterator();
      while (selectedRowIterator.hasNext()){
        //get the first key
        Object key = selectedRowIterator.next();
        //make the row current
        _table.setRowKey(key);
        //the row is an instance of the ADF node binding class
        JUCtrlHierNodeBinding rowWrapper = null;
        rowWrapper = (JUCtrlHierNodeBinding) _table.getRowData();
        //get the actual oracle.jbo.Row object
        Row row = rowWrapper.getRow();
        ... get attribute values by calling row.getAttribute("name"); assuming you used ADF BC to build the tableFrank

  • Invoking BPEL process from a jsp

    Hi,
    I am invoking a synchronous BPEL process from a jsp.
    The jsp I am using is pasted below for your reference.
    createWorkOrderFFA.jsp invokes another jsp invokeWorkOrderFFA.jsp which inturn calls the BPEL process.
    The code is given below.
    -----------------createWorkOrderFFA.jsp starts-----------
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
    <html>
    <head>
    <title>Work Order Creation </title>
    <meta http-equiv="PRAGMA" content="NO-CACHE" />
    <meta http-equiv="EXPIRES" content="-1" />
    <SCRIPT LANGUAGE="JavaScript">
    function setfocus(){
    document.generatePO.technicianName.focus();
    function mypopup()
    mywindow = window.open ("totalWODetails.jsp","mywindow","scrollbars=1,width=600,height=500");
    mywindow.moveTo(50,50);
    function DoTheCheck()
              if((document.generatePO.repair.checked != true) && (document.generatePO.replacement.checked != true) &&(document.generatePO.emergency.checked != true))
                             alert('Please select atleast one task type for Work Order');
                             return false;
                             document.generatePO.submit();
              return true;
    function chkvalues(){
    if( document.generatePO.additionalInfo.value == "")
    alert(" Please provide additional information for tasks assigned");
    document.generatePO.additionalInfo.focus();
    return false;
    return true;
    </SCRIPT>
    </head>
    <body bgcolor = "#E9C2A6">
    <br>
    <tr cellspacing="0" cellpadding="0">
    <td width="30%" align=left ><b><h2><font color="#3333CC">  </font></b></h2> </td>
    </tr>
    <!-- <h1 align='center'> Work Order Creation </h1> -->
    <table border="1" cellspacing="0" cellpadding="0" width="80%" align=center>
    <tr bgcolor=#A68064 valign=center > </tr>
    <tr bgcolor=#A68064 valign==center><td valign=center > <h2 align='center'> <font COLOR="#CDCDCD" SIZE=5 FACE="sans-serif"> Field Force Automation - Work Order Creation </font></h2></td></tr>
    <tr><td align=center>
    <table border="0" cellspacing="0" cellpadding="0" width="100%" >
    <form name="generatePO" action="./invokeWorkOrderFFA.jsp" onSubmit="return DoTheCheck()">
    </tr>
    <tr >
    <br>
    <td width="40%" align="right" > <b> <font color="black" SIZE=2 FACE="sans-serif" align="right"> Interface Type: </font> </b>           </td>
    <!-- <td width="2%">:</td><td><input type="text" name="SSN" maxlength=10 size=10></td> -->
    <td width="60%" colspan = "2">
    <SELECT NAME="interfaceType">
    <OPTION VALUE="Batch"> Batch </OPTION>
    <OPTION VALUE="Near Real Time"> Near Real Time </OPTION>
    <OPTION VALUE="Automatic"> Automatic </OPTION>
    </SELECT >   
    </td>
    </tr>
    <tr>
    <td width="40%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    </tr>
    <tr>
    <td width="40%" align=middle><b><font color="black" SIZE=2 FACE="sans-serif" align="right">                Work Order Tasks *  : </font> </b></td>
    <td width="20%"><b>Maintenance</b><br>
         <INPUT TYPE=CHECKBOX NAME="repair" value="repair" >repair<P>
         <INPUT TYPE=CHECKBOX NAME="replacement" value="replacement">replacement<P>
    </td>
    <td width="20%" align=left></td></td>
    </tr>
    </tr>
    <tr> <td width="20%">
    <td width="40%" align=left> <b>Emergency</b><br><INPUT TYPE=CHECKBOX NAME="gasEmergency" value="gasEmergency">Gas Emergency<P>
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    </tr>
    <tr>
    <td width="40%" align=middle><b><font color="black" SIZE=2 FACE="sans-serif" align="right">              Additional Information: </font> </b></td>
    <td width="20%"><TEXTAREA NAME="additionalInfo" COLS=40 ROWS=6></TEXTAREA>
    </td>
         <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    </tr>
    </tr>
    <tr bgcolor=#A68064>
    <td width="40%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    </tr>
    <tr bgcolor=#A68064 ><td width="100%" colspan=4 align=center bgcolor=#A68064>  
    <input type="submit" name="submit" value="Submit Order" style="background-color: #E9C2A6;">    
    <input type="reset" name="reset" value="Reset Values" style="background-color: #E9C2A6;" >     
    <input type="button" name="btn" value=" WO Error Report" onClick="javascript: mypopup()" style="background-color:#E9C2A6;" >     
    </td>
    </tr>
    <tr bgcolor=#A68064>
    <td width="40%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    </tr>
    <tr bgcolor=#A68064>
    <td width="50%" colspan = "4" align=left bgcolor="#A68064">    <font color="#CDCDCD"> * Indicates Mandatory fields </font>
    </td>
    </tr>
    <tr bgcolor=#A68064> </tr>
    </form>
    </table>
    </td></tr></table>
    </table>
    <br>
    <!-- <marquee> <b>Wipro Technologies</b>, <br> Disclaimer : This is only a prototype model and used only for testing. </marquee> -->
    <script language="JavaScript">
    </Script>
    </body>
    </html>
    -----------------createWorkOrderFFA.jsp ends-------------
    -----------------invokeWorkOrderFFA.jsp starts-----------
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
    <html>
    <head>
    <title>Invoke WorkOrderService </title>
    </head>
    <body>
    <%
    String interfaceType = request.getParameter("interfaceType");
         String repair = request.getParameter("repair");
              System.out.println("repair repair---------------------->");
         String replacement = request.getParameter("replacement");
    String gasEmergency = request.getParameter("gasEmergency");
    String additionalInfo = request.getParameter("additionalInfo");
         String woType1="Maintenance";
         String woType2="Emergency";
         System.out.println("before xml---------------------->");
    String xml = "<hostWOApplication xmlns=\"http://services.otn.com\">"
              +"<interfaceType>" + interfaceType + "</interfaceType>"
                   +"<Maintenance>"
                   +"<repair>" + repair + "</repair>"
                   +"<replacement>" + replacement + "</replacement>"
                                  +"</Maintenance>"
                   +"<Emergency>"
              + "<gasEmergency>" + gasEmergency + "</gasEmergency>"
                   +"</Emergency>"
                   + "<additionalInfo>" + additionalInfo + "</additionalInfo>"
              + "</hostWOApplication>";
    System.out.println("Payload data ----------------------------------------->"+xml);
    Locator locator = new Locator("default","bpel");
    System.out.println("Before Idelivery service--------------->");
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    System.out.println("After IDeliveryService data----------------------->");
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload", xml );
    System.out.println("Before process service--------------->");
    deliveryService.request("A2", "process", nm);
    System.out.println("After process service--------------->");
    out.println( "<b><Font Face=Arial color=red>Work Order has been initiated!</font></b>" );
    %>
         <table bgColor="#E9C2A6" border="1" cellpadding="0">
         <tr ><td width="100%" colspan=4 align=center >
    <b>The Work Order Details could be found at this link:
    <Font Face=Arial color=red><italic>Work Order Creation Details<italic></Font><b>
         </tr>
    </table>
    </body>
    </html>
    -----------------invokeWorkOrderFFA.jsp ends-----------
    I am getting the following error:
    ----------------error desc starts----------------------
    Oracle BPEL Process Manager Full Cycle
    An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize for the inconvenience. Please open a TAR in http://metalink.oracle.com if you are our customers. Otherwise, you can post the error to the OTN forum and we will get back to you as soon as possible.
    Attachments:
    Build Information:
    Oracle BPEL Server version 2.2
    Build: 1361
    Build time: Thu Mar 17 15:51:23 PST 2005
    Build type: release
    Source tag: BPELPM_10_1_2_beta3_branch
    Exception Message:
    [java.lang.Exception]
    Invalid Login. Domain not specified.
    Exception Trace:
    java.lang.Exception: Invalid Login. Domain not specified.
         at com.collaxa.cube.fe.util.ServletUtils.getLocator(ServletUtils.java:80)
         at displayInstance.jspService(_displayInstance.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:89)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    ----------------error desc ends----------------------

    hey mgrovr..
    how to ensure that my jsps are under orabpel. i m getting a javax.naming.NameNotFoundException: ejb/collaxa/system/DomainManagerBean not found exception wile invoking bpel process from jsp. I have created the jsps in Jdeveloper and i'm running it from there only.
    Can u tell me a way to keep me application under orabpel

  • Calling a Procedure from a Button? (REVISITED)

    Hi All,
    I once asked a question Re: Calling a Procedure from a Button? & that problem was resolved when i was working on the online ApEx.
    On my application, requirements have changed a bit: I have one form based on two tables. One table contributes two fields (name & surname) to the form while the remaining fields are contributed by another table to make a total of 17 fields on the form.
    My process is in such a way that a user enters an id number & clicks Search button, if the apllicant exists then both name & surname corresponding with the id number will be retrieved from the database. If the applicant does not exist then an error message will be displayed inline with the id number field. Here's the PL/SQL anonymous block to that:
    DECLARE
    vNAME APPLICANTS.name%TYPE;
    vSURNAME APPLICANTS.surname%TYPE;
    BEGIN
    SELECT count(*)
    INTO :P2_COUNT
    FROM applicants
    WHERE id_number = :P2_ID_NUMBER;
    IF :P2_COUNT > 0 THEN
    SELECT name,surname
    INTO vNAME, vSURNAME
    FROM applicants
    WHERE id_number = :P2_ID_NUMBER;
    :P2_NAME := vNAME;
    :P2_SURNAME := vSURNAME;
    ELSE
    apex_application.g_print_success_message := '<span style="color:red">Applicant does not exist.</span>';
    END IF;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    apex_application.g_print_success_message := '<span style="color:red">Exception Caught.</span>';
    END;The PL/SQL block works except for error displaying part (but that's a problem for another day).
    NB: On my application, there’s already Automated Row Fetch & Automatic Row Processing (DML) processes for one table. Furthermore, there is also a javascript for verifying the validity of an id number. As a result, I decided to include Automated Row Fetch & Automatic Row Processing (DML) processes for the other table. When I click a Search button the javascript is activated even though I did not specify a URL target for the button - because this is a simple button among region items – it does not have Optional Url Redirect section.
    I'm not sure what I'm doing wrong here - any help is appreciated.
    Regards
    Kamo

    Hi Dan,
    Sorry for causing confusion with my post - it's just that I was asking the same question (with different constraints) as I had asked before so I didn't feel like going to details was necessary because in my post I included a link to the previous thread. Interestingly, I was working on apex.oracle.com when I posted the original thread - the only problem came to be when I started to move the solution to my application on my machine.
    Anyway, thanks for the response!
    Regards
    Kamo

  • BPM start process from WD UI

    Hi all,
    I am quite new with BPM in the SAP environment and for the moment I am strugling with the start of a process using an WD UI.
    What i have is a simple process with two activities. The process starts with no problems from the respository and also I created a wdsl and managed to start the process from the wsnavigator.
    Now I want to start the process from a simple UI. For that I created a WD component, assigned it to an app and connected to a model. Next I edited my portal to have a new folder with a page that contains my app.
    The UI has to fields and a button. My goal is to use that button to start my process.
    Probably I am doing something wrong when creating the action and maybe someone can help me with the java part on the actual button action.
    Please help. Thank you.
    Regards,
    Stefy

    I've made a lot of research and of course found a lot of forums and help. But for the moment I had some issues with addapting them completely to my situation, since I have to prior experience with this.
    For example I think this is the best solution that I have found so far: /people/arafat.farooqui/blog/2010/06/23/introduction-to-sap-netweaver-bpm-part-6
    but at the following step:
    / Bind the object
    wdContext.nodeRequest_Name().bind(objRequest);
    I can't figure out what is the nodeRequest_Name()...
    couldn't find this "asset" in my WDContext.
    Regards,
    Stefy

  • T61 Display Problem and Annoying Noise from ESC button area

    I have two problems with my T61, model 6460-66U. One's with display and another is annoying noise coming from ESC button area.
    Ordered in Feb, 2008 for college use, as soon as I start to use it there's some problem with the display quality. When using Aero there would be black square spots appearing on screen and would disappear when hovering mouse over these areas. Processing speed is somewhat slow when using Aero. While switching to Basic Vista style, those black square spots will only appear in the Windows Photo Gallery's left corner, like the image shows: http://farm4.static.flickr.com/3149/2746362257_6dc6a4d6a2_o.jpg  When playing videos, like avi, rmvb, wmv files, there's a common problem that the screen in the media player keeps flashing with the green color. I thought it was the RAM, because it's 1G so it got upgraded to 3G over summer break. Hoping the problem would be solved, but not . Recover the system back to factory status helps a little, but after upgrading the newest driver (7.15.11.7597) of Nvidia 140m there would be sudden black out on screen, and notice of display driver stopped working. When degrade to 7.15.11.129 version it runs fairly well but problem with Photo Gallery and videos as mentioned above still exist. I found a Korean media player which could fix the video playing problem, but with Windows Media player, Realplayer and other major video player the problem still exists. Screenshot of the problem is here http://farm4.static.flickr.com/3087/2746362307_aff12c556c_o.jpg  I upgraded BIOS, but laptop would become slow and video images would blur/double shadows. So I swtiched it back.
    And recent few days, there's annoying noise coming from in the upper left corner, where ESC button is. I don't know whether it's from the fan or the AC adapter, it's like Zssssss, and if I press my finger on it, the noise would be a little louder. There's a similar problem that I noticed in the first few weeks with the experience of this laptop, whenever I maximize the volume (both volume control of computer and the music player), some annoying noise, which is similar to this Zsss sound but louder will buzzing along with music. Didn't care much about that since if I don't maximize the volume it would just be fine. But this time the whining noise won't disappear. What probably cause this?  Anyway to fix it, like replacing certain parts??
    Suggessions and help would be very much appreciated. Thanks!!
    Original description: T7300(2GHz), 1GB RAM, 160GB 5400rpm HD, 15.4in 1680x1050 LCD, 128MB nVIDIA Quadro NVS 140M, CDRW/DVDRW, Intel 802.11agn, Bluetooth, Modem, 1Gb Ethernet, UltraNav, Secure chip, Fingerprint reader, Intel Turbo Memory, 6c Li-Ion, WinVista Business
    Message Edited by dream on 08-09-2008 09:35 AM
    Message Edited by dream on 08-09-2008 09:38 AM

    Dirt can get under the button in an instant.
    I use a strong suction vacuum cleaner and tip the computer from side to side and upside down while clicking the button to suck out the dirt.

  • MDB messages dont get processed from Queues when involving a remote Topic in transaction

    Using WLS 6.1 SP4 on winXP Pro boxes, I have come across a peculiar problem:
              I have several MDBs that process ObjectMessages from queues and forward their payload (wrapped in another new ObjectMessage) to other queues, all of which are located within the same WLS server.
              Right now I'm adding a new MDB that gets messages from a remote Topic with a durable subscription, and forwards the payload to local queues after some processing.
              When the Topic is local as well, there is no problem. But when the Topic is set up in a remote machine, only the MDB that has the remote durable subscription works the way it should. It receives the remote message and forwards it to the corresponding local queue. But then the messages in those local queues dont get processed. The 'Messages Received' count rises and the 'Messages' count stays at 0, as if the messages had been correctly processed and acknowledged, but no onMessage() method is called besides the one from the MDB that has the durable subscription to the remote Topic (I can tell because there's no further processing from the queue those messages get put in). It's as if those messages were simply received and acknowledged without being passed to other MDBs by WLS.
              * All queue MDBs use Required container-managed transaction management and auto-acknowledge
              * All queue MDBs have default durability for their queue subscriptions
              * The topic MDB has a durable subscription stored in a filestore
              * Lookup of the remote Topic is done via JNDI
              Since the processing and forwarding of messages occurs the way it should when everything is local, I am inclined to believe one of two things:
              a) There's some issue with the way WLS treats messages (or even just payloads) when they come from a remote server
              b) WLS is doing something I'm not aware of when propagating a transaction that begins with the delivery of a message from a remote JMS Topic when it involves further forwarding of messages in local JMS Queues.
              Any help will be appreciated.
              regards,
              .munir estevane
              

    Is the durable subscriber forwarder rolling back its transactions?
              That would cause the behavior you describe (eg the message gets
              placed in the queue, but is never made visible). What do
              the pending counts on the destination queue look like?
              Munir Estevane wrote:
              > Using WLS 6.1 SP4 on winXP Pro boxes, I have come across a peculiar problem:
              >
              > I have several MDBs that process ObjectMessages from queues and forward their payload (wrapped in another new ObjectMessage) to other queues, all of which are located within the same WLS server.
              > Right now I'm adding a new MDB that gets messages from a remote Topic with a durable subscription, and forwards the payload to local queues after some processing.
              >
              > When the Topic is local as well, there is no problem. But when the Topic is set up in a remote machine, only the MDB that has the remote durable subscription works the way it should. It receives the remote message and forwards it to the corresponding local queue. But then the messages in those local queues dont get processed. The 'Messages Received' count rises and the 'Messages' count stays at 0, as if the messages had been correctly processed and acknowledged, but no onMessage() method is called besides the one from the MDB that has the durable subscription to the remote Topic (I can tell because there's no further processing from the queue those messages get put in). It's as if those messages were simply received and acknowledged without being passed to other MDBs by WLS.
              >
              > * All queue MDBs use Required container-managed transaction management and auto-acknowledge
              > * All queue MDBs have default durability for their queue subscriptions
              > * The topic MDB has a durable subscription stored in a filestore
              > * Lookup of the remote Topic is done via JNDI
              >
              > Since the processing and forwarding of messages occurs the way it should when everything is local, I am inclined to believe one of two things:
              > a) There's some issue with the way WLS treats messages (or even just payloads) when they come from a remote server
              > b) WLS is doing something I'm not aware of when propagating a transaction that begins with the delivery of a message from a remote JMS Topic when it involves further forwarding of messages in local JMS Queues.
              >
              > Any help will be appreciated.
              >
              > regards,
              > .munir estevane
              

  • Calling from java buttons in an applet

    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JDemoGridLayout extends JApplet
    JLabel greeting = new JLabel("SAMPLE", JLabel.CENTER);
    Font HeadlineFont = new Font("Helvetica",Font.BOLD, 24);
    private JButton b1 = new JButton ("Button 1");
    private JButton b2 = new JButton ("Button 2");
    private JButton b3 = new JButton ("Button 3");
    private JButton b4 = new JButton ("Button 4");
    private GridLayout layout = new GridLayout(6,6,6,6);
    JLabel personalGreeting = new JLabel("");
    Container con = getContentPane();
    public void init()
      greeting.setFont(HeadlineFont);
    personalGreeting.setFont(HeadlineFont);
    con.add(greeting);
    con.setLayout(new FlowLayout());
    setLayout(layout);
    add(b1);
    add(b2);
    add(b3);
    add(b4);
    }Edited by: javastudent101 on Mar 4, 2009 7:12 AM

    javastudent101 wrote:
    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.You don't call classes from buttons. What you can do is add a java.awt.event.ActionListener to each button. This ActionListener's actionPerformed() method will get called whenever the button is clicked. An example:
    MyActionListener listener = new MyActionListener();
    JButton button = new JButton("Do My Taxes");
    button.setActionCommand("DoTaxes");
    button.addActionListener(listener);
    JButton button2 = new JButton("Take a Shower");
    button2.setActionCommand("TakeShower");
    button2.addActionListener(listener);
    private class MyActionListener implements ActionListener {
       public void actionPerformed(ActionEvent e) {
          String command = e.getActionCommand();
          if ("DoTaxes".equals(command)) {
             // Whatever processing is necessary to do taxes
          else if ("TakeShower".equals(command)) {
             // Whatever it takes to take a shower.
    }See [How to use Buttons|http://java.sun.com/docs/books/tutorial/uiswing/components/button.html] for more information.
    Alternatively, you could use an Action specific to each JButton. Once you understand ActionListeners, it's pretty easy to understand Actions.

  • Payment processing from PaySafe

    Hi, i've purchase about 2-3 days ago 10 euro from paysafe. The first time worked, But this time....
    In my skype contact i have 5 same warnings that they say : We're processing your order.
    The money they have been transferred form paysafe to skype thats the sure thing.
    I must say also that i deactivate it the auto pay method after my credits done from that time
    and...here im.
    So i will wait for your help. Thank you
    Post transferred to create new topic;
    subject/title edited accordingly.

    Hi, Koutsikoutsi, and welcome to the Community,
    Please post back with a little more information so we may assist: are you explaining that a purchase which you did not authorize was processed from Pay Safe, or that you were able to successfully purchase credit using Pay Safe, and now payments are showing as "pending" but not being processed?
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Problems with a mailto link from a button

    Dear All,
    I am trying to create a mailto link from a button within a page which will also pass several variables. Everything is working well until it comes to generating the body of the message. I can generate content in the body but if I add a new line into it (using %0A or %0D) the link stops working. Remove the offending hex and it works fine. Does anyone know how to pass a new line within the body of a mailto link. For detail the link is shown below
    mailto:&P41_CUST_EMAIL.?subject=Quotation Feedback Request&body=Dear%20&P41_CUST_NAME.,%0A

    I need to do the exact same thing. How did you accomplish this. I tried putting the URL in the footer, but the values of the body keep showing the item name, and not the value of the item.
    do you get the button to work?
    I'm tried creating it through a button, but it just creates some garbage and a non working link.
    How did you build the body? I'm having issues building the body using processes.
    Edited by: ABD - DBA on Mar 9, 2009 3:15 PM

  • Copy from clipboard button in Select Options variable

    Has anyone had success using the copy from clipboard button in the Selection Option variable when copying rows from your query results in Excel?0
    My users and I can not get this to work. Is there a setting or something that we are missing?
    Thanks for any tips,
    AJB - COT

    Hi City,
    The problem (I think) you are describing is caused because you are attempting to copy from the same instance of Excel.  If you were able to see your workbook at the same time that you could see the variable refresh screen (in older versions of Excel and BW you could see them both), you would notice that the cut/copy mode (denoted by the "crawling ants" around the border of the selected range) is cancelled in the process of displaying the refresh screen.
    The solution to this is one of the following:
    1.  open another instance of Excel and first copy the results to the second instance
    2.  copy the Excel results to another application, such as Word
    Perhaps not the answer you were looking for, but it works.
    - Pete

  • Start process from JSP which continues running after response is completed

    Is it possible to start a process from within JSP which can continue running after the HTTP response is complete, so the response doesn't time out??

    Your question is a little vague. If I am understanding your question correctly, it sounds like you are starting a process in JSP that takes a long time, and the browser is timing out. If this is your question, then here is my response:
    We've had this situation before. Often times it occurs because the JSP page launches a long database operation that could take an hour. You have a few choices, but one good approach is this (any variation of this works too):
    1. When the page loads and you need the process to start, create a new thread and have the long operation run from this thread. You can put the thread object into a session variable and store it for later use.
    2. Have the JSP code output a META-REFRESH tag on the page so that the page refreshes every 30 seconds or so.
    3. On each refresh, you get the thread object from the session context and check it to see if it is done or still running. If it is, then just output another META-REFRESH and the page will keep refreshing itself. If it is done, you can, of course, output a "finished" message to the user.
    You can also have a stop button on the page that you can use to send a message to the thread to stop.
    Hope that gives you some ideas!
    Michael

Maybe you are looking for

  • Getting error while opening Enterprise project type (EPT)

    Hello All, In Project Server 2013, I am getting error while opening any Enterprise project type (EPT) from EPT page or when I am trying ot create any new EPT. How can I troublshoot this, please help. Thanks in advance

  • Default date and year

    Hi Guru's, Can you please give your suggestions for following requirement.. On selection screen for parameter_period... ( which is in format ---   mm-dd-yyyy) I want default value for mm-dd  as ( 01-01).. and yyyy  as current year .. For eg ::if exec

  • Mass approval of Leave tasks..

    Dear Team, Is it possible to Approve all leave requests at a single go. If it is Possible, What needs to be done at WORKFLOW Part and What needs to be done at EP Part. Please specicy both coding and configuration part of them. Please help. Thanks a l

  • How are you Using iBooks Author and Samples

    I'm curious to see how everyone is using iBooks author to create books. Are most people copy/pasting content into their book or are they directly writing the content in the book? How many have just imported the information from another word processin

  • App store is in spanish?!?

    I updated to the ios6 and now the app store is in spanish... How do I fix that?!