Entity Object Publish/Subscribe Events Wizard

Hi,
I'm interested in knowing how exactly works the Entity Objects Publish/Subscribe Events, anybody could help me? Redirecting me to any doc web page, pdf, .... or maybe telling me a little bit more that I can imagine about how it works.
Thanks in advanced.

Repost for a better format, sorry...
I did a quick test on Departments and Employees tables in HR schema.
1, Added CommissionChangeEvent as published event for Employees entity. Set the new commission value (Number) as parameter. These are the generated methods:
* Adds <code>l</code> as an event listener for the event CommissionChangeEvent
public void addCommissionChangeEventListener(JboEventListener l)
((EmployeesDefImpl)getDefinitionObject()).addCommissionChangeEventListener(l);
* Removes <code>l</code> as an event listener for event CommissionChangeEvent
public void removeCommissionChangeEventListener(JboEventListener l)
((EmployeesDefImpl)getDefinitionObject()).removeCommissionChangeEventListener(l);
* Publishes the event named CommissionChangeEvent
public void CommissionChangeEvent()
((EmployeesDefImpl)getDefinitionObject()).publishCommissionChangeEventEvent(createCommissionChangeEventEventData());
* Creates event data method for event CommissionChangeEvent
public JboEventObject createCommissionChangeEventEventData()
JboEventObject eo = new JboEventObject(this, "CommissionChangeEvent");
try
eo.put(new String("CommissionPct"), getAttribute("CommissionPct"));
catch(Exception ex)
ex.printStackTrace();
return eo;
2, Change setCommissionPct method as this:
* Sets <code>value</code> as the attribute value for CommissionPct
public void setCommissionPct(Number value)
setAttributeInternal(COMMISSIONPCT, value);
System.out.println("From EmplyeesImpl.java, Commission Pct is being changed. Firing the event...");
//fire event
CommissionChangeEvent();
System.out.println("Event fired from EmplyeesImpl.java on department ID: " + this.getDepartmentId());
3, Created a method in DepartmentsImpl.java like this:
public void eventFired(Number theNewPct)
System.out.println("In departmentsImpl: event fired with param: " + theNewPct + " on department id: " + this.getDepartmentId());
4, In Entity editor, set enentFired method as to be invoked on event.
Here's the output when change commission:
From EmplyeesImpl.java, Commission Pct is being changed. Firing the event...
In departmentsImpl: event fired with param: 0.5 on department id: 100
Event fired from EmplyeesImpl.java on department ID: 100
Looks like this is a nice inter-entity communication mechanism. It can pass paramter and recognize FK link correctly. Not sure whether it can be used to interact with external message queue, though...
Charles

Similar Messages

  • Problem with database schema objects in the entity object wizard

    Hi All,
    When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to select the synonym check box.
    Can any of you folks tell me how to enable the database schema objects (check boxes for tables,synonyms...).
    Thanks in Advance.
    Raja.M

    Make sure your using rite version of jdeveloper..
    Make sure your using apps schema and check whether your able perform DML operations in the schema vis sql developer.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • FTP-adapter does not register subscribed events

    I have installed an FTP-adapter and configured it to receive messages. I have created an application with the same name and set up a subscription to an event from an generic adapter. I have another db adapter also subscribing to the same event, and this works fine. However the ftp adapter does not receive the subscribed event. I have checked the MESSAGEINFOIDTABLE table, and the subscription between the FTP adapter and the genric adapter is not registered here. I have tried to resintall the adapter several times using different names etc, but it does not seem to register. Anyone had this situation before, or does anoyone have any tips?

    Audun,
    This is very strange. You haven't got 2 environments have you? Developing on one, but looking at another? Sorry for the dumb question, but I've done that before!!
    If you have 1 event, 1 publishing and 2 subscribing, then your count on the MESSAGEINFOIDTABLE table for this event should be 3.
    Have you tried pushing the metadata in iStudio to your FTP Adapter? Or restarting the FTP Adapter?
    You've definately subscribed to the correct Business Object and Event when mapping your message from Common View to Subscribe view?
    Your repository may be all screwed up. This can happen. iStudio doesn't have the best history! When you've reinstalled the adapter again, or re-designed the message again and again, you could have orphaned objects all over the place preventing proper message design taking place.
    As a sanity check, stop all services connecting the repository (iStudio, Adapters, OEM, sqlplus etc.) Save / backing up your current repository using the "oaiexport" script.
    Once you done that, drop the existing repository, and create a new fresh one. (use the "hubschema" -drop, then -create script).
    Just try creating that same single message design again with just one publishing and one subscribing adapter.
    If you still have the same problem, then I think it is one for Oracle Support.
    Good luck,
    Yan

  • XControl publish subscribe?

    Hi all
    I'm trying to implement a publish subscribe messaging pattern using XControls and LVOOP.
    I have various XControls which represent different views of the state of an object.
    I want all my XControl (clients) to be updated when the object (publisher) changes its state.
    I've achieved this sort of functionality before using VI's running in sub-panels that wait on a user event created by the publisher.
    I gather dynamic events are not available with XControls, so have tried to create a list of XControl clients that could be notified by a XControl method call.
    I've found a way of notifying individual clients by creating a method that fires the Display State ability but really want to manage all the XControls as a collection.
    An array can't seem to store references for the XControls as each is a different type.
    I've also tried using a Data Value Reference for each XControl reference hoping that this generic type could be stored in an array but no joy.
    The only way I've found is for the main vi to register for the publisher user event and then call the notification method of each XControl explicitly.  This messes up the main vi and is not an elegant solution.
    Does anyone know a way of achieving my desired functionality?
    Thanks in advance for any responses!
    Phill
    Solved!
    Go to Solution.

    Thanks tst
    I have attached a little sample of what I thought might be nice.
    I am building a P&I diagram out of DSC elements.
    The valve will ultimatly get more properties like OPC tags, names etc.
    I thought to attach the pipes to it so they get automatically activated, when the valve turns on.
    But I guess that would require some extra programming anyway because there will be two endpoints on the sides of the pipe to control a flow.
    Casting to more generic, even only a control, is obviously not possible. 
    Hierarchy for Xctrl is also not provided, no inheritence.
    Is there any another way to have a class with a Control style FP ?
    I am still at the beginning of the project so I have more options to think of......
    Gabi
    7.1 -- 2013
    CLA
    Attachments:
    Valve.zip ‏149 KB

  • Apreciating the Entity Object;

    Hi to all;
    From Steve Muench, Apreciating the Entity Object;
    On the Publish panel, you define events that your entity object will use to notify others of changes in its state.
    how to work with them? we have some sample code ?
    Very thanks;

    Hi Sumit,
    Yes I agree on that front that updating the same record through PLSQL and EO is not the right approach.
    But the business requirement is as such and we do not have any workaround for this.
    Please let me know if there is any way to avoid the EO commit by removing from transaction listener.
    Regards,
    Kiran

  • Bpel process subscribing event not work

    Hi all,
    I have a process subscribing to an AbortWithdraw event by receive activity, then a mediator to publish this AbortWithdraw event.( previously, I try publish and subscribe the event both by bpel process, but fail to receive, then found a post at the forum said that cannot publish event by process).
    in my test, I initial the process and then initial the mediator, however, the mediator publish the event successfully, but the process cannot receive the event.
    Sep 12, 2010 4:23:45 PM Waiting for event "{http://schemas.oracle.com/events/edl/AbortWithdrawEvent}AbortWithdraw" from the event delivery network.Waiting for event "{http://schemas.oracle.com/events/edl/AbortWithdrawEvent}AbortWithdraw" from the event delivery network.
    Sep 12, 2010 4:24:03 PM Published event "{http://schemas.oracle.com/events/edl/AbortWithdrawEvent}AbortWithdraw"
    did anyone has experience about the event delivery network? thanks.

    Aha
    I get the following exception occuring.
    ## download =C:\DOCUME~1\cbell\LOCALS~1\Temp\bpaserver_download20348.zip
    ## download =C:\DOCUME~1\cbell\LOCALS~1\Temp\bpaserver_download20349.zip
    java.io.IOException
    at oracle.ide.net.URLFileSystem.copy(URLFileSystem.java:297)
    at oracle.tip.tools.ide.common.bpeldesigner.util.Helper.copyFiles(Helper.java:130)
    at oracle.tip.tools.ide.pm.projectwizard.JDevProjectBuilder.createExistingBluePrintProject(JDevProjectBuilder.java:144)
    at oracle.tip.tools.ide.pm.projectwizard.JDevProjectBuilder.createIDEProject(JDevProjectBuilder.java:71)
    at oracle.tip.tools.ide.pm.projectwizard.BPELProjectWizard.handleFinish(BPELProjectWizard.java:57)
    at oracle.tip.tools.ide.common.graph.wizard.JWizard$1.run(JWizard.java:400)
    at java.lang.Thread.run(Thread.java:595)
    Think I may raise an SR.
    Cheers
    Chris

  • Problem with using multiple Entity Objects in a view Object.

    Hi
    Thank you for reading my post
    I have create 3 Business components for 3 of my database tables and now
    I must add 3 tables in a View object so i used Jdeveloper Wizard to create the View Object.
    -I Add Entity Objects which are business components to this view (In Step 2 of the Create Vview Object wizard).
    -In step 3 that I add Attributes all my attributes are marked as Transient
    Can some one explain why it happens?
    I need one of those tables to be updateable and two other tables are not updateable.
    What should should i do to achieve this?
    I should say that tables does not have any database relation (Foreign Key I Mean).
    Thanks.

    Hi user505214
    When you created your VO, on selecting the second EO, you'll note at the bottom of the same page on the wizard/editor, checkboxes for updatable or by reference. By default reference is checked and this will make your second EO's attributes transient.
    In the JDeveloper Developer's Guide for 4GL/Forms programmers, the following sections outline the difference between updatable or by reference:
    7.5 Including Reference Entities in Join View Objects
    27.9 Creating a View Object with Multiple Updatable Entities
    Make sure to read 27.9 if updatable is what you want as it indicates you may need to add some additional code.
    Hope this helps.
    CM.

  • Dynamic Creation of Entity Objects (ADF Business Components)

    Hi All,
    We have a requirement to create Entity Objects for the dynamically generated tables in our application and at the same time bind them to different views.
    Our product create multiple tables at runtime with some sort of naming convention, and we couldn't find a way in JDeveloper to generate entity objects for the tables created dynamically.
    Please provide some pointers if you have experienced or worked on similar requirement.
    Thanks,
    Nikhilesh

    Thanks for the help Sudipto.
    The link which you have shared, describes the creation of an entity object and then modify the operations like Delete Update and Insert etc to be performed on the entity object by creating IMPL classes and implementing certain interfaces.
    But I need to create Entity objects dynamically. My application creates new tables for some functionality at the run time and I have to create Entity objects for those new tables as soon as the new tables are created.
    I was just wondering if, there is any API available for creating the entity object from Java code instead of invoking the wizard in the Jdeveloper.

  • How in ABAP do you develop a class to publish an event externally

    Hi all,
    I am trying to publish equipment information to multiple systems using ECC 6.0 and PI 7.1
    Here are two articles which I have read which were very useful
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/800e2826-718c-2a10-f680-d6b29f0dce18
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0334534-aa28-2b10-a3a2-9ed4135727ed
    High level overview of what I've done is as follows.
    PI
    - I developed a generic Service Interface called Asset_Sync and mapped this to a non SAP backend system to persist the equipment information (this all works fine).
    - I also published the Sender Agreement for Asset_Sync to ESR
    ECC 6.0
    - I generated a client proxy ZEFI_CO_ASSET_SYNC from the ESR entry for Asset_Sync
    - I used transaction SWF_BAM and have created an event linkage for object type EQUI event Changed
    Here is where I am stuck
    I now need to define the Proxy object to publish the equipment information to PI.
    I am not sure if I have to extend the object EQUI to ZZEQUI and whether I need to create a method execute-synchronous.
    I am really looking for some sample code of how to create the Proxy object and link it to the event.
    Regards,
    John
    P.S.
    I have coded a test program which calls the proxy and sends the information to PI and then to the third party system it looks as follows and works fine, it is just a shell right now once I have finished linking it to the event I will enhance the message interface and pass real values (for now my mapping in PI just hardcodes enough data so the publish to the back end system works). Basically althugh this works I need to execute this automatically from the event being triggered and hence need to move this into a proxy with event linkage.
    FORM CREATE_ENTITLEMENT .
      DATA: lv_assset_sync_req TYPE ZEFI_ASSET_SYNC_REQUEST,
            lv_assset_sync_resp TYPE ZEFI_WSRESPONSE1.
      CREATE OBJECT lv_asset_sync_proxy
        EXPORTING
          LOGICAL_PORT_NAME = 'ASSET_SYNC_DX3'.
    *TRY.
    *TRY.
    CALL METHOD LV_ASSET_SYNC_PROXY->ASSET_SYNC
      EXPORTING
        OUTPUT = lv_assset_sync_req
      IMPORTING
        INPUT  = lv_assset_sync_resp.
      Write :/ 'Status : ', lv_assset_sync_resp-WSRESPONSE-STATUS.
      WRite :/ 'Code : ', lv_assset_sync_resp-WSRESPONSE-CODE.

    Hi all,
    I thought I'd give an update.
    After reading a number of articles and documentation (see below).
    It appears it may be easier to create a new class using SE24 rather than extending the Business Object in SWO1.
    I've done the following which works via a user-exit.
    a.     Create Class ZZEQUI
    b.     Create an Instance Dependent Object to Publish the Entitlement
    c.     Leverage User Exit MV50AFZ1 - FORM USEREXIT_SAVE_DOCUMENT_PREPARE
    d.     Created Include ZSDI_DELIVERY_PUBLISH
    i.     Loops through serial numbers
    ii.     Create Object LV_ASSET EXPORTING EQUNR = LV_EQUNR
    iii.     CALL LV_ASSET->Publish.
    If I add the Interface IF_WORKFLOW to my class then I may be able to be trigger it from SWF_BAM.
    The solution I have is working, if I decide to go with BAM and have additional questions I'll raise this in either the workflow or ABAP Objects forums.
    Regards,
    John
    Addtional articles and documentation
    i.     Business Object Macros http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4ad23453d11d189430000e829fbbd/frameset.htm
    ii.     Integrating Abap Objects with Workflow http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0409e6c-d213-2d10-3cb6-c12d417626c1
    iii.     Why Use ABAP OO with workflow /people/jocelyn.dart/blog/2006/06/19/why-use-abap-oo-with-workflow
    iv.     ABAPOO for WUG http://wiki.sdn.sap.com/wiki/display/HOME/2.Designand+Development#2.DesignandDevelopment-HowcanIuseABAPOOClassesinWorkflow%3F

  • Publish Subscribe Server with Filters

    Has anyone managed to get the WebLogic Server 10.3 HTTP Publish/Subscribe server to work with message filters?
    With a message filter configured, running with the Sun JVM I see errors of the following type (JRockit gives an error at the same point but it has less information) when I send a message via JMS:
    <02-Sep-2008 10:43:23 o'clock BST> <Warning> <HTTP Pubsub Server JMS support> <BEA-2152103> <Error occurs when retrieving message from JMS topic.
    weblogic.jms.common.JMSException: [JMSClientExceptions:055115]Error deserializing an object
    at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:190)
    at com.bea.httppubsub.jms.internal.TopicListener.fetchBayeuxMessageFromJmsMessage(TopicListener.java:97)
    at com.bea.httppubsub.jms.internal.TopicListener.onMessage(TopicListener.java:70)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
    Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: com.bea.httppubsub.bayeux.messages.DeliverEventMessage
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    Truncated. see log file for complete stacktrace
    My filter is not being invoked (I just throw an exception in the filter and I've also tried setting a breakpoint there in debug mode and neither get hit).
    My weblogic-pubsub contains the following:
    <wlps:message-filter>
    <wlps:message-filter-name>myFilter</wlps:message-filter-name>
    <wlps:message-filter-class>pubsubtest.filters.SecurityFilter</wlps:message-filter-class>
    </wlps:message-filter>
    <wlps:channel>
    <wlps:channel-pattern>/abc/**</wlps:channel-pattern>
    <wlps:jms-handler-name>abcJmsHandler</wlps:jms-handler-name>
         <wlps:message-filter>myFilter</wlps:message-filter>
    </wlps:channel>
    The class name is definitely correct because the app fails to publish entirely if it is not. I have the pubsub library referenced in my weblogic.xml and it works without the filter so that suggests that the pubsub server is deployed.
    Anyone have any ideas?
    -Shaun

    I'm not familiar with HTTP pub/sub.
    My one guess is that the server is attempting to deserialize an Object that's embedded within a JMS Object message, but the classpath is missing required classes in order to instantantiate the Object. In which case the solution is to ensure that the classpath includes any classes that might be embedded within the message object.
    If this doesn't help, can you post the full stack trace? The posted stack trace is truncated but the full trace should be in the log, as per the message "Truncated. see log file for complete stacktrace".
    Tom

  • ADF: use of view link Accessor in Entity Object = always null?

    Hi,
    JClient 9.0.5.2, adf model.
    I would like to use the view link accessor method in the master EO to retrieve detail EO values and the view link accessor method in the detail EO to retrieve master EO values.
    Detail Rule:
    In the detail EO an attribute is derived from an attribute of the master EO: detail attribute = master attribute.
    Master Rule:
    In the master EO an attribute is derived from the detail EO: master atribute set to 0 if detail EO exist else set to 0.
    Tables:
    Table Master => MasterEO => MasterVO
    - masterPK (not updateable)
    - masterField (not updateable)
    - hasDetailsFlag
    Table Detail => DetailEO => DetailVO
    - detailPK (not updateable)
    - masterPK => foreign key (not updateable)
    - masterField (query only)
    MasterDetailLink based on foreign key.
    In link wizard I asked for the generation of following accessors in the source & destination Entity Objects:
    In DetailEO accessor name: RetrieveFromMaster
    In MasterEO accessor name: RetrieveFromDetail
    In the DetailEO, I asked for the generation of the DetailEOImpl file, accessors and create method.
    As wriiten in the file, before the create method:
    ** Add attribute defaulting logic in this method. **
    I tought this is the place to retrieve the master attribute:
    The code:
    MasterVORowImpl masterVO = getRetrieveFromMaster();
    if (masterVO == null)
    System.out.println("MasterVORowImpl masterVO create NNNNNNNNNNNUUUUUUUULLLLLLLLLL");
    The masterVO is always null?
    I suppose I didn't understand something, my guest is that ViewObjects may not be used for default logic?
    I know how to implement those rules in the database with triggers.
    I think that the data I need for implementing those rules exist somewhere at the ADF level so retrieving the data from the db is not necessary?
    Could somebody give some clues?
    I didn't find a similar example in the Business Rules in BC4J document.
    Your help will be appreciated
    Frederic

    Hi,
    Detail Rule, copy attribute value form master.
    In DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    super.create(attributeList);
    Master rule, set flag to 0 if no details else set to 1.
    In the MasterEOImpl added method to check if detail row exists based on Row Iterator => no db retrieval?
    This method also sets the flag accordingly:
    protected void checkHasOtherDetails()
    oracle.jbo.RowIterator ri = this.getRetrieveFromdetail();
    ri.last();
    // last() must be called else hasNext() returns true even on last delete ???
    Number hasDetails = Constants.NUMBER_NO; // = 1
    if (ri.hasNext() || ri.hasPrevious())
    hasDetails = Constants.NUMBER_YES; // = 0
    if (!getHasDetailsFlag().equals(hasDetails)) {
    this.setHasDetailsFlag(hasDetails);
    I call this method in the remove method of the detailEOImpl:
    public void remove()
    this.getRetrieeFromMaster().checkHasOtherDetails();
    super.remove();
    To set the flag I added follwoing code in the create method of the DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    **** ADDED ***
    Number masterHasDetailsFlag = getRetrieveFromMaster().getHasDetailsFlag();
    if (!masterHasDetailsFlag.equals(Constants.NUMBER_YES)) {
    getRetrieveFromMaster().setHasDetailsFlag(Constants.NUMBER_YES));
    super.create(attributeList);
    One more question:
    Is there a danger of calling last() on row iterators in create/update/remove methods of *Impl files?
    => current row changed => any effect on display in JPanel
    Thanks
    Frederic
    PS All variable/method/class names have been manually renamed in this code so some small syntax problems may exist.

  • How to recieve the value in subscribe event??

    Hi, I have to pass selected data in publish event and recieve the value in subscribe event..
    e.g:-publish event----
    data : {
              context : evt.getSource().getBindingContext(),
              selectedValue : model [
                                                  evt.getSource().getBindingContext()

    Hi Kelvin,
    I suppose you select one list item and you want to pass that selected list item to another view.
    Follow these steps:
    1. Create a variables like "var selectedListItem,bindingContext,itemTitle;"
    2. Your list( I suppose you are using StandardListItem) must have an evenhandler for list "select" event like following:
         <List id="yourList"
              select="onListSelect"
              mode="SingleSelectMaster"
              items="{/yourbindingpath}">
         <items>
              <StandardListItem
                   title="{titleBinding}" />
         </items>
         </List>
    3. Create "onListSelect" event handler in your view controller which will give you selected item. Store that value in variable "selectedListItem" and pass it to your publish method.
         onListSelect : function(oEvent){
              bindingContext= oEvent.getSource().getBindingContext();
              itemTitle= listItem.getTitle();
    Regards,
    Rauf

  • Primary key in Entity Objects. How?

    Hi!
    I'm using Jdeveloper 9.0.3.3. I have a table with primary keys: CliId and Id. I make an entity object and choose primary key option for Cliid and Id in the entity. Now i make an viewObject from the entity object. In the viewObject, there are 2 key attribute: Cliid and Id. Now i'm generating with Jdeveloper 9.0.3.3 a standard uix page and i want to update a record, but it doesn't works. I become a bc4j error message: 'begin insert into....'.
    In the UIX code i made the rowDef autocreate="true":
    <bc4j:viewObjectDef name="CnedViewUsage" rangeSize="1">
    <bc4j:rowDef autoCreate="true" "CurrentCnedViewUsage">
    <bc4j:propertyKey name="key">
    </bc4j:propertyKey>
    </bc4j:rowDef>
    </bc4j:viewObjectDef>
    so
    if the propertyKey can't catch bc4j rowkey form url, it makes a new row. There is the problem...why doesn't catch the the propertyKey the bc4j key form the url? If i check out CliId primary key from entity and key attribute from ViewObject, it begins to work.. But in the database they together are primray keys.. Has anyone an idea?
    Thanks: Gabz

    Does your ViewObject use more than one entity? If so, then the Key that you are using in the ViewObject probably contains the key attributes of each Entity. You can go to the attributes section of the ViewObject Wizard and click off any "Key" checkboxes for attributes that aren't a part of your "primary" Entity.
    Mark

  • HOWTO: Expose Entity Object Methods to Clients

    By design, clients cannot directly access entity objects. The view object layer provides an extra layer of security--you can choose exactly what data and methods you want clients to see.
    This HOWTO describes the process of exposing an entity object method to client programs.
    First, if you don't already have one, you must base a view object on your entity object and add the view object to your data model. For full details of how to do this, see the help topics under
    +Developing Business Components
    --Working with View Objects, View Links, Application Modules, and Clients
    +----Creating and Modifying View Objects, View Links, Application Modules, and Clients
    For the purposes of this HOWTO, we'll assume that you already have an entity object, Employees, with a method on it, calculateBonus(),
    and a view object EmployeesView based on Employees.
    First, you must generate a view row class. A view row represents one row of the view object's cache; it corresponds to a view of a particular entity object.
    To generate a view row class:
    1. Right-click EmployeesView and choose Edit.
    2. In the View Object Editor, select the Java page.
    3. Select Generate Java File and Generate Accessors for the view row class.
    4. Click Done. This creates a class called EmployeesViewRowImpl.
    Next, you should add a "delegator" method to the view row class--a public method with the exact same signature as the entity method, that simply calls the entity method. For example:
    public int calculateBonus(int rating) {
    return getEmployees().calculateBonus(rating);
    Next, you should export this method.
    1. Right-click EmployeesView and choose Edit.
    2. In the View Object Editor, select the Client Row Methods page.
    3. Shuttle the method you just created into the Selected list and click Done.
    This creates an interface called EmployeesViewRow that contains your method.
    Now you can call the method from your client. You should cast the row returned by EmployeesView.current(), the <jbo:Row> tag, or a similar method or data tag to EmployeesViewRow.
    For example,
    <jbo:Row id="myRow" datasource="ds" action=Current>
    <% out.println(((EmployeesViewRow) myRow).calculateBonus(3)); %>
    </jbo:Row>
    null

    Hi Lisa,
    There's a difference between exporting methods (on an application module, view object, and view row--this is done on the "Client Methods" tab of the view object and application module wizards and the "Client Row Methods" tab of the view object wizard) and making an application module remotable (which is done on the "remote" tab of the application module wizard).
    You should always export methods you want clients to use--and you only need to do this on the application module if you've written methods on your application module (which I didn't in this HOWTO). You can still use these methods in local mode--the interfaces will be present locally. The advantage of exporting methods is that it doesn't lock you into local mode--you'll be able to change to remote mode later (if you decide that's the way to go) with minimal changes--because the interfaces will be present locally even when the implementation classes aren't.
    By contrast, you should only make an application module remotable if you're planning on deploying in a non-local configuration. You can do this step right before deployment.
    Hope this helps,
    Avrom
    null

  • How to create entity object (Business Component) using service interface

    Hi,
    I have tried to create one entity object (ADF Business Component) in JDeveloper 11g using service interface option instead of database schema but getting Failed to read service WSDL URL: http://....?wsdl message.
    I have tried with axis default service Admin & Version wsdl and got same error message.
    Regards,
    Devang

    Hi,
    +"Oracle ADF Business Components application modules offer built-in support for web services and for publishing rows of view object data as service data objects (SDOs). This means that you can use an application module both as a local component and as a remotely accessible service, thereby using the same component to support interactive web user interfaces and web service clients. Entity objects that you create in your local Business Components project can utilize SDOs that the service-enabled application module exposes on its service interface."+
    This means that you don't use Axis services but ADF Business Components Services. I am not sure this functionality made it in Boxer, but surely will in the next
    Frank

Maybe you are looking for

  • Unable to find class oracle.panama.personalization.login

    oracle.jsp.parse.JspParseException: Line # 21, Error: Unable to find class for bean: login defined by tag with class: oracle.panama.personalization.login I get this message when trying to go to "http://{hostname}/papz/login.jsp" window 2k, Oracle 8.1

  • Synchronous communication of JDBC adapter with BPM

    Hello XI-Experts, Could you please give me example where BPM is having a Synchronous communication with JDBC adapter?? plz do help. Thanks & Regards, Vanita

  • Horizontal Navigation?

    Is there a way to make a navigation bar with items that line up horizontally?

  • Cam detection in mac OS X

    I've succesfully plugged in my new webcam and it works perfectly with IM applications. But Flash Player doesn't recognize it for web based video chat. It instead only proposes to use my integrated cam. Any help is welcomed...

  • DXE compiler error

    Hi all, I am using obiee 11.1.1.5. When I apply group by in advance tab in an answer,It is not allowing me to add a map in the answers, It throws below error. However table in the analysis works fine, even after adding group by in advance tab. View D