Get the return parameters of the called method of VO to bean

Hello

I have a method in my bean that calls another method of my VO. This method should return a few settings, but I Don t know how to get these of the VO in the bean.

Method to call from VO:

public static Object invokeEL (String el) {}

Return invokeEL (el, new class [0], new Object [0]);

}

public static Object invokeEL (el String, class [] paramTypes, Object [] params) {}

FacesContext facesContext = FacesContext.getCurrentInstance ();

ELContext elContext = facesContext.getELContext ();

ExpressionFactory expressionFactory = facesContext.getApplication () .getExpressionFactory ();

MethodExpression exp = expressionFactory.createMethodExpression (elContext, el, Object.class, paramTypes);

Return exp.invoke (elContext, params);

}


My method in the bean:

{} public void startExport (ActionEvent actionEvent)

invokeEL("#{bindings.exportTEST.execute}");

}


My method in the original Version:

{} public void exportTEST (ActionEvent actionEvent)

Result of an integer = *;

}


So I want to get the value of the "entire result (VO)" in my bean to use it.


I m using JDeveloper 12 c.


I hope someone can help me with this problem

Thank you

DestinatioN


Hello

As Timo said, your method return type is void. Please fix this like this:

Method in the bean:

{} public void startExport (ActionEvent actionEvent)

String voString = (String) invokeEL("#{bindings.exportTEST.execute}");

use voString

}

Method in the original Version:

public String exportTEST (ActionEvent actionEvent) {}

Result of an integer = *;

return the result;

}

:

-Asha

Tags: Java

Similar Questions

  • How to get the Caller ID of the SIM card?

    Hello

    Can I get the SIM card or in any other way caller ID. ?

    anyone has an idea about this. Please give suggestion/Reference / code for this example.

    Thank you.

    Narendra

    the two abbreviations are words smart cards related:
    Application Protocol Data Unit allows you to communicate with a card chip.
    Java Card Remote Method Invocation is the communication unit between a smartcard reader and a smart card.

    they can be used only to communicate with applications on a sim card.
    Source:
    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=29144

  • Threads Java - how to prevent the calling methods between objects

    I have two objects i.e. ObjectClass1 and ObjectClass2 and two threads Thread1 and Thread2. I need Thread1 to run the methods A and B of 1 of the ObjectClass and keep him execution methods C and D on ObjectClass2 and at the same time (at the same instance), I need Thread2 to run C and D of ObjectClass2 methods and keep him execution of methods A and B on 1 ObjectClass without producing a blockage.

    How can it be possible? I tried to use flags, but does not work for some reason any. I could also use synchronize (obj2) 1 wire and synchronize (obj1) in Thread2 - but that leads to a dead end
    public class InterlockingExample{
         public static void main(String[] args){
              
              final ObjectClass1 obj1 = new ObjectClass1();
              final ObjectClass2 obj2 = new ObjectClass2();
              //final boolean obj1Callable = false;
              //final boolean obj2Callable = false;
              Thread t1 = new Thread(new Runnable(){
                   public void run(){
                        //System.out.println("This is Thread1 ");
                        synchronized(obj1){
                                  obj1.obj1Callable = true;
                                  obj2.obj2Callable = false;
                                       try{
                                            Thread.sleep(1000);
                                            System.out.println(Thread.currentThread().getName());
                                            // We could call methods on obj1 here
                                            obj1.methodA();
                                            obj1.methodB();
                                            System.out.println("Trying to call Object2 methods");
                                            if(obj2.obj2Callable == true){
                                                 obj2.methodC();
                                                 obj2.methodD();
                                            }
                                       }
                                       catch(InterruptedException ex){
                                            System.out.println("Error occurred: " + ex.getMessage());
                                       }
                                            
                                  
                                                      
                        }
                   }
                   
              });
              
              Thread t2 = new Thread(new Runnable(){
                   public void run(){
                        //System.out.println("This is Thread2 ");
                        synchronized(obj2){
                             obj2.obj2Callable = true;
                             obj1.obj1Callable = false;
                             try{
                                  Thread.sleep(1000);
                                  // We could call methods on obj2 here
                                  System.out.println(Thread.currentThread().getName());
                                  obj2.methodC();
                                  obj2.methodD();
                                  System.out.println("Trying to call Object1 methods");
                                  if(obj1.obj1Callable == true){
                                       //System.out.println("Thread2: Cannot call obj1 methods...");
                                       //System.out.println("Thread2: obj1 methods are locked! ");
                                       obj1.methodA();
                                       obj1.methodB();
                                  }
                                  
                                  //System.out.println(Thread.currentThread().getName());
                                  
                             }
                             catch(InterruptedException ex){
                                  System.out.println("Error occurred: " + ex.getMessage());
                             }
                                                      
                        }
                   }
                   
              });
              
              t1.start();
              t2.start();
         }
         
         private static class ObjectClass1{
              public boolean obj1Callable;
              public void methodA(){
                   System.out.println("ObjectClass1: methodA() ");
              }
              public void methodB(){
                   System.out.println("ObjectClass1: methodB() ");
              }
         }
         private static class ObjectClass2{
              public boolean obj2Callable;
              public void methodC(){
                   System.out.println("ObjectClass2: methodC() ");
              }
              public void methodD(){
                   System.out.println("ObjectClass2: methodD() ");
              }
         }
         
    }
    Edited by: njguy March 1, 2011 20:01

    Edited by: njguy March 1, 2011 20:26

    Edited by: njguy March 1, 2011 20:37

    has njguy writes:
    jverd: according to your suggestion, I coded that follows, but do you not think that this would lead to a dead end for sure.

    If you are coding according to my suggestions, deadlock will be impossible.

    Please see the order in which I get the locks
    Thread1: {obj1, obj2} and Thread2: {obj2 obj1} which is the case perfect deadlock.

    This is exactly the opposite of my suggestion, and I even stated explicitly that if you do this, you define yourself in deadlock.

    What I said:

    1. you avoid deadlock so that any thread that needs to acquire lock1 both QL2 always does in a consistent order, like first on lock1, then inside this block synchronization, sync on QL2. If a son not {lock1 {QL2}} and the other not {QL2 {lock1}}, that's how you get blocked.

    Sorry if I wasn't clear enough. All threads need to acquire locks in the same order:

    //  ----- What I suggested ---
    // T1
    sync (lock1) {
      sync (lock2) {
        // stuff
      }
    }
    
    // T2
    sync (lock1) {
      sync (lock2) {
        // stuff
      }
    }
    
    // ---- What I said not to do, but you did ---
    // T1
    sync (lock1) {
      sync (lock2) {
        // stuff
      }
    }
    
    // T2
    sync (lock2) {
      sync (lock1) {
        // stuff
      }
    }
    

    Edited by: jverd March 2, 2011 09:23

  • Get the call logs & messages

    Is it possible to get Logs and Message logs call in my application?

    I want to say I want to get the details of the calls as: number, type of call (to miss or calls received), duration.

    & for the message log: number, details of the message, time.

    All suggestions are appreciated.

    Thank you best regards &,.

    Milan

    of course, use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/phone/phonelogs/PhoneLogs... and continue from there.

  • How silent Rign (phone) when getting the call

    Hello

    Need help...

    I would like to know how I can SILENT my phone when some calls...

    I hope I am clear.

    Help, please.

    Thanks in advance.

    Krishan boura

    Just press one of the volume buttons. This will disable the ringer but does not send the call to voicemail.

  • The same method works OK a bean, cause of error in another

    For the experienced:

    I use JDeveloper 10.1.3.4 and the backup of a page bean, to get an instance of a module application I do this way:
        public ZBOVStaffModuleImpl getZBOVStaffAm() {
            FacesContext fc = FacesContext.getCurrentInstance();
            ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
            BindingContext bc = (BindingContext)vb.getValue(fc);
            DCDataControl dc = bc.findDataControl("ZBOVStaffModuleDataControl");
            ApplicationModule am = (ApplicationModule)dc.getDataProvider();
            return (ZBOVStaffModuleImpl)am;
        }
    
        public String commandButton1_action() {
            ZBOVStaffModuleImpl zbovStaffModule = getZBOVStaffAm();
            // ... lines omitted
            return null;
        }
    Before you add only one line in the commandButton action method, it can be called and clicked commandButton1 without causing any problems. Now, simply by adding a line that calls the getZBOVStaffAm() method when you click commandButton1, I got the error in the browser:
    javax.faces.FacesException: #{staffLogin.commandButton1_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException
    I removed the line in the commandButton1_action() method and copied the lines of the getZBOVStaffAm() to the commandButton1_action() method method, one line at a time and run the pages and found that when this last line shown here is added, the error has been spilled in the browser:
        public String commandButton1_action() {
            FacesContext fc = FacesContext.getCurrentInstance();
            ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
            BindingContext bc = (BindingContext)vb.getValue(fc);
            DCDataControl dc = bc.findDataControl("ZBOVStaffModuleDataControl");
            ApplicationModule am = (ApplicationModule)dc.getDataProvider(); // line causing problem
            // ...
            return null;
        }
    I have no idea why this line would spill error. The getZBOVStaffAm() method is copied word for Word from another bean of support, and in this bean support, this method is called in the same way but has not caused any problems. I checked doulbe ZBOVStaffModuleDataControl data control name is correct. Hope that experienced developers would have some suggestions.

    My application is in two parts. For the part of the student, the application module is ZBOVModule. During the construction of the part of the staff, I added the ZBOVStaffModule and built pages and tested features, without joining them with cases of navigation. The bean to support one of these pages, I created this getZBOVStaffAm() methods to avoid repeating the same code. And it has worked very well.

    Now all these pages are built and worked, I restarted right at the end of the part of the student, created a diagram vacuum staff-faces - config.xml for testing each reconstructed page, adding the login page and join them in case of navigation. But leader, in the first two pages involving login and required the use of the getZBOVStaffAm(), I went to the problem described above.

    Thanks a lot for your help!

    Newman

    Hello Newman,

    I see nothing wrong in your code.
    Do you have links in your pagedefinition? If this isn't the case, you can try adding just a few link by drag / drop some attribute on the page and see.

    Sometimes back I faced the same question when I don't have the links in my pagedefinition and adding a component and linking to some datacontrol method/attribute this problem resolved. Not sure if this is a bug, but you can give it a try.

    Jean Lou

  • How to get the value of varStatus in managed Bean

    Hi all

    I use jDeveloper 11.1.2.4 version.

    I had a table with table with departments view object. I added an extra column to the table to display the serial numbers of the lines like this.

    < af:table...

    varStatus = 'vs' rowSelection = "multiple" id = "t1" binding = "#{ReferenceBeans.departmentTable}"> "

    < af:column id = "c5" headerText = "varStatus" >

    < af:outputText value = "#{vs.index + 1}" id = "ot1" binding = "#{ReferenceBeans.varStatus}" / > "

    at the bean, I get all the values of the selected line, but I don't get the varStatus value of the column.

    If I use

    Object varStatus is getVarStatus () .getValue ();.

    System.out.println("varstatus::"+varStatus);

    That's the impression first value only, but not the values of the selected line.

    varStatus.jpg

    How to get the varStatus value in the bean selected lines.

    Best regards

    Claude Reynier.

    You can get the index of the line of the ViewObject.getRangeIndexOf (row) method. Something like this:

    empIter.getViewObject () .getRangeIndexOf (currentRow)

    example:

        RowKeySet selectedEmps = getTable().getSelectedRowKeys();
        Iterator selectedEmpIter = selectedEmps.iterator();
        DCBindingContainer bindings = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
        DCIteratorBinding empIter = bindings.findIteratorBinding("EmployeesView1Iterator");
        RowSetIterator empRSIter = empIter.getRowSetIterator();
        while (selectedEmpIter.hasNext())
        {
          Key key = (Key) ((List) selectedEmpIter.next()).get(0);
          Row currentRow = empRSIter.getRow(key);
          System.out.println("FirstName" + currentRow.getAttribute("FirstName") + "  - Row Index= " + (empIter.getViewObject().getRangeIndexOf(currentRow) + 1));
        }
    
  • is Motospeak application that I use to get the caller ID?

    I recently got a razor maxx (which I love) and I'll try to find out how to get ALI talked about bluetooth headset.

    In the menu > call settings, there is a calling "ID reading" setting where you can get

    • ring only


    • caller ID then ring


    • caller ID repeat

  • Subvi hangs when it is closed after being called to a main.vi through the calling method asynchronous start

    Hi all

    I have a main.vi that loads successfully a subvi.vi using the x 100 option and Aysnchronous begin to call the method.

    When the Subvi is finished its Executive, the window remains, some controls can be used and it is really suspended. It requires a kill labview.exe solve complete.

    Note: The Subvi is running and closes smoothly by operating directly...

    I put any code in the Subvi to close in a way, because it was opened through the startup Aysnchronous method?

    Tom

    Sorry, I'm a fool, it turns out that the problem is that I had insode of lines, the main and the Sub - VI of the same name!

    Everything is good now

  • Get the call from the tech to fix PC

    original title: who was talking with me 2 day wanting almost 300.00 to fix my PC WAS not Legit? And my PC OK?

    CA: ME AS SOON AS POSSIBLE!

    or write to me as soon as possible to * address email is removed from the privacy *

    Hello, Denise HonanCottrell,

    I have included a link below that should help you with this.  Microsoft is not connect with anyone, unless they have a ticket opened by a user.  In addition, the links above ball are very good.

    Microsoft Answers site

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/i-received-a-phone-call-from-someone-claiming-i/4489f388-d6de-416d-9158-0079764bb001

    Thank you

  • Problem getting the pageFlowScope number parameter in backing bean

    Hi, I use a taskflow with parameters of type oracle.jbo.domain.Number.

    I want to replace a method in my grain of support in order to take the value of the parameters pageflowscope.

    (inMarkNbr, inColorNbr)

    But I take as the result the following error:

    Error: oracle.jbo.domain.Number cannot be cast to impossible

    Error type: class java.lang.ClassCastException

    StackTrace:

    view.backing.pages.AutoProfile8.doApply(AutoProfile8.java:17)

    Could you help me please?

    //Some Imports
    import java.sql.SQLException;
    import java.util.Map;
    import javax.faces.event.ActionEvent;
    import oracle.adf.model.OperationBinding;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import oracle.adf.share.logging.ADFLogger;
    import oracle.jbo.domain.Number;
    
    public class AutoProfile8 extends Auto{
    
        private static ADFLogger logger = ADFLogger.createADFLogger(AutoProfile8.class);
    
        public AutoProfile8() {
            super();
        }
        // here is the line of error
        @Override
        public void doApply(ActionEvent actionEvent) {
         
            Map<String, Object> map = AdfFacesContext.getCurrentInstance().getPageFlowScope();
            Object markObj = map.get("inMarkNbr");
            Object colorObj = map.get("inColorNbr");
         
            Number mark;
            Number color;
         
            try {
                mark = new Number(markObj);
            } catch (SQLException e) {
                logger.severe("Unable to find mark Number", e);
            }
         
            try {
                color = new Number(colorObj);
            } catch (SQLException e) {
                logger.severe("Unable to find color Number", e);
            }
         
    
            System.out.println(mark.getValue() + " "+color.getValue());
         
            if(mark != null)
            {
                OperationBinding oper1 = (OperationBinding) ADFUtils.findOperation("CallMethodFromAplModule");
                oper1.getParamsMap().put("markNbr", mark.getValue());
                oper1.getParamsMap().put("colorNbr", color.getValue());
                oper1.execute();
            }
         
            super.doApply(actionEvent);
        }
    }
    
    

    paste here shoot to screen with your definition of parameters TF and tell us, what exactly is the line

    view.backing.pages.AutoProfile8.doApply(AutoProfile8.java:23)

    ClassCastException occurs?

    I suspect that you are a parameter defined as impossible. The exact type of the parameter must be oracle.jbo.domain.Number, exactly that.

    In addition, a color as a set mark

    Mark oracle.jbo.domain.Number;

    color oracle.jbo.domain.Number;

    mark = new oracle.jbo.domain.Number (markObj);

    ...

  • How to get the phone # correspondent to disconnected call?

    Hi all

    My requirement is to get the call disconnected phone number, I set up PhoneListner and tried to get the number as

    PC net.rim.blackberry.api.phone.PhoneCall = net.rim.blackberry.api.phone.Phone.getCall (callId);

    But the pc is always returned null in the callDisconnected method.

    Here is my code snippet: -.

    public void callDisconnected (int callId)
    {
    Logger.SOP ("callId getPhoneNumber:" + callId);
    Logger.Debug ("callDisconnected: [" + getPhoneNumber (callId) + "]");

    }

    public String getPhoneNumber (int callId) {}
    PC net.rim.blackberry.api.phone.PhoneCall = net.rim.blackberry.api.phone.Phone.getCall (callId);
           
    if(PC == null) {}
    Returns a null value.
    }
    String phNumber = pc.getDisplayPhoneNumber ();
    If (phNumber.indexOf(' ') > 0) {}
    phNumber = phNumber.substring (phNumber.indexOf(' '));
    phNumber = phNumber.trim ();
    }
    Return phNumber;
    }

    BlackBerry OS version is: 4.6.0.92 9000 Blackberry (Bold)

    I ran this code on a simulator.

    I had similar problems, but resolved them while recording the phone number in a hash inside the callConnected/callInitiated/callIncoming... you call it.

    Hashtable phoneCallsHash = new Hashtable();
    ...
    phoneCallsHash.put("" + aCallID, phone.getCall(aCallID).getDisplayPhoneNumber());
    

    get it back later (in callDisconnected):

    (String)phoneCallsHash.get("" + aCallID);
    

    That should do it.

  • How can I get the number of callers phone number (call history) of an incoming call on iPhone by program (as TrueCaller App does)

    I try to get the caller ID (telephone number or the call history) at the time of the incoming call. TrueCaller has implemented it and they get the phone number of the caller and the call also history.

    Please help me get there.

    Tips:

    1 CoreTelephony Framework(It gives only calling states)

    2 apples 9.0 update: "Maybe" contacts sync. with the mail application and detects the incoming phone number.

    3 TrueCaller App https://www.truecaller.com/articles/iphone

    https://iTunes.Apple.com/app/truecaller-enhances-your-phonebook/id448142450

    You're talking not here who you think you are. Please read the terms of the user agreement you signed.

  • Get NameNotFoundException while trying to get the timer to start cl

    Hi all
    I'm NameNotFoundException while trying to watch the stopwatch of the startup class.

    Commonj.timers.TimerManager, I have it configured in the ejb - jar file. My MDB XML. I use the statrtup class to initialize some static immidiate of components to the active state of the MDB. I have to initialize the timer Manager object immidiate active state of the MDB that is configured in the file ejb - jar.Xml. I wrote this search logic in the postStart() of the ApplicationLifecycleListener method, the called method but the search fail logic, the same logical aspect works in class MDB (MDBTimer.java). I tried different ways, I don't find a solution, finally, I write the problem here.


    Could a WebLogic experts you can help on this?

    Here I give you my code.


    WebLogic - application.Xml


    <? XML version = "1.0" encoding = "UTF - 8"? >
    < weblogic application
    xmlns = "http://www.bea.com/ns/weblogic/weblogic-application" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd" >
    <>earpiece
    my.examples.mdb.timer.TestApplicationListener <-listener class > < / listener class >
    < / earphone >
    < / weblogic application >


    EJB - jar. XML

    < ejb - jar xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee."
    http://Java.Sun.com/XML/NS/J2EE/EJB-jar_3_0.xsd ".
    version = "3.0" >
    < some enterprise beans - >
    > by message <
    MyTimerMDB < ejb-name > < / ejb-name >
    my.examples.mdb.timer.MDBTimer < the ejb class >-
    < / ejb-class >
    < resource-ref >
    < description > my default timer Manager < / description >
    Timer/MyDefaultTimer < res-ref-name > < / res-ref-name >
    commonj.timers.TimerManager < res-type > < / res-type >
    Container < res-auth > < / res-auth >
    < res-sharing-scope > shared < / res-sharing-scope >
    < / resource-ref >
    < / message-driven >
    < / enterprise beans >
    < / ejb - jar >


    MDBTimer.java


    package my.examples.mdb.timer;

    Import javax.ejb.MessageDriven;
    Import javax.ejb.TransactionAttribute;
    Import javax.ejb.TransactionAttributeType;
    Import javax.jms.Message;
    to import javax.jms.MessageListener;
    Import javax.jms.ObjectMessage;

    Import commonj.timers.Timer;
    Import commonj.timers.TimerManager;

    @MessageDriven (mappedName = "TEST_Q" name = "MyTimerMDB", activationConfig = {}
    @javax.ejb.ActivationConfigProperty (propertyName = "acknowledgeMode", propertyValue = "Auto-reconnaître").
    @javax.ejb.ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue").
    ({@javax.ejb.ActivationConfigProperty (propertyName = "transactionType", propertyValue = "Container")})
    @TransactionAttribute (TransactionAttributeType.REQUIRED)
    / public class MDBTimer implements MessageListener {}

    public static TimerManager Manager = null;

    @Override
    {} public void onMessage (Message arg0)
    System.out.println ("onMessage () method called...\n\n");

    If (arg0 instanceof ObjectMessage) {}

    ObjectMessage msg = (ObjectMessage) arg0;
    try {}

    If (msg.getObject instanceof String ()) {}
    Thread.Sleep (1000);
    System.out
    .println ("received message > >" + msg.getObject ());
    }
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }
    System.out.println ("onMessage () method returned...\n\n");
    {if(Manager==null)}
    Manager = MyUtil.getTimerManager ();
    }
    }

    }


    TestApplicationListener.java

    package my.examples.mdb.timer;

    Import commonj.timers.TimerManager;

    Import weblogic.application.ApplicationException;
    Import weblogic.application.ApplicationLifecycleEvent;
    Import weblogic.application.ApplicationLifecycleListener;

    SerializableAttribute public class TestApplicationListener extends ApplicationLifecycleListener {}
    Public Sub preStart (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.preStart > > > >";
    System.out.println (logStr + "entered...");
    super.preStart (evt);
    System.out.println (logStr + "leveaing...");
    }

    Public Sub postStart (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.postStart > > > >";
    System.out.println (logStr + "entered...");
    super.postStart (evt);
    TimerManager timerManager = MyUtil.getTimerManager ();
    System.out.println (logStr + "timer Got Manager == >" + timerManager);
    System.out.println (logStr + "leveaing...");
    }
    Public Sub preStop (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.preStop > > > >";
    System.out.println (logStr + "entered...");
    TimerManager timerManager = MyUtil.getTimerManager ();
    System.out.println (logStr + "timer Got Manager == >" + timerManager);
    super.preStop (evt);
    System.out.println (logStr + "leveaing...");
    }

    Public Sub postStop (ApplicationLifecycleEvent evt) throws ApplicationException {}
    String logStr = "> > > > () TestApplicationListener.postStop > > > >";
    System.out.println (logStr + "entered...");
    super.preStop (evt);
    System.out.println (logStr + "leveaing...");
    }

    }


    MyUtil.java

    package my.examples.mdb.timer;

    Import javax.naming.InitialContext;
    Import javax.naming.NamingException;

    Import commonj.timers.TimerManager;

    public class MyUtil {}

    public static TimerManager getTimerManager() {}
    TimerManager timerManager = null;
    try {}
    InitialContext ctx = new world;
    timerManager = ctx (TimerManager)
    . Lookup("Java:COMP/env/Timer/MyDefaultTimer");
    System.out
    .println ("@@@Looked - up using java: comp/env/timer/MyDefaultTimer:")
    (+ timerManager);
    } catch (NamingException e) {}
    e.printStackTrace ();
    }
    Return timerManager;
    }



    }

    Podie salvation,

    I tested your program as long as your have posted in the forums. And I got the same error NameNotFoundException. After debugging some more on what I find pre-departure that until the ApplicationLifecycleListener) (as well as the postStart() method runs correctly the EJB Module isn't really gets activated laugh.. why the resource-ref <>which we specified in the file "ejb - jar.xml" doesn't get nvoked so until that time, there is no such Timer available on the server while we get NameNotFoundException.)

    If somehow we can do search for "timer/MyDefaultTimer' after the preStart() and postStart() method is executed successfully, then we have no problem.

    .
    .
    Thank you
    Jay SenSharma

  • Get the parent in the child VO inst value

    I have a master detail on the page and in a column of vo child I want to display the current line of a master vo.

    Then, how to refer to the master vo-current rank in the child attribute in line on UI? in the same fields vo can be accessed as #{rank. AttrbiuteName.inputValue}

    Maybe this can help: http://www.gebs.ro/blog/oracle/adf-bc-viewlink-viewlinkaccessor-and-groovy/
    or you can bind the value property in the retail method column in managed bean that can extract value iterator parent, something like this:

    public String getSomeFieldFromParent(){
        return (String)ADFUtils.findIterator("parentIterator").getCurrentRow().getAttribute("SomeAttribute");
    }
    

    Dario

Maybe you are looking for

  • Firefox will not keep the settings available, they keep coming back to a default value

    I used to be able to change the zoom by using ctrl_scroll and it worked fine (to fit the entire page on a single screen with no scroll bar). Now, even after I have it, as soon as I go to a new site or edit folders in gmail, it keep coming back to a d

  • How can I use the USB OTG key with my iphone more than 6 s?

    Hello dear, Unfortunately, IPhone is not support OTG flash drive with is very important to me and I want to know if there is a way to make it active or not at all! Would you please place a comment on that? Thank you Adel

  • Black screen HP Elitebook 850 after the mode 'sleep'

    Hello I have a HP Elitebook 850, which is about 3 weeks old. It is running Windows 8.1 with most of the HP software, which is available for this model, installed. Once the laptop goes into mode 'sleep' may not wake up for some reason any. The screen

  • Question of the declaration

    Hi allI have a statement EG:SELECT *.STUDENT, GRADES;Because the class uses a FK to student, the results would be,THESE ARE STUDENTS, THEY ARE RANK--------------------------------------------------------------------------------------------------STUDE

  • How to create a list of copyrights for photos used in a book

    Hi all!I do my first book for the birthday of a community organization, in which I'm involved, and I am struggeling to create an index of copyrighted material used. I tried searching the Web, but I could use the wrong term.I want to be like him is th