Using JMS and Advanced Queuing within forms.

I am wondering if anyone can forsee problems with embedding a javabean inside a form that:
listens to an Oracle queue.
Do you think there would be some type of problem with a connection factory trying to create a connection and a session from within forms using JDBC?
Thanks in advance

Sandu,you are right.
A Forms timer with status polling is a good and stabil solution .
But we are connected on a database and a polling of a database event - Job is finished, or a reply received in a Queue -
is always a network traffic and overhead when we use polling times < 1 min ..
It would be also a good solution and interesting feature of Forms that the database event sends a message to the waiting client (process ?) ..

Similar Messages

  • JMS and advanced Queues - how to dequeue?

    Hi,
    I've recently built a MDB that listens to an Oracle Queue (9.0.4) via JMS . Everything works fine, the only thing is that the rows that have been enqueued are not deleted (dequeued) from the queue table once the MDB has picked them up.
    This only causes a problem when the database re-starts as the MDB picks up all the messages again. And also is a problem as the table will keep growing with all the messages.
    Can you tell me what I should do to dequeue the messages? Should this be a trigger of some sort or is there something I can do from within the bean to dequeue the message once it has been consumed? Or is there another way of handling this?
    Appreciate your help.
    Cheers.

    Hello,
    Great! I need that solution :)
    Can you point out how you connected the MDB to the AQ? What software or adapter did you use?
    I have the vice versa problem.
    The MDB always deletes the message in the queue table, but a rollback never works.
    Did you enable transactions by the following settings in ejb-jar.xml:
    <container-transaction >
    <method >
    <ejb-name>MyMdb</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    I use BEA to deploy the MDB and Dips xa-compliant StartupClass package to register the AQ Connection Factory to in the JNDI tree.
    Regards
    Thomas

  • Nested Tables and Advanced Queues- Please Help.

    How do i work with NestedTable type and Advanced Queue.
    I have done the following
    I have Oracle 8.1.7 enterprise edition.
    create type myType as TABLE OF varchar(32);
    create type myObject as OBJECT (
    id int,
    myt myType);
    DECLARE
    BEGIN
    dbms_aqadm.create_queue_table(
    queue_table => 'my_queue_table',
    multiple_consumers => TRUE,
    queue_payload_type => 'myObject',
    compatible => '8.1.3'
    END;
    The Nested Table and Object are created successfully.
    but the queue is not created.
    I get the following message.
    DECLARE
    ERROR at line 1:
    ORA-22913: must specify table name for nested table column or
    attribute
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2012
    ORA-06512: at "SYS.DBMS_AQADM", line 55
    ORA-06512: at line 3
    I know how to specify the nested table storage clause for
    create table statement, but there is no provision for
    it in the create_queue_table procedure.
    Any help will be greately appriciated.
    i have already created and tested aqs with simple data types,
    also i have created simple tables with nested table type
    elements.
    but the combo of Nested tables and AQ is not working.
    thanks in advance.

    Hi Francois. Thank you very much for your reply, but it seems that i still get errors. So let me tell what i have done.
    As you suggested me: i have done a block based on a sub-query for the nested-table:
    'select courses from department where name= :department.name'.
    In the master block(department) i have the when-new-record-instance trigger:
    Declare
    LC$Req varchar2(256);
    Begin
    LC$Req := '(select ns.courses from table
    ( select courses from department where name = ''' || :DEPARTMENT.name || ''' ) ns )';
    Go_block('block11');
    Clear_Block ;
    Set_Block_Property( 'block11', QUERY_DATA_SOURCE_NAME, LC$Req ) ;
    Execute_query ;
    End ;
    Now the errors i receive, this time in the runtime mode are:
    - FRM-41380: Cannot set the blocks query data source
    -FRM-41003: This function cannot be performed here.
    Since it seems that you know how to work with the nested table i would really appreaciate your help. I am new in the nested table and if you could give an ex with my tables it would be great.
    Thank you in advance.

  • To use JMS and JNDI in JDev 9.0.3.4

    Do I need to add additional librararies in order to use JMS and JNDI along with EJB's in the enterprise application I'm creating?

    No the article is not applicable for 9.0.3 I've never tested the compatibility of the 9.0.3 + Struts integration - obviously it does not work.
    What does work is the ADF bindings used in 9.0.5 and above which can be safely used with newer versions of Struts.

  • Using drag and drop property in forms.

    Hi all,
    I want to use drag and drop property in a form during
    runtime.I am using oracle 7.3.I don't want to call any
    another application.
    Is there any way?
    Thx in advance.

    Mona ! First tell your problem in brief ..Actually what you want
    on runtime ...would you like to fetching the data from one item
    to another or change the position of any item or
    pushbutton ...or what..give detail ...obviously i can help you..
    there are many commands like set_item_property ,
    get_item_property but right now i could not understand your
    prob ..tell me in brief..
    You can ask me at [email protected]..
    -Anwar

  • How to use protect and endprotect in smart form

    hi to all experts,
                        im still begineer in smart form , i have two headings like
    company_code:              purchase doc no:
    after this i have a table to be displayed with four columns
    what i want is the whole data should not be split by a page break
    i know this can be achieved by using protect and end protect in sap scripts how to implement in smart form

    probably u have the table inside a loop or a folder or something....
    see this
    Page protection attribute
    Switch for page protection.
    Use
    Page protection switch.
    In some cases you may want to avoid that text is divided by a page break. Therefore, you can protect text sections with a page protection.
    Page protection can extend to
    a paragraph
    a text node
    all output within a folder, for example, several text nodes combined in this folder.
    a line type (table node)
    If on the current page there is not enough space left for the protected text, it is displayed entirely on the next page.
    So u can page protect a line in table...
    in the table node..goto tables tab and click the details tab-->select the line type and check the 'no page break'
    check box

  • Problem in using quick and advanced search based on transient items

    Hi everybody
    I want to have an unbound string item in my form and allow users to use advanced search and quick search on that item.
    I read the following post About advanced search and added a transient
    item on view object and overrode the advance search method in application module and realized that the value of that string was
    added to arguments.
    Then I decided to add this transient item on entity object instead of view object so that we were able to add the item in one place and
    use it in several view objects. I added an item in the entity and unchecked the persistent flag but I can't set queryable flag since it was disable.
    I added the item in the view object and by use of application definition I forced the item to be shown in the advance search.
    I generate the application and the item was shown correctly in the advanced search but when I set the item in advanced search its value
    was not sent to advance search method.
    Is it a bug ? (value of the field in the advanced search section was not sent to advanced search method )
    Is it a way to add a queryable transient item in the entity object and still benefit from overriding advanced search method ?
    I am using Jdeveloper 10.1.3 and Jheadstart 10.1.3.
    Any help would be appreciated.
    Best Regards
    Navid

    Navid,
    JHeadstart checks whether the attribute definition is queryable before adding it to the list of advanced search attributes. A transient VO attribute can still be set to queryable, for a transient EO attribute this is not possible. We will remove this check on queryability in the upcoming patch release, since you have a valid use case. For now, you can subclass JhsSearchBean and override method createArgumentListForAdvancedSearch and comment out the check for "def.isQueryable()".
    Steven Davelaar,
    JHeadstart Team.

  • B2B using JMS and Processing Messages with Message Driven Beans

    We want to be able to use B2B to send messages to a JMS queue and then process messages from B2B using a Message Driven Bean. Is this supported.
    We are using B2B 10.2.0.2 with Patchset 4.

    Hello,
    In 10.1.2.0.2 B2B , as part of the internal Delivery channel B2B can only send and receive messages from JMS queues.
    Rgds,Ramesh

  • Can I use conditional and advanced actions on the same button?

    I'm fairly new to Captivate, but come from a background of flash and am struggling to use Captivate to do some things I would have expected to be fairly simple and a normal requirement.
    I want to create a screen with a number of interactive objects, in this case pictures, that the learner clicks on to display a piece of text.
    On clicking the next picture the first piece of text is hidden and a second piece shown.
    There are 6 pictures/buttons that need to work this way.
    However I also want to assess whether all the buttons have been used, as we have to force the user to view the entire slide before they continue.
    I can do the hide/show of text and buttons, and I've written a conditional action to check the variables for each button. However I don't know how/when to call this action.
    I was hoping that in my advanced action for each button I could add in a call to the conditional 'check variables' action, which would nicely fulfil this requirement, however this doesn't seem to be the case.
    I have also got animation/effects on the timeline before the images are on screen meaning I don't want to go back to the start of the timeline to use a 'on enter' event.
    I'm surprised this isn't something more people need as although it may be frowned upon out in the e-learning field, disabled navigation is frankly not going away and working for any large corporation will be a must.
    If anyone can shed some light on this, or maybe suggest a better approach then I would appreciate it.
    Thanks.

    Hi Lilybiri,
    Thank you for this, I suspected that this was going to be the way I would have to progress.
    I have to ask though, at present the company I work for uses a very straight forward off the shelf WYSIWYG elearning content designer.
    One of the core template pages is a hotspot page, which works in the way I have explained at the top.
    This is also one of the standard e-learning pages I have used in all my other positions, including when building in Flash.
    It seems incredible to me that to do such a simple, commonly used, page type we will require what is a fairly involved process rather than this being one of the page types or templates.
    I am currently trying to pilot Captivate to show how much better it is to the current product, however the other designers have no programming background and I think will stuggle with the conditional actions, meaning that this is pretty much going to be a no go which I'm gutted about...
    I think I stand a chance of teaching advanced actions but anything beyond that is unlikely initially.
    RodWard, thanks for your comments, I'm finding the actions ok in Captivate, as I say above I'm just amazed that this simple and commonly used page is so convoluted to create!
    My other frustration is the lack of control of the events, not being able to specify x and y for motions etc. but I'm finding work arounds...
    Is there a way to create my own page template? Could I write all the actions and bundle that into a page to provide the other designers so with some naming conventions they could use this functionality?
    Thanks for your help.
    Matt

  • Is it possible to use transparency AND outer glow within a composition target?

    I've created a composition which uses a bunch of buttons to show different overlays over a background image. The idea is that you can see through the overlaid images using 50% opacity (for example) to see the image underneath, thereby understanding the context of the overlaid image. I also wanted to highlight the overlaid image with an outer glow. This sort of works but I can't get the outer glow AND the opacity to work together, when applied to the state of the overlaid image. If I apply them both I lose the 50% opacity. In the end I've had to apply the 50% opacity to the composition target itself but this is not ideal as this impacts other elements within the target (such as a box with text describing the overlaid image). The outer glow and opacity work fine when applied to an image OUTSIDE of the composition e.g. a picture placed on the page.
    The link below takes you to the page I'm working on.
    All the composition targets have 50% opacity (or 75% on click) applied to the target itself and the the outer glow applied to the picture EXCEPT "Cubby Pair" which has opacity 50% AND outer glow applied to the picture. As you can see the "Cubby Pair" seems to ignore the opacity setting and is 100% opaque.
    Under the Hood (TCV-M)
    Any ideas?
    Edit: when I Preview in Muse it works but not when I view in browser (both IE and Chrome, haven't tried Firefox)

    I think I solved my own question. Instead of using "Opacity" next to the "Effects" option I have used "Fill" opacity. This appears to work fine now.

  • What is the best practice for using portrait and landscape images within a slideshow light box?

    I am trying to create an online portfolio and want to incorporate different sized images in my work. I have watched almost all of the tutorials I can find and no one really seems to address this at all.
    Each demonstration I have watched uses the same size of image (eg. all landscape close ups) to fill the enlarged viewing space of the image. But what if all images are varied?
    Friends have gone down the Wix path, where images, borders, descriptive text and arrows are  resized to suit each individual image automatically.
    Is there any way around this though?
    Thanks in advance,
    Paul

    Not sure what exactly you are asking but Muse handles the different orientations nicely without having to do anything.
    Example: http://www.cariboowoodshop.com/wood-shop.html

  • Invoking a workflow using GP and WD Java Adobe Forms

    Hi,
    I have a scenario where I want to be able to submit an Adobe Form for approval, if its approved I get info from a BAPI which populates the form, if not I just get a message saying, Not approved. So in steps i'd like to be able to:
    1) User fills in a form with input parameters,
    2) Submit form,
    3) Approver receives form for approval,
    4) Approver approves and a BAPI is invoked with the input parameters in the form, the form is populated with what the BAPI returns.
    5) Form is sent back to user.
    6) If form not approved then message sent to user.
    I want to create the Adobe form in Web Dynpro Java. I need advice as to if I should do the whole process in GP, or can I use them both together? What are the steps involved? Can this be achieved? Do we use Portal email services to send communication between the user and the approver? Any advice/help/suggestions very welcome.
    Thanks
    TM

    Hi Lisha
      For storing the data from form to workflow and from workflow to trancation it better to maintain custom table to get the details later. You can use the std FM to insert the data from the form to table in this case you need not create custom table. Tell me which module you are working on. MSS or for ESS like leave, travel, actions like seperations, transfer which one you are using.
    Regards
    vijay

  • TDMS: is it possible to use sender and receiver client within the same SID

    Hi all
    I have a general question about TDMS: i always read that it is possible to refresh data from a productive system/client to a test system/client, e.g. PRD100 => DEV100. But is it also possible to refresh data from one sender-client to the receiver-client inside the same system using TDMS, e.g. DEV100 => DEV200.
    i'm asking because if i start to build up a new client using tdms the first step is to build up the client using package "ERP Initial Package for Master Data & Customizing". This includes under point "data transfer" the step "lock the system" with teh following description:
    Lock System
    Activities
    During data deletion in the receiver client, the tables are dropped. All clients in the system are affected by this procedure. Consequently, all users in all clients in the receiver system must be temporarily locked while the data deletion takes place.
    The function for this activity locks only the current client. If the receiver system is a single client system, it is sufficient to execute the function. If, however, the receiver system is a multi-client system, the user in the other clients must be locked using standard means.
    Anyone has any experience with this scenario inside the same system?
    Regards
    Adrian

    You can run TDMS package on the same system and between different clients. However SAP don't recommend to run TDMS package on the same system.
    There are 2 ways to delete data in receiver system: Array delete and drop insert.
    You have to use Array Insert only which is usually very slow as it first select all the relevant entries from the tables in the target client and then drop it. So, it is slow.
    Drop insert is much optimized and fast but the same can not be used in this use case.
    That is the reason SAP don't recommend to have TDMS run in same system.

  • PHP and Advanced Queuing

    I am a newbie with AQ. We use PHP for our middle tier. Database is Oracle 9i. What we would like to do is to let our middle tier know of some data changes. Has anyone implemented this in PHP? For enqueuing, do I use HTTP notification? How do I dequeue that message using PHP? Please help.

    I am afraid Oracle AQ interfaces has not been directly implemented in PHP. Oracle AQ provides lots of programmatic interfaces: PL/SQL, OCI/OCCI, Java Message Service and Servlet, and VB interfaces. The most desirable way is to wrap the OCIAQ* family functions in a PHP extension.
    Alternatively, you can use AQ's SOAP interfaces in PHP, or turn to Java for this part:)

  • Use of AQ (Advanced Queuing) in OCCI

    Hi,
    Is there anybody that has used AQ with OCCI? There are some documentation provided in the Programmer's Guide for OCCI, but I'm not able to find a worked out example either in the Oracle site or the Web that demonstrates a complete setup and interaction with an AQ.
    Thanks,
    Espen

    <rant>
    Yeah, I was about to suggest sticking all the AQ interaction in a pl/sql package and passing around the XML as a Clob.
    As you'll know XML is stored in Oracle either shredded into an O-R table, or as a CLOB. So you don't gain much by using an "XMLType" anyway.
    Personally I detest XML and I'm the process of getting rid of it from everywhere I find it. Especially in AQ.
    My thinking is you either
    (1) care about the content, in which case you're better off passing around the actual data in actual types, mapped with OTT, or
    (2) don't care about the content, in which case treat the XML as an atomic Clob.
    It's not a fun game to have a Clob of XML in a an ANYDATA on an AQ. Where's the point I ask? Obey the Information Principle.
    </rant>

Maybe you are looking for