Flow of java logic

This question is as beginner as beginner can get.
History: I've programmed in Basic, fortran and cobol back when computer programs were input on computer cards.
Problem: Understanding the basic flow of logic in the java programs.
Situation: I am used to running a program from top to bottom. You know, using the old goto statements to move around and loops to redo things. Well, My problem is understanding the flow of the basic java program.
Sinerio:
1.) An HTML page runs a java applet. (I can do that, no problem)
2.) Applet runs and prints a picture on the screen. (I can do this too)
3.) Here is the confusing part...I've wanted to make it so on mouseOver(over the image), the image flops horizontal. There are multiple images all over the page. (I'm not looking for the code so please don't spend the time...but the thought is appreciated)
So, lets say the basic structure of the program is...
public void init()
public void start()
public void run()
public void paint(....)
private void displayImage(....)
public void stop()
Now, the questions:
Initially, I can understand that the flow is to run the init area, the start area and then the run area. And, so and so forth depending on the programming. The confusing part is, lets say, a person moves the mouse back onto one of the image areas, does the program restart at the init area or at the run area? For this question, assume that the mouseOver routine has no code in it.
Confused?.....I am. :)

does the
program restart at the init area or at the run area?No.
You might want to google for an intro to event-driven programming.
What happens is this (roughly--I don't do GUIs, so some details are probably wrong):
You add buttons and panels and icons and whatever to your GUI.
You add EvenListeners (such as MouseListeners) to these GUI elements.
There's a thread running that you don't really see that is fed all the GUI events. When you called addMouseListener() or whatever, you told this thread of your interest in certain events.
When a GUI event occurs, the GUI thread looks to see which listeners have expressed interest in the particular event, and calls their respective mouseOver or buttonClicked or whatever methods--often called "callback" methods.
The mysterious GUI thread is probably what's confusing you. It is effectively an infinite while loop that just waits for the VM to inform it of an event (of which the VM has been informed by the OS) and when an event occurs, it informs the appropriate listeners, then goes and waits for the next event.
This thread is started when you create GUI elements or draw them or something--not sure exaclty what triggers it, but something pretty fundamental in the Swing or AWT classes kicks this thread off when you do something that indicates you'll need to handle these events.
If you're confused by the notion of a "thread", check out http://java.sun.com/docs/books/tutorial/essential/threads/

Similar Messages

  • Page Flow and Java Control interaction

    Hi everybody !
    Even after to read some documents like
    http://dev2dev.bea.com/pub/a/2004/06/wlw_internals.html
    and
    http://dev2dev.bea.com/pub/a/2004/01/jones.html
    i still didn't get what is really happening "behind the scenes" between Page Flows and Java Controls (Workshop 8.1). I would be glad if anyone could send to me more detailed documentation or explanation about this subject.
    How can a Java Control to stand behind a Stateless Session Bean (GenericStatelessSLSB) and still to keep its internal state (instance variables) consistent ? How can a statefull Java Control to remain statefull being accessed by a stateless component (the EJB) ? Or is the source code of a Java Control (the JCS file) kept by the Page Flow and sent to EJB for its execution ?
    Thanks in advance.

    Hi Daniel
    I have attached a doc I created that explains what happens behind the scenes
    when a pageflow call a JCS va a JWS calling a JCS.
    Can you please go through the document and let me know any questions you may
    have?
    Thanks
    Vimala
    <Daniel Lima> wrote in message news:[email protected]..
    Hi everybody !
    Even after to read some documents like
    http://dev2dev.bea.com/pub/a/2004/06/wlw_internals.html
    and
    http://dev2dev.bea.com/pub/a/2004/01/jones.html
    i still didn't get what is really happening "behind the scenes" between
    Page Flows and Java Controls (Workshop 8.1). I would be glad if anyone
    could send to me more detailed documentation or explanation about this
    subject.
    How can a Java Control to stand behind a Stateless Session Bean
    (GenericStatelessSLSB) and still to keep its internal state (instance
    variables) consistent ? How can a statefull Java Control to remain
    statefull being accessed by a stateless component (the EJB) ? Or is the
    source code of a Java Control (the JCS file) kept by the Page Flow and
    sent to EJB for its execution ?
    Thanks in advance.

  • Error in Java 'Logical handle no longer valid'

    Created 2 objects and 1 collection in Oracle.
    CREATE TYPE exe_grant_scr_dtls_t AS OBJECT
         grant_id                    VARCHAR2(8),
         option_price               NUMBER(9,4),
         option_type               VARCHAR2(3),
         total_shares               NUMBER(11),
         exercise_details          EXERCISE_SCR_DTLS_LIST
    CREATE TYPE exercise_scr_dtls_list AS TABLE OF exercise_scr_dtls_t
    CREATE TYPE exercise_scr_dtls_t AS OBJECT
         exercise_id               VARCHAR2(20),
         exercise_date          DATE,
         exercise_type          VARCHAR2(15),
         shares_exercised          FLOAT,
         total_option_value     FLOAT,
         exercise_price          FLOAT,
         total_exercise_value     FLOAT,
         gross_proceeds          FLOAT,
         taxes                     NUMBER,
         net_proceeds               FLOAT
    THE OBJECT VIEW For retrieving data for the same is as follows:
    CREATE OR REPLACE VIEW EXE_GRANT_SCR_DTLS_VW of "SSTUSER".EXE_GRANT_SCR_DTLS_T WITH OBJECT IDENTIFIER (grant_id) AS SELECT g.grant_id,
    g.option_price,
         g.option_type,
         g.total_shares,
         CAST(MULTISET(SELECT x.exercise_id,
                                       x.exercise_date,
                                       DECODE(x.exercise_type, 'Same-Day Sale', 'SDS', 'Sell to cover', 'STC', x.exercise_type),
                                       x.shares_exercised,
                                       x.shares_exercised * g.option_price,
                                       x.exercise_price,
                                       x.shares_exercised * x.exercise_price,
                                       x.taxable_income,
                                       x.total_taxes,
                                       nvl(x.taxable_income,0) - nvl(x.total_taxes,0)
                        FROM stockadm.sst_exercise_vw x
                             WHERE x.grant_id = g.grant_id
                        ) AS exercise_scr_dtls_list
    FROM stockadm.sst_grant_vw g
    When we try to access the 'exercise_details' in the readSQL method of the Java object it gives us the error that 'Logical handle no longer valid'. This happens at the following step in ReadSQL.
    Object[] o = (Object[])a.getArray();
    This error occurs when we are using a connection from the Connection pool,. If however, we use the same code, bypassing the Connection pool , the above statement work.
    How can we resolve this issue? We are using Oracle 8i for our application.

    Hi James,
    I basically happens when a connection instance is refered, which was closed by another thread. It depends on the code, how you use connection pooling.
    Post the connection pooling code, so that we can have a look.
    Regards
    Elango.

  • Problem in invoking a BPEL flow using java client

    Hi,
    We are new to BPEL. We tried invoking a flow (assign, invoke, assign) from a java client and we are facing the following exception :
    =========================
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting f
    or response has timed out. The conversation id is null. Please check the process
    instance for detail.
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}hostname: alk3wks30a
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response ha
    s timed out. The conversation id is null. Please check the process instance for
    detail.
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
    .java:251)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
    java:168)
    at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
    alizationContextImpl.java:1001)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parse(Unknown Source)
    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
    tionContextImpl.java:242)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
    at org.apache.axis.client.Call.invoke(Call.java:2515)
    at org.apache.axis.client.Call.invoke(Call.java:2210)
    at org.apache.axis.client.Call.invoke(Call.java:2133)
    at org.apache.axis.client.Call.invoke(Call.java:1656)
    at SampleClient.initiate(SampleClient.java:87)
    at SampleClient.main(SampleClient.java:126)
    ==========================================================
    Here is our java client.
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.XMLType;
    import javax.xml.rpc.soap.SOAPFaultException;
    import org.apache.axis.client.Call;
    * @version 2.0 $Date: 07-mar-2005.05:07:45 $
    * @author Copyright (c) 2004 by Oracle. All Rights Reserved.
    public class SampleClient
    private static QName SERVICE_NAME;
    private static QName PORT_TYPE;
    private static QName OPERATION_NAME;
    private static String SOAP_ACTION;
    private static String STYLE;
    private static String THIS_NAMESPACE = "http://xmlns.oracle.com/Hello";
    private static String PARAMETER_NAMESPACE = "http://xmlns.oracle.com/Hello";
    private String location;
    static
    SERVICE_NAME = new QName(THIS_NAMESPACE,"Hello");
    PORT_TYPE = new QName(THIS_NAMESPACE,"HelloPort") ;
    OPERATION_NAME = new QName(THIS_NAMESPACE,"process");
    SOAP_ACTION = "process";
    STYLE = "document";
    public void setLocation(String location)
    this.location = location;
    public void initiate() throws Exception
    try
    /* Create Service and Call object */
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService( SERVICE_NAME );
    Call call = (Call)service.createCall( PORT_TYPE );
    /* Set all of the stuff that would normally come from WSDL */
    call.setTargetEndpointAddress( location );
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, SOAP_ACTION);
    call.setProperty( Call.OPERATION_STYLE_PROPERTY , STYLE );
    call.setOperationName(OPERATION_NAME);
    call.addParameter(new QName(PARAMETER_NAMESPACE,"input"), XMLType.XSD_STRING, ParameterMode.IN);
    //call.setReturnType(new QName(PARAMETER_NAMESPACE,XMLType.XSD_STRING));
    call.setReturnType(new QName("http://www.w3.org/2001/XMLSchema","string"));
    Object[] params = new Object[1];
    params[0] = new String("Sanju");
    /* Invoke the service */
    String result = (String)call.invoke(params);
    System.out.println( "UseStockReviewSheet BPEL process initiated"+ result );
    catch (SOAPFaultException e)
    System.err.println("Generated fault: ");
    System.out.println (" Fault Code = " + e.getFaultCode());
    System.out.println (" Fault String = " + e.getFaultString());
    catch (JAXRPCException e)
    System.err.println("JAXRPC Exception: " + e.getMessage());
    catch (ServiceException e)
    System.err.println("Service Exception: " + e.getMessage());
    public static void main(String[] args) throws Exception
    //String symbol = "ORCL";
    String location = "http://localhost:1000/orabpel/default/Hello/1.0";
         SampleClient client = new SampleClient();
    /* if(args.length == 1)
    symbol = args[0];
    else if(args.length ==2)
    location = args[0];
    symbol = args[1];
    client.setLocation( location );
    client.initiate();
    Please help us in fixing the problem
    Thanks In Advance

    Hi,
    Thanks a lot for your reply. When we tested the process flow in BPEL console it is giving desired output. The exception trace in the dos console is as following
    ======================================
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFro
    mValue(BPELAssignWMP.java:490)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__execu
    teStatements(BPELAssignWMP.java:122)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:188)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3408)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1836)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:166)
    06/07/04 18:08:01 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM
    emory(DispatchHelper.java:252)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEng
    ine.java:5438)
    06/07/04 18:08:01 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(Cu
    beEngine.java:1217)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.creat
    eAndInvoke(CubeEngineBean.java:120)
    06/07/04 18:08:01 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncC
    reateAndInvoke(CubeEngineBean.java:153)
    06/07/04 18:08:01 at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.syn
    cCreateAndInvoke(ICubeEngineLocalBean_StatelessSessionBeanWrapper0.java:486)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequestAnyType(DeliveryHandler.java:520)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequest(DeliveryHandler.java:435)
    06/07/04 18:08:01 at com.collaxa.cube.engine.delivery.DeliveryHandler.requ
    est(DeliveryHandler.java:132)
    06/07/04 18:08:01 at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.pro
    cessBPELMessage(CXSOAPProvider.java:632)
    06/07/04 18:08:01 at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.inv
    oke(CXSOAPProvider.java:133)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.strategies.Invocat
    ionStrategy.visit(InvocationStrategy.java:32)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.SimpleChain.doVisi
    ting(SimpleChain.java:118)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.SimpleChain.invoke
    (SimpleChain.java:83)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.handlers.soap.SOAP
    Service.invoke(SOAPService.java:450)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.server.AxisServer.
    invoke(AxisServer.java:285)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.transport.http.Axi
    sServlet.doPost(AxisServlet.java:653)
    06/07/04 18:08:01 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:760)
    06/07/04 18:08:01 at org.collaxa.thirdparty.apache.axis.transport.http.Axi
    sServletBase.service(AxisServletBase.java:301)
    06/07/04 18:08:01 at com.collaxa.cube.fe.CollaxaServlet.service(CollaxaSer
    vlet.java:134)
    06/07/04 18:08:01 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:853)
    06/07/04 18:08:01 at com.evermind.server.http.ServletRequestDispatcher.inv
    oke(ServletRequestDispatcher.java:824)
    06/07/04 18:08:01 at com.evermind.server.http.ServletRequestDispatcher.for
    wardInternal(ServletRequestDispatcher.java:330)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.processRe
    quest(HttpRequestHandler.java:830)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:285)
    06/07/04 18:08:01 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:126)
    06/07/04 18:08:01 at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:186)
    06/07/04 18:08:01 at java.lang.Thread.run(Thread.java:534)
    <2006-07-04 18:08:01,441> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.cli
    ent.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-proce
    ss/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    xpath variable/expression expression "/client:HelloProcessRequest/client:input"
    is empty at line 37, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:HelloProcessRequest/cli
    ent:input" is not empty.
    </summary>}}
    ==========================================
    And the Error logging in domain.log is
    <2006-07-04 18:08:01,441> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    xpath variable/expression expression "/client:HelloProcessRequest/client:input" is empty at line 37, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:HelloProcessRequest/client:input" is not empty.
    </summary>}}
    Wating for ur response.
    Thank you.

  • Programatically calling control flows from java code

    Hi all,
    I have a bounded taskFlow that uses pageFragments. This flow is a region in a page(.jspx).
    In my page fragment, I have a inputComboboxListOfValues with a ValueChangeListener code in a java bean.
    I want when a value is changed, to programatically call "controll flow" (this one has: "From Activity Id" -the page fragment with that inputComboboxListOfValues, and "To Activity Id" - the default Activity on this task Flow).
    So when the value change, practically I want to restart the flow programatically and pass the selected value as input parameter.
    Since the inputComboboxListOfValues is not like a button where in the "Action" property you can set the Control Flow and navigate somewhere, the only option I have is to programatically cause navigation from java code (example: the value change listener code).
    Can this be achieved?
    Any advice is helpfull.

    Hi,
    Absolutely, you can do it using the NavigationHandler. Try the following in you value change listener:
    FacesContext context = FacesContext.getcurrentInstance();
    NavigationHandler handler = context.getApplication().getNavigationHandler();
    handler.handleNavigation(context, null, outcome);
    // Render the response after that phase, the button actions should not be called
    context.renderResponse();
    // Add the following line if you want to prevent further value change listeners to be called
    // throw new AbortProcessingException();Regards,
    ~ Simon

  • Owb 11 deploy process flow module - Java Exception

    I tried to deploy a process flow module (under the schema OWF_MGR). This is the error message:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at oracle.wh.ui.runtime.application.WHRuntimeCommandGenerateDeploy.getPreGenerationCandidateContexts(WHRuntimeCommandGenerateDeploy.java:3576)
    at oracle.wh.ui.runtime.application.WHRuntimeCommandGenerateDeploy.doPreDeploymentActions(WHRuntimeCommandGenerateDeploy.java:3252)
    at oracle.wh.ui.runtime.application.WHRuntimeCommandGenerateDeploy._internalDeploy(WHRuntimeCommandGenerateDeploy.java:2420)
    at oracle.wh.ui.runtime.application.WHRuntimeCommandGenerateDeploy.doDeploymentAsynch(WHRuntimeCommandGenerateDeploy.java:2117)
    at oracle.wh.ui.runtime.application.WHRuntimeCommandHandler$1.construct(WHRuntimeCommandHandler.java:1026)
    at oracle.wh.ui.runtime.SwingWorker$2.run(SwingWorker.java:124)
    at java.lang.Thread.run(Thread.java:595)
    What is the problem?
    Thanks,
    Luca

    Thanks! I tried the deployment of process from OMB Plus and it's work correctly.
    Do you if exist a patch for the OWB 11 client?
    Regards,
    Luca

  • Java logical rule evaluator

    Does anyone have a class method which will tak a logical rule from a configuration file and evaluate it to true or false. For example...
    Specify a rule in a config file e.g.
    Filed1.equals(field2);
    This would then be read by the evaluator method and true / false would be output..
    Many thanks

    it's a little bit different from what I want to know...
    but still, this is a good link...thanks!
    i just want to restate my question...it seems a little vague..
    from what I know, java provided logical fonts...these are monospaced, serif, sansserif, dialog and dialoginput...
    in order to used them for let say for printing, they should be mapped to actual physical font that actually exist in the system. and the mapping is specified in the font.properties file and the runtime environment do the mapping using the physical font secified for that particular logical font...
    now my problem is, what is the benefit or advantages of having or providing java's own logical font when one can use the actual physical font directly in creaing font instance?
    i hope this is a little clearer...
    thanks..

  • Can't get events to flow from Java to VB

    I've seen some past topics relating to this but none gives a concrete example of making it work.
    I've created a bean with a single method, a fw properties and one event. I've run the packager and regestered everything in VB. The bean has no GUI. I've created a simple VB app with one command button which creates the instance, sets some properties and calls the start method. All of this works great. My Java code runs to completion. When the Java code starts and finishes it sends a notify. The event code never gets popped in VB.
    I've created the events and listener interface per the documentation. At run time I have one listener registered which is of the following class:
    sunw.demo.encapsulatedEvents.DYN_EE_ADAPTOR.myPackageName.myListenrInterfaceName
    This name comes from the toString() for the listener object.
    That is my first question. Why is a demo class involved? Where did this come from?
    My VB code is as follows:
    Dim X As Object
    Private Sub Command1_Click()
    Set X = CreateObject("MyActiveXName.bean.1")
    X.ConfigFile = "home.cfg"
    X.LicenseKey = "0524416687182640982341"
    X.start
    End Sub
    Public Sub X_started(ByVal StartedEvent1 As Object)
    MsgBox "Got started event"
    End Sub
    Here is the definition of the event as it shows up in the ObjectBroswer in VB:
    Event started(StartedEvent1 As Object)
    I also have a stopped event but I didn't want to clutter the example.
    Any help would be appreciated.

    I got it to work. If you look in the original post I was using a DIM statement to create the object. That doesn't seem to work for events.
    I had to drag an instance onto the canvas (even though it is not visual) and have VB assign a variable name. Everything all of a sudden worked.
    Now I have another problem. Sending a notification during a method call from VB works great. However, sending a notification from a separate background thread in my Java code causes VB the get a GPF. I put up a msg box upon receipt of the event. As soon as I click OK on the msg box, it blows up. Maybe I just shouldn't put up a msg box.

  • Need help please: cover flow sort order logic

    hi community,
    is there a official document / specification from apple where the sort order and the settings of the corresponding tags (album, album artist, compilation on/off) of the cover flow is described?
    AA)
    i use diffent ipods. earlier versions diplayed in coverflow:
    1) sorted by artist for compilation = off, following
    2) sorted by album for compilation = on
    this was fine for me.
    BB)
    now on my nano 5g order is as following:
    - only 1 list: sorted by artist with all compilations listed in
    does anybody know how i can set up the nano to display the cover flow like AA)?
    best regards
    gef_audio

    s there a official document / specification from apple
    If there is, it would be in Apple's Knowledge Base or iPod nano (5th generation) - User Guide.

  • Difference between java page flow and java process definition

    I have joined a BEA WebLogic Integration project as an entry level BEA developer. I have a big question on the real difference between a jpf and a jpd. My co-workers say there is actually no difference, but I don't believe so. I think a jpd is more like a back-end process and it may or may not not need a View(MVC). While a jpf is the Controller(MVC) and is closely related to a web-based application where all the navigation logic(and only navigation logic) resides. A jpf normally should have a View(rendered on browser or other terminals) to present data from Model. I strongly believe this is true. But my project manager and my team lead, both are very technical guys, fiercely object to my understanding. I am extremely curious to have input from the BEA community on this fundamental concept.

    I find it hard to believe your team lead really believes there is no difference between a JPF and a JPD. There are numerous differences, both conceptually and technically.
    I believe your understanding of the differing roles of the two is correct. A JPF would represent the view of an application, and a JPD would represent callable services of an application, and server-side business logic.
    From the technical point of view, a JPF, assuming it avoided certain features, can be deployed on Tomcat. The core of it is a pure servlet application. A JPD is an EJB, either a SLSB or a SFSB.

  • ADF Task Flow Binding - Refresh ifNeeded being invoked even WITHOUT any Parameter change

    Using JDeveloper 11.1.1.6.0
    Issue: Task Flow Binding property "refresh = ifNeeded" seems to be triggered even without the mutation of the input parameter.
    As per definition, "ifNeeded: refresh the ADF Region if the value of a task flow binding parameter changes." (Reference: 17.5 Refreshing an ADF Region)
    Now for the setup which reproduces the issue.
    I'll focus at the fragment bounded task flow level and will skip the jspx side.
    taskflow: main-flow.xml
    contains a single fragment mainFgmt.jsff
    has a managed bean defined SampleBean.java as pageFlow scope.
    taskflow: sub-flow.xml
    contains a single fragment subFgmt.jsff
    has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)
    !important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)
    the nested taskflow is the default activity
    the nested taskflow has an outcome pointing to subFgmt where outcome = "return"
    taskflow: inner-flow.xml
    contains a single fragment called stop.jsff
    has a return activity without outcome = "return"
    stop.jsff has a navigation pointing to the outcome.
    Finally mainFgmt.jsff has a task flow binding (pageDef)
    with id = "sub-flow.xml"
    refresh = "ifNeeded"
    parameter SampleBean being submitted as sub-flow's input parameter. (id=sampleBean, value=#{pageFlowScope.mainSampleBean})
    Assume that code compiles.
    In this scenario where the only tricky condition is the inner nesting (defined by !important), when the inner nesting decides to invoke its outcome to visit sub-flow's fragment, mainFgmt is restarting its taskflow which makes sub-flow start over again.
    Another way of saying it is, if sub-flow starts a nested activity and that nested activity exits out to utilize sub-flow's view. The high level definition which is mainFgmt's refresh ifNeeded is restarting sub-flow.
    In the above example if you notice, the bean (SampleBean) is not really being utilized except that it is completing the purpose of refresh=ifNeeded. This scenario is only to simplify the setup - in practical use this bean will be mutated to be utilized as a refresh mechanism.
    Now interestingly, if I change the pattern a bit then the issue will not happen:
    Don't use the nested taskflow (inner-flow) as the default activity, let a fragment of sub-flow hold the initial view.
    Navigate to the nested flow.
    Exit nested flow.
    Everything works.
    Now in this scenario, it seems like the sub-flow needs to have a view established first for it to be properly be used.
    So my questions are as follows:
    Can I consider the behavior of the refresh=ifNeeded as a bug in this usecase?
    Would it be better to utilize a different way of refreshing (maybe combination of refresh condition) to get around the issue?
    Is the use of the task flow as defined logical or does it cross any boundary or best practice that might be causing this behavior?

    Hi,
    actually you lost me in your description due to complexity. I lived under assumption that sub-flow already is a region on a view in main flow, but then you sad that
    "!important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)"
    which then confused me as to I have no idea if inner flow now is the second level nesting or first level nesting (should be second level nesting). If sub-flow is a region then having "has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)"  is an unnecessary broad scope because the region wont live longer than view scope.
    Anyway, it seems that a region refresh is triggered by the lifecycle involved, which can be by design or a bug. I suggest you file a Service Request with support and provide a test case as purely from the description, its hard to parse and understand what is going on.
    Frank

  • Difference between logical and virtual terms

    Hello,
    This is not purely oracle question; but in documentation so many times we find 2 terms:
    A. Logical
    B.Virtual.
    So what is the principle difference between logical and virtual? As I know physical is that which I can see and touch; while logical/virtual is that is imaginary. We say tablespace is logical not virtual; while Java Virtual Machine; not Java Logical Machine. So I want to know; what is the principle difference; why two words for an imaginary thing. Before posting question; I searched in google as “Difference between virtual and logical” but I couldn’t found the answer.
    Please quote your comments.
    Thanks & Kind Regards
    Girish Sharma

    Girish,
    I wont say that I am correcting you as this is like that half glass full/empty thing.May be what I see is half empty , you would see the same as half full.
    Well now coming to the explanation.I am saying honestly , I got more confused after reading your definitions.What do you mean by saing that tablespace is not virtual.I see it as purely virtual.We don't say it as virtual tablespace or logical tablespace but it is actualy logical/virtual, having no existance but just the definition right?
    How can you say that the size of virtual is larger than logcial?The size of tablespace is actualy the sum total of size of datafiles.So it actualy becomes very larger right?Much larger than JVM which is of few megs only.
    The point 3 totally knocked me out.I have no idea what you said.
    Ok I tell you this.Just remember the definition that Hans gave already.If you ask me than its the best definition that we can have. Just remember this and if some one asks you more further than give them your point 3 definition and tell them understand this ;-).Please don'tmind I am just kidding. Its just semantics.Don't get lost into it.You will find many people using both the terms interchangibly. So its ok.I shall stick with Hans's defintion,simple and concise.There are lot more other topics to dig upon in oracle.I can mail you lots of them.Spend time on those.Don't think that I am demotivating you.I understand you asked only because you have a doubt.But we got a good resolution of it and beyond that, its not of much use to dig it atleast not in the technial terms.
    Cheers
    Aman....
    PS:Are you on oraclecommunity.net?

  • Help with Java function

    Hi all,
    I am suppose to write a java function for the following source and target structure:
    <u>Source Structure</u>
    Root A (0..unbounded)
      |_ A
    Root B (0..unbounded)
      |_ B
    Root C (0..unbounded)
      |_ C
    <u>Target Structure</u>
    Root_target (0..unbounded)
       |_ T
    Based upon every occurrence of A, B and C, i have to first compare their values and for every unique value i have to create a separate instance of 'T'
    i.e. if all the three A, B and C are different the output should be:
    Root_target (0..unbounded)
       |_ T  (for A)
    Root_target (0..unbounded)
       |_ T (for B)
    Root_target (0..unbounded)
       |_ T (for C)
    I am writing a java function in the graphical mapping for it, but i am stuck with the code to create target segments dynamically.
    Any help in this regards is appreciated.
    Regards,
    Varun

    Hi Varun,
    I understood unique values form A,B,C  need to map  to T.
    In this case change the context of  all these A,B,C to their respective parent node.
    write a user define function to accept these 3 queues , write a java logic to fiund uniqueness among all the records,  add the resulkt to Resultset , which is output map to T.
    Thanks,
    venu.

  • Bounded Task Flow restart on complete

    Hi all,
    I am currently using a JSFF fragment inside a region in a show detail item. This fragment is also the start of a bounded task flow and currently displays all rows from a table.
    The task flow controls edit and create operations which navigates to another JSFF. I have commit and rollback return activities attached to this second JSFF but when the task flow finishes, the select one choice is empty.
    Ideally, I want the task flow to start over again and the user be presented with all the rows again.
    I have tried the refresh condition on the 'show detail item' but I still get the same behaviour.
    Is there a property in the bindings that is set once a task flow has been completed?
    Is there an easy way to restart the task flow once completed?
    Regards
    Jason
    Edited by: Jason@GW on 23-Sep-2010 00:44

    You can 'reset' the task flow from java code
    DCTaskFlowBinding tf = (DCTaskFlowBinding)JSFUtils.resolveExpression("#{bindings.myTaskflow1}");
    tf.getRegionModel().refresh(FacesContext.getCurrentInstance());You can put this code in, for example, regionNavigationListener and execute it when you detect return activity (or some other condition).
    Maybe this approach is less declarative, but it can be very useful in some cases.
    Pedja

  • Table design for approval flow

    Hi,
    For our application,we have to create an approval flow in Java.
    We have to maintain the structure in the database.We are using Oracle 10g and we don't have any DBA access.
    The brief structure is as follows:
    there will be an activity which after being created is allocated some cost.
    After allocating the cost,it goes through a first level approval.
    If approved then it has to go through a second level approval and then the activity becomes approved.
    The full flow needs to be tracked in a table structure whether the activity is created/rejected/approved first level/approved second level.
    In a separate table structure we also need to maintain the hierarchy of user,approval 1 and approval 2.
    Could you please suggest me way outs to maintain the hierarchy as well as the full historical data related to the activity after it is created.

    In the workflow system,One request is created by Specific user who belongs to particular role.  Approver are dynamic currently 5 approvers are available but in future the approver may be 'N' numbers. Each stage the status is different. Approver may
    reject or reopen or query the request.. Based on these status the flow will status again from the requester or approver .suppose 4th approver made any query it should go to 3 approver or 1st requester.
    I need to design the table for the above requirements .please advise with schema.
    The basic table structure should look like as,
    REQUESTOR
    REQUESTOR_ID INT
    REQUESTOR_FNAME VARCHAR(100)
    REQUESTOR_LNAME VARCHAR(100)
    REQUESTOR_EMAIL VARCHAR(100)
    REQUESTOR_ROLEID INT
    REQUESTOR_ROLE
    ROLE_ID INT (PK)
    ROLE_NAME VARCHAR(100)
    ROLE_DESC VARCHAR(300)
    APPROVER
    APPROVER_ID INT (PK)
    APPROVER_FNAME VARCHAR(100)
    APPROVER_LNAME VARCHAR(100)
    APPROVER_EMAIL VARCHAR(100)
    APPROVER_CAT VARCHAR(50) -- IN CASE IF YOU HAVE ANY SUBSYSTEM THEN APPROVER CAN BE CATEGORISED.
    STAGE
    STAGE_ID INT (PK)
    STAGE_NAME VARCHAR(100)
    STAGE_PRIORITY INT -- IF REQUIRED, I.E IF THERE IS ANY STATUS PRIORITY ONE AFTER ANOTHER.
    REQUEST_MASTER
    REQUESTLOG_ID INT (PK)
    REQUESTOR_ID INT (FK) REFER REQUESTOR_ID IN REQUESTOR table
    REQUEST_DESCRIPTION VARCHAR(MAX)
    REQUEST_DATE DATETIME
    APPROVER_CAT VARCHAR(50) (FK) REFER APPROVER_CAT IN APPROVER table -- Email to be send to all approvers under this category.
    REQUEST_STATUS INT FK REFER STAGE_ID IN STAGE ENTITY -- SET A STAGE AS DEFAULT STATUS INITIALLY(SAY NEW). UPDATE this field whenever the history information is updated in REQUEST_HISTORY table.
    REQUEST_HISTORY
    HISTORY_ID INT (PK)
    REQUESTLOG_ID INT (FK) REFER REQUESTLOG_ID IN REQUEST_MASTER TABLE
    APPROVER_UPDATED_BY INT (FK) REFER APPROVER_ID IN APPROVER TABLE
    REQUESTOR_UPDATED_BY INT (FK) REFER REQUESTOR_ID IN REQUESTOR TABLE
    UPDATED_DATE DATETIME
    STAGE_STATUS_ID INT (FK) REFER STAGE_ID IN STAGE TABLE
    Regards, RSingh

Maybe you are looking for