How to load code dynamically?

I want to design a system with plugin capability.
How can I do it?
How to load code from OBJ or Library dynamically?
thx

It sounds like you are looking for dynamic linking
functionality. (dlopen(), dlclose(), dlsym(), etc).
The functionality is pretty well documented along with some
sample code in the Linker and Libraries Guide. Here is a link
to the relevant page on docs.sun.com:
http://docs.sun.com:80/ab2/coll.45.13/LLM/@Ab2PageView/4817?Ab2Lang=C&Ab2Enc=iso-8859-1

Similar Messages

  • How to load .cod files in BB Device ?

    Hello Experts,
        I want to load CommonClient.cod, MessagingClientApp.cod, MessagingClientSettings.cod, MocaClient.cod, WorkflowResources.cod files for My workflow application but in Blackberry Desktop Manager , its allow me to load only .alx file.
    Please Help me,
    Regards,
    Tapan

    Once you are ready with the bat file, connect the BB device to your laptop and run the bat file from Laptop.This open a command prompt showing the status of loading cod files and close once loaded.BB device tends to restart.
    Once the BB device is ready search for the loaded application icon.Now you are ready to run the application
    Thanks,
    Srikanth M

  • How to load data dynamically into target tables using files as a source

    Hi ,
    My scenario needs a single interface to load the data of 5 different files into five target tables using a single interface. All target tables have the same structure. It is possible to point to variable source files using ODI. But the same approach is not working with Database tables. I am getting errors while trying to make my target /source table as a dynamic one.
    Can anybody suggest anything. The last option would be writing a dynamic PL/SQL block in the KM. Any other suggestions friends ?
    Regards,
    Atish

    After creating a pair of identical source and target tables, I have carried out the following steps:
    I am trying just keeping the target as variable
    a)created a one to one interface,
    b)tested that it is running.
    c)created a variable(type =text),
    d)used the variable as #v_name in the resource of the target table datastore.
    e)in a package used the variable in a set variable step (first step).
    f) used the interface as the second step.
    g)executed the same in my context.
    the <project_code>.variable_name is not getting substituted in the sql_code that is generated by the KM. My KM is SQL Control Append and following is the code that it generates in the Insert into I$ step:
    /* DETECTION_STRATEGY = NOT_EXISTS */
    insert /*+ APPEND */ into HR.I$_JOBS_COPY1
         JOB_ID,
         JOB_TITLE,
         MIN_SALARY,
         MAX_SALARY,
         IND_UPDATE
    select      
         JOBS.JOB_ID     JOB_ID,
         JOBS.JOB_TITLE     JOB_TITLE,
         JOBS.MIN_SALARY     MIN_SALARY,
         JOBS.MAX_SALARY     MAX_SALARY,
         'I' IND_UPDATE
    from     HR.JOBS JOBS
    where     (1=1)
    and not exists (
         select     'X'
         from     HR.#PLAYGROUND."v_tab_name" T
         where     T.JOB_ID     = JOBS.JOB_ID
              and     ((JOBS.JOB_TITLE = T.JOB_TITLE) or (JOBS.JOB_TITLE IS NULL and T.JOB_TITLE IS NULL))
              and     ((JOBS.MIN_SALARY = T.MIN_SALARY) or (JOBS.MIN_SALARY IS NULL and T.MIN_SALARY IS NULL))
              and     ((JOBS.MAX_SALARY = T.MAX_SALARY) or (JOBS.MAX_SALARY IS NULL and T.MAX_SALARY IS NULL))
         )

  • How to load classes dynamically?

    Hi all!
    I have folowing problem.
    In my applet I need to load different classes form the same Web server. The main class is located in parent directory and different are in it's subdirectories. Security Manager allows to do this, but I find it difficult how to do it. Can you give me advise how to do it.
    Thanks beforehand...

    Create a package on the web side myserver.mypackage with subfolders ex1 ex2
    THere place your class files to dynamical loading
    Every class in package must starts from
    package myserver.mypackage; statment
    In paren directory for package creat a class where main applet class will be located
    Create an inctance for submain classes as
    (Class)Class.forName("myserver.mypackage.ex1.Class1").newInctance() - for class1 in ex1
    (Class)Class.forName("myserver.mypackage.ex2.Class1").newInctance() - for class1 in ex2
    It works. I'll send you example on e-mail.

  • How to load data dynamically in as3 ?

    Hi,
    I'm working on a project. I want to add some interactivity after the completion of  each chapter in it. The scenario is this.
    1. One out of 10 questions should be asked randomly.
    2. 4 out of 10 pictures should be displayed randomly and one is the correct one.
    3. If User clicks on correct image, it should display some message as correct answer or some sound can be added.
    4. If user clicks on other 3 images, It should display some message as incorrect answer or some audio has to come.
    Need some suggestions.
    Thanks in advance.

    Hi,
    I sugest you one method , create one xml keep your images and question. Get the data from the xml and then  push in to one array, then you can randomize.
    To load the xml http://www.republicofcode.com/tutorials/flash/as3xml/ you can refer this
    to randomize http://script3.blogspot.in/2009/04/generating-random-numbers-with-out.html

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • How to Load a SWF in Dynamically Loaded HTML

    Hello,
    I have a Flash movie with a multi-line text field that loads
    HTML text. As per the below Macromedia documentation I have swfs as
    images inside my HTML text.
    I'm trying to find a way to pre-load these swfs - if I do
    loadmovie to load the swf, when the html file is loaded will it
    need to reload the swf from scratch or will it take my loaded
    version? I'd love to show a "loading" message in the text as the
    swf was loading but am unsure how to do this now that I have the
    swf reference embedded in the html text.
    Any ideas?
    Thanks!
    Julia
    From the Macromedia documentation:
    Image tag (<img>
    The <img> tag lets you embed external JPEG files, SWF
    files, and movie clips inside text fields. The <img> tag has
    one required attribute, src, which specifies the path to a JPEG
    file, a SWF file, or the linkage identifier of a movie clip symbol.

    Thanks - your answer is exactly what I was looking for.
    I'm noticing that every swf I load via dynamic HTML is
    distorted - is there a way to prevent this? I can set the width and
    height of each swf in the HTML, which works ok, but then I run into
    a problem when I try and have a component item (like an accordion)
    included in the dynamic text field. It works properly, and the
    framing is sized correctly, but the guts are still skewed. I
    haven't been able to figure out why the swfs are being distorted in
    the first place.
    Any ideas?
    Thanks,
    Julia

  • How to write the dynamic code for RadioGroupByKey and Check Boxes?

    Hi,
    Experts,
    I have created a WD ABAP application in that i have used RadioGroupByKey and CheckBox Ui elements but i want how to write the dynamic code to that i want to display male and female to RadioGroupByKey and 10  lables to check boxs.
    Please pass me some idea on it and send any documents on it .
    Thanks in advance ,
    Shabeer ahmed.

    Refer this for check box:
    Do check :
    bind_checked property is bind to a node with cardinality of 1:1
    CHECK_BOX_NODE <---node name
    -CHECK_BOX_VALUE <--attribute name of type wdy_boolean
    put this code under your WDDOMODIFYVIEW:
    DATA:
    lr_container TYPE REF TO cl_wd_uielement_container,
    lr_checkbox TYPE REF TO cl_wd_checkbox.
    get a pointer to the RootUIElementContainer
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_checkbox = cl_wd_checkbox=>new_checkbox(
    text = 'WD_Processor'
    bind_checked = 'CHECK_BOX_NODE.CHECK_BOX_VALUE'
    view = view ).
    cl_wd_matrix_data=>new_matrix_data( element = lr_checkbox ).
    lr_container->add_child( lr_checkbox ).
    Refer this for Radiobutton :
    dynamic radio button in web dynpro abao
    Edited by: Saurav Mago on Jul 17, 2009 10:43 PM

  • Using Actionscript 3, how do I code a button in a parent file to load at a specific frame in another swf file?

    Using Actionscript 3, how do I code a button in a parent file to load another swf file at a specific frame?

    You can either place the loading code in the desired frame of the parent file, or continuously monitor the currentFrame proiperty of the parent file and do the loading when the value matches the desired frame number.

  • How the loading time populate in a standard dilivery

    Hi
    I got an issue in which I have to find out that one delivery does not having the loading time .
    I want to know how the loading time and date is being populated.
    Please reply ASAP.
    thanks in Advance
    Gaurav

    Hi,
    if You have no results in "Where is used" list, then it is called dynamically
    - problably information about this is stored in a database (somewhere...).
    I suggest following steps:
    1. Put breakpoint with Your user id in PAI module (if You know / are able to guess t-code which uses it).
        If You get debugger screen - check the call stack
    2. In PAI module write few instructions to store t-code, report, etc. (or just whole SYST structure) in Z-table.
        After some time check if the screen exit was called and from which transaction.
    3. You can also store in PAI module whole call stack in Z-table using SYSTEM_CALLSTACK function module.
    Regards,
    Przemysław

  • How should load sensitive connection strings

    ok so when i need to connect a swf to some sort of data
    source on the server be it XML, a .NET DLL, a CFC or what ever so
    that i can load data from a database or what ever, everyone is
    always saying that i shouldn't hard code the connection string into
    my actionscript as anyone can get it and do malicious things with
    it.
    So how should i load the connection string into flash. if i
    put them on the server in an XML file or somthing like that then i
    still need to put a connection string into the actionscript in
    order to load in my main connection strings into the actionscript.
    Basically i need to know how to load an external string into
    a swf without anyone else being able to get hold of that string for
    them selves.
    i realy need help with this because i am developing an app
    for somone and i need it to connect to a database and i need it to
    be secure. i have everything sorted except making the connection
    string to the database unstealable.

    Hi
    1. The "GLOBAL.ASA" in ASP3 become "GLOBAL.ASAX" on ASP.Net and it is not the equivalent of web.config. ASP3 do not have an equivalent as this is dynamic tech and By default there is no precompile/compile action as in Dot.Net
     2. You can just move a text file which include the connection string outside the site's folder as we used to do 15 years ago when we used Microsoft Access as a database (When we need small database, before the SQL EXPRESS). This way there is no direct
    URL to get to file!
    * There are several option of restrict the use of a file in ASP3 and in the IIS configuration. check if this is what you want (restrict the use of a specific file/folder) 
    3. robot.txt is only for searching engine which keep "nice behavior". it do not stop any application including search engine from getting the file.
    Have fun :-)
    [Personal Site] [Blog] [Facebook]

  • How do I use dynamic JSP vars in a form tag with implicit sessions?

    I'm using iAS 6 SP4 and 'lite' sessions w/ sticky LB on Win2K for development and need to use a dynamic variable (via an = scriptlet) to specify the URL a form tag's ACTION method posts to. The implicit URL session encoding attempts to add the hidden input tags to the form but part of it is getting cut off. If I remove the dynamic var scriptlet from the form tag it works fine. How can I use dynamic vars and implicit URL session encoding?
    Here's my code sample:
    <FORM NAME='Create' METHOD='POST' ACTION='<%= servletRootStr %>CreateServlet' TARGET='_top'>
    Output is:
    <FORM NAME='Create' METHOD='POST' ACTION='http://my.server.com/NASApp/WebStuffApp/Create' TARGET='_top'>T NAME="GXHC_gx_session_id_" TYPE="HIDDEN" VALUE="GXLiteSessionID--8351372849698357580" ></INPUT><INPUT NAME="GXHC_GX_jst" TYPE="HIDDEN" VALUE="d692bc3d662d6164" ></INPUT>
    Because the <INPUT> tagon the first session var is cut off, up to the T, the page obviously fails. Can this be fixed with a config setting, or is it a bug in iPlanet??

    Thanks for helping me Anurag.
    The problem I tried to solve was that I want the result from my service methods
    in XML format. I thought a callback/polling was the best alternative, am I right?
    Since the callback option doesn´t work I will try to poll the service.
    Are there any other options for solving my problem??
    Thanks again!!
    /A
    "Anurag Pareek" <[email protected]> wrote:
    >
    Andrej,
    I guess you are trying to invoke a Webservice which defines a callback
    method
    from a JSP, and want the JSP to handle the callback made by the webservice.
    For a client to be able to handle a callback made by a Webservice, it
    has to be
    a web service in itself.
    Even some web service tools do not support 'Solicit responses' and hence
    they
    would not generate handlers for the callback methods by default. You
    can download
    a callback WSDL in such cases and implement it on the client side. The
    server
    side web service will then callback to that webservice.
    The other option to callbacks is to use polling methods. This can be
    done from
    any client such as Java client/ JSP client or a .NET client.
    Hope this helps. Let me know if you have any further questions.
    Regards,
    Anurag
    "Andrej" <[email protected]> wrote:
    I´ve tried this but with no success..
    How do I recieve the data in a servlet/JSP-page?
    Thanks.

  • How to load and unload more than one external swf files in different frames?

    I do not have much experience on Adobe Flash or Action Script 3, but I know the basics.
    I am Arabic language teacher, and I design an application to teach Arabic, I just would like to learn how to load and unload more than one external swf files in different frames.
    Thanks

    Look into using the Loader class to load the swf files.  If you want to have it happen in different frames then you can put the code into the different frames.

  • How to load site in a reinstalled Dreamweaver

    Hello,
    I had to move from a desktop PC to a laptop. I had to install
    Studio 8 all over again and I have all the files I was using
    earlier in my desktop.
    When starting Dreamveaver I can see the folder structure in
    "files/assets/snippets" but I don't know how to load the main
    folder where my work is stored. (Where was doing my work earlier in
    the desktop)
    Example:
    I was working with a site named A. This is a folder named "A
    " that should appear under the "files/assets/snippets" window.
    All I see after the reinstall is the Desktop and all the
    folders in my HD along with the folder that I was working with.
    The "Manage Sites" small window is blank right now.
    How do I place the folder (site?) "A" back in the
    "Files/Assets/Snippets" column so I can open my HTML's already
    created, access the icons and other folders below "A" ?
    thank you
    pakoppan

    "> The "Manage Sites" small window is blank right now.
    Did you export your site definitions to a folder that you
    could move by FTP
    or portable device to the laptop? If so, all you need to do
    is import the
    site definitions and make sure your folder structure is
    identical to your
    other computer.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development

  • How to use the Dynamic Expression in BRFplus

    Hi Experts
                   I am new to BRFplus. Can you give any document on BRFplus how to use the Dynamic Expression.
    Thankyou
    Venkat

    OK I tried it and worked but for one condition:
    WHERE DECODE (E.qualification_sid, 1104,
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
         BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
    But how to put two conditions for the same Expression:
    WHERE DECODE ((E.qualification_sid, 1104) AND (E.RANK_SID, 8),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
         BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
    The previous code gives me this error: missing right parenthesis

Maybe you are looking for