Main method for application

hello everyone,
im new ADF mobile app on jDev. Ive started just a week ago. I have classes under ViewController and some methods include database querys.
the exact question to ask u guyz, hom am i going use that methods, i mean which class,i will create i guess, i m soppose to use.
In may amx page, i have selectOneChoice comp.. I create daha controls of course. but, Where am i going to create an object and populate it. Where am i going to use Listeners ?? 

Hi,
what about starting with a tutorial?http://docs.oracle.com/cd/E18941_01/tutorials/buildmobileappscontent/adfmobiletutorial_1.html
This will answer all your questions at once. Please do this hands on first before you move on to ...
https://blogs.oracle.com/shay/entry/developing_with_oracle_adf_mobile
https://blogs.oracle.com/shay/entry/adf_mobile_update_through_web
Frank

Similar Messages

  • [svn:bz-trunk] 17982: Bug: BLZ-564 - Some classes in flex-messaging-core. jar define main methods for debugging purposes.

    Revision: 17982
    Revision: 17982
    Author:   [email protected]
    Date:     2010-10-01 00:39:15 -0700 (Fri, 01 Oct 2010)
    Log Message:
    Bug: BLZ-564 - Some classes in flex-messaging-core.jar define main methods for debugging purposes. This creates an unintended entry point and the main methods should be removed.
    QA: No - just removed main methods
    Doc: No
    Checkintests: No - just removed main methods
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-564
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/services/messaging/selector/NumericValue.ja va
        blazeds/trunk/modules/core/src/flex/messaging/util/Base64.java
        blazeds/trunk/modules/core/src/flex/messaging/util/Hex.java
    Added Paths:
        blazeds/trunk/modules/core/test/src/flex/messaging/util/Basae64Test.java

  • Is that a good practice to use syncronize methods for application scope cls

    Is that a good practice to use synchronize method in a application scope class, so I have a doubt, there a is class A, it has application scope and it contains a synchronized method add, so because of some network traffic or any unexpected exception client1 got stuck in the method, will that add method available for any other client...?
    Edited by: navaneeth.j on Dec 17, 2009 4:02 AM
    Edited by: navaneeth.j on Dec 17, 2009 4:04 AM

    If it needs synchronization, then it probably doesn't belong in the application scope. Either keep it as is, or reconsider the scope, or make it static.

  • Calling a method for application scope

    I have a method that initializes a hashtable.
    That method should be called once when my web app starts, I need to load that hashtable into memory so whenever a user needs a value from that hashtable, it readily access the hashtable and doesn't load it everytime it is called. How do I do that?

    Just put it in the application scope in the faces-config.xml?

  • Backup method for Application Servers in 11i

    Hi :
    EBS version: 11.5.10.CU2 - Linux 86
    I am planning to do an upgrade on the production system and wanted to take a complete backup of the EBS Environment. In the past I have always done a online backup of the application servers. I was wondering if there is any drawback in doing this. Can any one confirm if this is the correct method and if not why a cold backup is preferred?
    Regards,
    Bala

    I was wondering if there is any drawback in doing thisAs long as the backup is taken successfully and you are able to test this backup with no issues then you should be OK.
    Can any one confirm if this is the correct method and if not why a cold backup is preferred?Cold backup is preferred because is more consistent. If you can afford downtime go with the cold backup, otherwise the online backup is your only option (make sure you test the backup and have a good backup/restore strategy).
    Thanks,
    Hussein

  • Invoke jar main method in java code

    hi
    i have a jar that has a usage like this
    java -jar helper.jar arg1 arg2 etc...i want to invoke this helper main method in my java code.i've tried using reflection but it didn't quite work...
    String[] args = new String[]{"arg1","arg2"};
    Class c = Class.forName("com.helper.MainClass");
    Method mainMethod = c.getMethod("main", args.getClass());
    int mods = mainMethod.getModifiers();
    if(mainMethod.getReturnType() != void.class || !Modifier.isStatic(mods) || !Modifier.isPublic(mods)) {
         throw new NoSuchMethodException("main");
    mainMethod.invoke(null, args);
    Exception in thread "main" java.lang.IllegalArgumentException: argument type mismatch
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at Test.callJarMain(Test.java:50)
    at Test2.main(Test.java:34)thoughts???

    phychem wrote:
    i want to use this jar in a non-static way.
    public void useJar(String args[]){
    //somehow invoke jar method here...
    Sorry, I still don't get it. I don't know what you mean by a non-static way of using jars. The main method for launching an application is static so if you call that method, you will be using a static method. I don't know what you mean by a "jar method" either. Methods are inside classes. So far, all I can guess is you want to invoke a method in a class that happens to be inside a jar. Since people do this all the time without reflection, I don't see the problem.

  • Servlet with dopost and main() methods

    I have pre-existing servlet code for maintenance purposes.
    It received a request by POST action from the client. This class also has main() method where class is instasiated and processed.
    Can anyone help me understand reason for having dopost and main() methods.
    TIA

    Before the days of JUnit developers would write a main method for a class as a way to test the class. Some older developers still do it. I know because I am dealing with the problem now.

  • Help in my main method

    I am writting a code to a problem perfect numbers in class and I am having trouble creating the main method for it.
    For the main method I need to write code that "if the length args is 0, it asls the user a list a numbers then stores the answer otherwise it stores the element of args array. I understand the logic of this problem I am just unsure of how to write the code. I would appreciate any help thank you.
    import java.util.Scanner;
    import java.util.StringTokenizer;
    public class Perfect
        private int num;
        public Perfect(int number)
            super();
            num = number;
        public static void main(String [] args)
            Scanner scan = new Scanner(System.in);
            StringTokenizer token = new StringTokenizer(" ");
            String info = args[0];
            int data = 0;
            if(args.length == 0)
        public int number()
            return num;
        public int sumOfDivisors()
            int sum = 0;  // creates a new int sum which equals 0
            for(int i = 1; i <= num/2; i++)  // Example int i = 1 1 is less then 6/2 which is 3 then add 1 until i = 3
                if( num % i == 0) // if the remainder of num / i is 0
                    sum += i;
                return sum; // returns answer
        public boolean isPerfect()
            if( num == sumOfDivisors())
                return true;
            else
                return false;
        public boolean isAbundant()
            if( num < sumOfDivisors())
                return true;
            else
                return false;
        public boolean isDeficient()
            if( num > sumOfDivisors())
                return true;
            else
                return false;
            public void printAnswer()
                System.out.println();
                if( num > sumOfDivisors())
                    System.out.println("This is a Deficient number");
                System.out.println();
                if( num < sumOfDivisors())
                    System.out.println(" This is a Abundant number");
                System.out.println();
                if( num == sumOfDivisors())
                    System.out.println("This number is perfect");
          

    So if someone does your homework for you, that's supposed to "help" you? If you can't handle the homework assignment, maybe you shouldn't be taking this class.
    Nobody (or at least hardly anyone) is interested in doing others' homework for them. It does you no real good anyway, as you don't learn that way, of course.

  • Does not contain a static 'Main' method suitable for an entry point_

    Hello
    I want to to do a project with Entiity Framework . I add a project to my solution for my domain class and it's name is 'LinkModel.DomainClasses'.  when I prees F5 there is an error like bellow.
    Could You help me to solve this? thanks alot
    ..\Documents\Training\LinkCodeFirstLast\LinkCodeFirst\LinkCodeFirst\LinkModel.DomainClasses\obj\Debug\LinkModel.DomainClasses.exe'
    does not contain a static 'Main' method suitable for an entry point

    Hi bkshn,
    This error is caused by the missing "Main" method in your project. it is the entry point of your project.
    If you want to create a EF project, you could follow the way in the aricle below.
    https://msdn.microsoft.com/en-us/data/ee712907#codefirst
    The Main method is like below.
    class Program
    static void Main(string[] args)
    using (var db = new BloggingContext())
    // Create and save a new Blog
    Console.Write("Enter a name for a new Blog: ");
    var name = Console.ReadLine();
    var blog = new Blog { Name = name };
    db.Blogs.Add(blog);
    db.SaveChanges();
    // Display all Blogs from the database
    var query = from b in db.Blogs
    orderby b.Name
    select b;
    Console.WriteLine("All blogs in the database:");
    foreach (var item in query)
    Console.WriteLine(item.Name);
    Console.WriteLine("Press any key to exit...");
    Console.ReadKey();
    And you could start to learn the EF from the following MSDN blogs.
    https://msdn.microsoft.com/en-us/data/ee712907
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Projectname.exe' does not contain a static 'Main' method suitable for an entry point .

    Hi,
    I'm developing a blog reader for windows 8 store app. It was perfectly worked before. But because of some miss behave my coding i get below error. No other errors there.
    Error    1    Program 'c:\Users\.........\Desktop\Blog_Reader\Blog_Reader\obj\Release\intermediatexaml\Blog_Reader.exe' does not contain a static 'Main' method suitable for an entry point    C:\Users\..........\Desktop\Blog_Reader\Blog_Reader\CSC  
     Blog_Reader
    Please help me to figure this.
    Thank You!

    Go to your App.Xaml and R-Click Go to Properties
    Check whether the Build Action is ApplicationDefinition
    If not change it to ApplicationDefinition. Clean the code (solution ) and Deploy..
    Chears....

  • Solution for Windows Store app "projectname.exe" does not contain a static 'Main' method suitable for an entry point . Error.

    Hi,
    I'm developed a blog reader for windows 8 store app. It was perfectly worked before. But suddenly it started to miss behave and I got an
    error. No other errors were there other than that.
    Error 
    Program c:\Users\.........\Desktop\Blog_Reader\Blog_Reader\obj\Release\intermediatexaml\Blog_Reader.exe' does not contain a static 'Main'
    method suitable for an entry point. 
    C:\Users\..........\Desktop\Blog_Reader\Blog_Reader\CSC    Blog_Reader
    But I found the solution while I fixing it.
    Solution for that is like below.
    Go to your App.Xaml and Right-Click thenGo to Properties
    Check whether the Build Action is
    ApplicationDefinition
    If not change it to ApplicationDefinition.
    Clean the code (solution) and Deploy
    Now the error is fiexed.

    Hi Robana, 
    Good sharing on the Technet. 
    This will definitely benefit other who may encounter the same issue as yours.
    Thanks for your sharing again. 
    Kate Li
    TechNet Community Support

  • Running a java application without a main method

    class MainMethodNot
        static
            System.out.println("This java program have run without the run method");
            System.exit(0);
    }The reason this works is that static initialization blocks get executed as soon as the class is loaded, even before the main method is called. During run time JVM will search for the main method after exiting from this block. If it does not find the main method, it throws an exception. To avoid the exception System.exit(0); statement is used which terminates the program at the end of the static block itself.
    got it from http://www.java-tips.org/

    This has been published many times on this forum. What is your question?

  • How to increase the Java Heap Space for a main method

    Hello all,
    after a given number of calculations inside a class with main-method, I get an OutOfMemoryError (Java Heap Size).
    So I'm just trying to increase the Heap Size Creator uses, but it won't work.
    After reading a lot of posts and online-articles, I tried the following:
    1) I changed the -Xms and -Xmx options (to 512m) both in
    $CREATOR/SunAppServer8/domains/creator/config/domain.xml and
    $CREATOR/etc/creator.conf (this file also points to the Creator built-in JDK)
    2) additionally I tried to start Creator from the console with the respective option:
    ./creator -J-Xmx512m
    The memory toolbar shows the right value, but when I use
    System.out.println("JVM maximum memory:\t"+Runtime.getRuntime().maxMemory()/1024+" KB\n");it always says 64 MB, no matter which option I chose in the config-files.
    So how can I increase this value?
    Regards,
    Felix
    Message was edited by:
    Felice
    Message was edited by:
    Felice

    Thank you very much,
    this was an important hint. Additionally I had to create a new "Java Class Library" project with a copy of the needed files (those that are not dependent on the Application Server). Then I could use the option you mentioned.
    Unfortunately, when I try to run the file with
    java -jar FILENAME.jarit won't work, because the archive is not complete: MANIFEST.MF lacks the main-class and all involved libraries.
    I managed to add the main-class attribute manually, but adding all library references seems to be very error-prone.
    So does anyone know if I did something wrong or if this is a bug of Creator?
    Regards,
    Felix

  • How to initialized main method in a deployed application

    Hello,
    I am trying to deploy a simple java application to OC4J, I created a jar file as my deployment profile and then I created EAR file and finally delpoyed succesfully, but I'm wondering how can I start my main method in deployed application, note that my application requires some input arguments as well. Any ideas how can I do that ?
    Regards,
    Hussam Galal

    I might be missing the point of this post, but you can't 'start your main method' in any type of deployed application.
    You must expose your methods via some mechanism. You could call your method via a JSP, wrap in an EJB and create a client to call it remotely etc.
    What is in your JAR file? Just POJOs? If so you will have to wrap them in EJBs so they can be called, that or deploy a web application with some servlets or JSPs so they are accessible via some URL.

  • Can we hav call transaction and session method for an application

    can we hav call transaction and session method for an application ?if yes how?

    Hi ,
    You can.  If Call Transaction fails, a batch input session can be created.
    Check this example-
    Call the transaction. Messages from Call Transaction are stored in the
    internal table messtab 
      CALL TRANSACTION 'LT01' USING bdc_tab MODE 'N' UPDATE 'S'
          MESSAGES INTO messtab.
      IF sy-subrc = 0.                                                 
    Call transaction successfull,  get the number of the Transfer Order that
    was created                                                        
        LOOP AT messtab.                                               
          IF messtab-dynumb = '0104' AND messtab-msgnr = '016'.        
            w_transportorderno = messtab-msgv1.                        
          ENDIF.                                                       
        ENDLOOP.
      ELSE.
    Call transaction failed, create a batch input session instead.
        PERFORM open_group.                        
        PERFORM bdc_insert USING 'LT01'.           
        PERFORM close_group.                       
    ENDIF.
    Regards,
    Sookshma

Maybe you are looking for

  • ITunes won't open after transferring songs from old Mac.

    I recently got a new MacBook Pro and used my external HD to copy and paste my songs from my old computer to the new one. It seemed to work immediately, but ever since I closed iTunes after the transfer, I cannot open the application at all. What I ge

  • Use of camera on 8900 locks up the Blackberry

    The Blackberry 8900( t-mobile) will erratically lock up all functions on activation of the camera. Whether the icon is selected or the activation switch is pushed, the camera will lock up the phone. I have informed tech support at RIM and they are au

  • Error connecting Domains: Invalid parameter,tdom_link contains NULL

    Hi, I'm trying to connect two Domains DOM1 and DOM2. DOM1 is running under Tuxedo8 in a RedHat Linux 7.2. The remote Domain is running in a former Tuxedo Version, probably 6.5. When booting I get the next error: LIBGWT_CAT:1242: ERROR: Invalid parame

  • Front Row Appears & Disappears...

    When I press cmd+esc or use the apple remote to start front row, the screen briefly fades into the black screen that normally happens when front row begins but it then that instantly fades back onto my normal screen, it seems that front row begins bu

  • AUC negetive value

    Dear SAP Experts, In the Balance sheet AUC asset value is showing negetive amount,  actually the Client is using Plant wise balance for 5 plants. The negetive value is coming in 1000, 2000,3000 and 4000 plant which should come in Plant 9000 which is