How to access the application module4s methods.

I have deployed my business components to OAS and I am trying to use from the applet class the remote appMod. In local mode the connection returns moduleimpl, but now the return is a remoteinterface. How to use that as a moduleimpl??
Code is like this:
String ejbUrl = "oas://vader:8889/ProjectOAS/Project/ProjectModule";
// Setup the environment
Hashtable environment = new Hashtable();
// Turn JNDI on to OAS
environment.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "oracle.oas.naming.jndi.RemoteInitCtxFactory");
// Lookup the URL
Project.common.oas.ProjectModuleHome homeInterface = null;
try {
System.out.println("Creating an initial context");
Context ic = new InitialContext(environment);
System.out.println("Looking for the EJB published as 'ProjectOAS/Project/ProjectModule'");
homeInterface = ( Project.common.oas.ProjectModuleHome )javax.rmi.PortableRemoteObject.narrow(ic.lookup(ejbUrl), Project.common.oas.ProjectModuleHome.class);;
catch (CommunicationException e) {
System.out.println("Communication exception! Unable to connect: " + ejbUrl);
e.printStackTrace();
System.exit(1);
catch (NamingException e) {
System.out.println("Naming exception occurred!");
System.out.println("Cause: This may be an unknown URL, or some" +
" classes required by the EJB are missing from your classpath," +
" or your OAS host is short of resources");
System.out.println("Suggestion: Check the components of the URL," +
" and make sure your project includes a library containing the" +
" EJB .jar files generated by the deployment utility.");
e.printStackTrace();
System.exit(1);
// That's it!
try {
System.out.println("Creating a new EJB instance");
Project.common.oas.RemoteProjectModule remoteInterface = homeInterface.create();
return remoteInterface;
catch (Exception e) {
System.out.println("Module failed : " + e.getMessage());
e.printStackTrace();
return null;
} // End getGenericAppMod(platform)

I am guessing that u r declaring inner class b as a member inner class in class a
in class c u have to instantiate class b
But objects of class b should always be bound with objects of class a
you can do it in this way
a obja = new a();
a.b objb = obja.new a.b();
and then call objb.area();
If the inner class is a static one then u can instatiate it
a.b objb = new a.b();
*No need to bind it with outer class's object.
Anoop

Similar Messages

  • How to access the JAXB generated methods of Complex element

    Hi all,
    I am generating the java classes from the a XSD file which contains the Complex element , which again contains the simple elements. JAXB is generating the interface and public static class for the inner Complex element. But i not able to create the object of this inner class using the Object factory class. Then without object how can i access the setter and getter methods contained in this complex element.
    My XSD file looks like -
    <xs:element name="SSDecisionActivity">
    <xs:complexType >
    <xs:sequence>
    <xs:element name="Id" type="xs:ID"/>
    xs:element name="ConditionFlow">
         <xs:complexType>
         <xs:sequence>
         <xs:element name="Condition" type="xs:string"/>
         <xs:element name="DecisionCriteria" type="xs:string" minOccurs="2" maxOccurs="unbounded"/>
    How shall i access the methods from the ConditionFlow (Complex element) like setCondition(....),getCondition().
    If anybody knows plz tell me the way.
    Ravi

    I'm a bit confused about this design approach.
    [Bindable] public var storyList:IdmlStory = null; 
    The reason why the above line fails to compile in StoryList.mxml is that a variable of the same name already exists. You have specified a List with an id of storyList. The translation process will yield:
    var storyList:List = new List();
    and then fill in the properties.

  • How to access the attributes from a method

    Hi,
    Thanks to all who replied to my previous thread. Please let me know how to access the attributes in method of component controller in the view.
    Let Component_method be my method in component controller which contrains few attributes like this
    method component_method.
    data : node1 type ref to if_wd_context_node,
            itab type standard type of mara.
    endmethod.
    I want to access the above attributes in method of view.
    method view1.
    wd_comp_controller->method_component( ).
    ????? how to access the data of the method_component?
    endmethod.
    Kindly help me out in the syntax.
    Rgrds
    Mahathi

    Hi mahathi
    You should define the parameters in the header, not in the body of the method:
    You can define it as importing, exporting, changing or returning, as you need. For example, in SE80
    Parameter             Cl.declar.          RefTo        Opt        Type ref
    node1                    importing            X                          if_wd_context_node
    itab                       exporting                                        mara
    method_component().
    " code here...
    endmethod.
    and when you have to call the method,
    wd_comp_controller->method_component(
                    EXPORTING     node1 = nodelocal   " not importing!!!
                    IMPORTING      itab   = itablocal      " not exporting!!!
    i think that it's this what you want, don't i?

  • On imac 10.6.8 using current version of Aperture.  How can I access the Aperture Library  on my external hard drive that I use with time machine for backup?  I can only access the application but not the library..

    On imac 10.6.8 using current version of Aperture.  How can I access the Aperture Library  on my external hard drive that I use with time machine for backup?  I can only access the application but not the library..

    Go into Time Machine (the program not the bundle on the extrnal disk) and using Time Machine's browser go to the Folder where the library lives. You could look in the library bundle in Time Machine but that won't really tell you much,
    If you want to make sure it truely has backed up your library you will need to restore it and open the restored library with Aperture.
    If all this still has you confused you need to read up on Time Machine in order to get a feel for how it works, for what it is doing and for how to restore files from it.

  • How to access the value of application item in javascript

    How to access the value of application item in javascript?

    Hi,
    One way
    var myVariable = '&MY_APP_ITEM.';Br,Jari

  • I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    On windows load the airport utility .. latest correct version as possible.. there is no windows 8 but win7 works after a fashion.
    Make sure the TC is using SMB compatible names.. short no spaces and pure alphanumeric.
    Type the name directly into windows explorer.
    \\TCname or \\TCIPaddress
    If no luck turn off all the firewalls.. internal windows plus security software plus whatever other gargyoles and other rubbish AV software you have running.
    Ensure windows is able to at least ping the TC by IP address and name..
    Use the utility in windows to set file sharing to guest account on with full read and write access.. and set workgroup to WORKGROUP.

  • How to access the photos on icloud

    hi
    how to access the photos which i saved in i cloud, from my iPhone 5,
    Note: i do not use any PC. and i only have purchased 20 GB of space on an annual sub. so as to save my photos, and create space in my phone and now i am unable to access it,
    please advise
    thanks
    xxv

    There isn't really a way to "save" photos to iCloud currently with non-beta software.
    iCloud is involved with photos in 2 ways -- backup and Photo Stream.
    Backup of an iOS device includes Camera Roll photos but they cannot be viewed at iCloud.com -- the backup can only be used when doing a restore of an iOS device.
    Photo Stream photos also cannot be viewed at iCloud.com; Photo Stream is designed as a method of transferring photos from one device to another and is not designed to store the photos. More info http://support.apple.com/kb/HT4486
    There is a new feature -- "iCloud Photo Library" -- coming sometime after the iOS 8 release next week: http://www.macrumors.com/2014/09/12/apple-demotes-icloud-photo-library-beta/

  • How to give the application server file path in the module pool programming

    Hi,
         Could somebody help me how to provide the application server file path in module pool programming once the logo is uploaded to sap system.
      For eg I have imported a logo name ‘owens’ into sap system by using transaction ‘se78’; now I need to call the path in the below url,
    if container2 is initial.
    CREATE OBJECT CONTAINER2
      EXPORTING
        CONTAINER_NAME              = 'PICTURE_CONTAINER2'.
    CREATE OBJECT PICTURE2
      EXPORTING
        PARENT = CONTAINER2.
    CALL METHOD PICTURE2->SET_DISPLAY_MODE
      EXPORTING
        DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
      EXCEPTIONS
        ERROR        = 1.
    CALL METHOD PICTURE2->LOAD_PICTURE_FROM_URL
      EXPORTING
        URL    = " ? "
      EXCEPTIONS
        ERROR  = 1
        Others = 2.
    endif.
    Thanks in advance
    Deepu

    hi Deepu,
    Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path
    Regards,
    Santosh

  • Find out how many times the application was touched by a particular user

    Hello,
    can anyone please help me out with this issue.
    I want to find out how many times the application was accessed by a particular user,their session IDs for each of the applications in a particular workspace. I am using a role based authorization scheme for my application. I am using Oracle APEX 3.2 version. Are their any underlying APEX tables/Views to find out the above details.
    thanks,
    Orton

    Hi,
    Have you check views APEX_WORKSPACE_ACCESS_LOG and APEX_WORKSPACE_ACTIVITY_LOG
    Regards,
    Jari
    Edited by: jarola on Oct 20, 2010 7:37 AM
    This might help also
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#CHDDHGJI

  • Web Dynpro ABAP: How to access the content of a mime object?

    Hi everyone,
    does anybody know how to access the content of a mime object of a Web Dynpro component? I added a XML file as mime object to a web dynpro component. Now I want to read the content of this xml file within a method of the component controller. The code would look something like:
    DATA: xml_content type xstring.
    xml_content = read_mime_object("test_123.xml").
    Any ideas?
    Regards,
    Nils

    dude here's the modification that i've done but I can't still access the content of the properties...
               Mail mail = new Mail();
               String message2 = sqlException.getMessage();
               File file = new File("Add.properties");
               Properties props = new Properties();
               props.load(new FileInputStream(file));
               String[] emailadd = {props.getProperty("emailadd","defaultValue")};
               mail.postMail(emailadd,"An error has occurred, Auto-archive was unsuccessful.", message2,"[email protected]");
               Message was edited by:
    ryshi1264

  • How to access the SAP MDM destinations using mdm java api in 7.1

    hi,
    I have SAP MDM 7.1 SP11 and SAP Portal 7.3 and developing the custom webdynpro application using the  JAVA MDM API. I want configure the SAP MDM destinations in SAP Portal .
    How to access the MDM destinations in java code using API? and how to create the connection with MDM using the MDM destinations.
    Please provide the code for access the SAP MDM destinations in java code using MDM java api and creating the connection to MDM.
    Thanks

    Jun,
    Thanks for the reply and api information.
    I have got this api information from the following sap documentation. But i am looking for the code by implementing this class and creating the mdm connection.
    Creating an MDM Connection Using Java Code - SAP NetWeaver Master Data Management (MDM) - SAP Library
    if any thing can you share it.
    Thanks

  • OOABAP-How to access the protected methos from a class

    How to access the protected methos from a class..There is a built in class..For tht class i have created a object..
    Built in class name : CL_GUI_TEXTEDIT
    method : LIMIT_TEXT.
    How to access this..help me with code

    hi,
    If inheritance is used properly, it provides a significantly better structure, as common components only
    need to be stored once centrally (in the superclass) and are then automatically available to subclasses.
    Subclasses also profit immediately from changes (although the changes can also render them invalid!).
    Inheritance provides very strong links between the superclass and the subclass. The subclass must
    possess detailed knowledge of the implementation of the superclass, particularly for redefinition, but also in
    order to use inherited components.
    Even if, technically, the superclass does not know its subclasses, the
    subclass often makes additional requirements of the superclass, for example, because a subclass needs
    certain protected components or because implementation details in the superclass need to be changed in
    the subclass in order to redefine methods.
    The basic reason is that the developer of a (super)class cannot
    normally predict all the requirements that subclasses will later need to make of the superclass.
    Inheritance provides an extension of the visibility concept: there are protected components. The visibility of
    these components lies between that of the public components (visible to all users, all subclasses, and the class itself), and private (visible only to the class itself). Protected components are visible to and can be used by all subclasses and the class itself.
    Subclasses cannot access the private components  particularly attributes) of the superclass. Private
    components are genuinely private. This is particularly important if a (super)class needs to make local
    enhancements to handle errors: it can use private components to do this without knowing or invalidating
    subclasses.
    Create your class inse24 and inherit this CL_GUI_TEXTEDIT
    class in yours. You can then access the protected methods.
    Hope this is helpful, <REMOVED BY MODERATOR>
    Edited by: Runal Singh on Feb 8, 2008 1:08 PM
    Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:19 PM

  • How to access the content in the configuration files

    Hi, Folks,
    To make it easy, the questions can be like this:
    how to access the content in web.xml in a web application?
    Through ServletConfig and context?
    how to access the content in ejb-jar.xml in an ejb?
    initial context?
    Thanks

    There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.

  • Dreamweaver and PhoneGap: How to Edit the Application Manifest for an Android app

    I successfully created an Android app using dreamweaver cs6 and the PhoneGap build service.  I submitted the app and it is live in Google Play.  The only problem is that the app is requiring all kinds of permissions from users that are not necessary for the app.  The app requires Internet access, but it does not require access to the camera or the user's contacts, etc.  I understand that this information is held in the Application Manifest file, but I don't know where that file is.
    Can you help me figure out how to edit the Application Manifest file for my android app?
    Thanks,
    Michael

    To edit permissions, you do so in the config.xml file. After making changes, you can directly upload on build.phonegap.com or from within Dreamweaver.
    See this page for info on customizing config.xml: https://build.phonegap.com/docs/config-xml#features

  • How to upload the application to the App store to test my application

    Hi
    Im very New to Iphone Development, Can any one tell me how to upload the application to the App store to test my application,i paid and got the id from the apple people.i need to know how to upload & download my application to test and even for the production basics,
    Kindly help me in step by step references,so that it will be easy to finish my work in time.
    Thanks
    Sivasankar.p

    You'll probably have better luck going to the Developers forum that you have access to since you signed up for the program.

Maybe you are looking for

  • Urgent: how to run applet which connected to the servlet?

    hi frends: i have written an applet on the server side and it supposed to pass parameters to my servlet and retrieve some info from the servlet. i put both applet and servlet under tomcat../WEB-INF/classes. but when i run the applet from the web brow

  • Which to buy, Sony Bravia 40" 1080p or Samsung 40" 1080p???

    Please help! I know nothing about tv's and don't know which to buy my boyfriend for Christmas. The Sony Bravia 40" 1080p 40S4100 or the Samsung 40" 1080p LN40A530. They are both offered for the same price ($999.99) at best buy, but I found the Sony f

  • Kernel IO schedulers: noop works better... why?

    I've noticed that the CFQ scheduler sometimes doesn't seem to work very well, e.g. responsiveness visibly suffers when there's a lot of disk I/O going on. Deadline seems to be a little better under those conditions, but not much. I'd avoided using th

  • How to take voltage measurements every minute

    Hi all, I am currently new to labview and i am trying to take timed voltage measurements.  Here is what i am trying to do;  I am using labview 2010 and I am trying to take temperature and humidity readings in sync with each other.  To measure the tem

  • 7.5 upgrade (pants)

    Help! I recently upgraded to 7.5 and had ipod plugged in whilst doing so and result being ipod being completely wiped!.. done all that bloody 5 R's business and checked most of the guys desperate reply's on the discussion pages and tried most of what