Need to start JINI registrar instance from within the code

HI All,
I need to write JUnits for our app using JINI for which we need to start JINI registrar from within the code and then publish some services to it.
Any idea how we could be starting the JINI registrar from Java Code ? Any thoughts/suggestions/pointers would be highly appreciated.
Thanks in advance
Vikram

Hi Senthil,
You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
If this is not you expected, give me more details about problem.
(Siva E.)

Similar Messages

  • How to refer to enclosing instance from within the member class?

    Hi
    How to refer to the enclosing instance from within the member class?
    I have the following code :
    import java.awt.*;
    import java.awt.event.*;
    public class MyDialog extends Dialog
         public MyDialog(Frame fr,boolean modal)
              super(fr,modal);
              addWindowListener(new MyWindowAdapter());
         public void paint(Graphics g)
              g.drawString("Modal Dialogs are sometimes needed...",10,10);
         class MyWindowAdapter extends WindowAdapter
              public void windowClosing(WindowEvent evt)
                   //MyDialog.close(); // is this right?
    In the above code, how can I call the "close()" method of the "Dialog" class (which is the enclosing class) from the inner class?
    Thanks in advance.
    Senthil.

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • Set the value of a CWNumEdit Control from within the code

    I am trying to update a CWNumEdit Control with data created during program execution.  I am using the set_Text function but it does not seem to be working.  I was wondering if there is something that I am missing to get this functionality to work.  Please help.
    I am developing a VS .NET 2003 WinForm GUI and am Using Measurement Studio 8.1.1.

    Hello mtd32610,
    I noticed this question was already posted on this forum.  We like to
    keep all questions related to a single issue confined to one forum, so
    please direct all future replies to one post or the other.
    As Jervin_J mentioned in the previous post, the standard method for
    updating a CWNumEdit control is to set the Value property of the
    CNiNumEdit object that is associated with this control.  You do not
    need to call the set_Text function, in fact I am not familiar with any
    set_Text function, so I think you may be calling this method on the
    wrong class altogether.
    You should have an object associated with your CWNumEdit control that
    you can set the Value property for.  As mentioned in the reply from
    Jervin_J, the normal way to populate the control is to use:
    <control>.Value = <numeric_value>;
    Regards,
    Marty H.
    National Instruments

  • Start a WS application from within a java program

    Hi,
    I need to start a WebStart application from within a java program. Therefore I develeoped a class which starts javaws.exe within its main-method like this:
    try {
    Runtime.getRuntime().exec(
    "c:\\java web start\\javaws.exe http://a.b/c.jnlp"
    } catch (Exception e) {
    e.printStackTrace();
    And that did not work. Java Web Start tries to start the .jnlp program but returns with the message, that the app-desc|applet-desc|installer-desc|component-desc is missing. But it is there: It is an applet and thus I defined an applet-dec.
    I tried to do it from a command line with the followinf command:
    java -Djnlpx.home="C:\abc" -cp "C:\abc\javaws.jar" com.sun.javaws.Main http://a.b/c.jnlp
    And that works. But using this command from within my jjava prog using the Runtime.exec() method does not work.
    By the way, simply type "javaws http://a.b/c.jnlp" at the command line does not work.
    Can anybody help me? How may I start a .jnlp program within another java program.
    Kind Regards,
    Tobias Neubert

    Hi,
    I recently had a quite similar problem. At least the error message by the Java Web Start application on Mac OS X complained about the same error (app-desc|applet-desc|installer-desc|component-desc). It turned out to be some bad invisible characters in the jnlp file. I copied some sample from a web page which for some reason contained some unicode chars that the parser doesn't like. Use a different text editor or the less command on unix to see if there are some strange characters in you jnlp file.
    But it seems strange that it does work from the command line and not from your code.
    -Stefan

  • How to call a Oracle Form from within the APEX

    Hi,
    I have a requirment where need to call a oracle form from within the Oracle APEX application?
    I will appriciate if can someone help me out.
    Thanks

    Hi,
    are you working with Forms 6i or 10g?
    If you want to call a forms 10g page. Just use a button with javascript:
    - Target type: URL
    - URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
    With Forms 6i you can open the directory where your forms file is inside (works just with IE):
    <script type="text/javascript">
    function fnc_window()  {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
    if (w.opener == null)
    w.opener = self;
    </script>Or execute the forms file with vbscript (IE only):
    <script language = "vbscript">
    sub fnc_forms()
    dim progName
    progName = "c:\FormsFiles\myForm.exe"
    set oShell = createobject("wscript.shell") 'create a shell
    '***use the line below to call your app, defined above with the "progName" variable:
    oShell.run(progName)
    end sub
    </script>

  • Start a BO report from within a web-application.

    Hi,
    An enuser want to start a BO report from within a web-application.
    The BO report ideally should not prompt for a login. The fact that we are using BO for reporting purposes should be transparent to the end users. The report should produce its output directly in Excel (pdf?) format. In WebI i can do a 'Save As' to obtain this, but it should go automatically so that the end users get their response directly in Excel
    the report should be parametrized. These parameters will be added to the URL by the calling application.
    To do a basic test of the Opendocument.jsp i created a number of test reports in WEBI, and i use the following URLs to execute them directly
    http://s-olaf-vtst150:8080/OpenDocument/opendoc/openDocument.jsp?&sPath=[My reports]&sDocName=tmsd1&sType=rep&sRefresh=Y
    http://s-olaf-vtst150:8080/OpenDocument/opendoc/openDocument.jsp?&sPath=[My reports]&sDocName=Yearselection&sType=rep&sRefresh=Y&lsSYear:=2002
    So this covers points 1 & 4
    What are the options for points 2 & 3?
    Kind regards,
    Johan

    The BO XI 3.1 environment works quite well now.
    Two more questions:
    1. When a user being member of the Readers group, still sees the Edit button in Webapplication - Infoview. Is it possible to hide or disable that Edit button ?
    2. Is it possible to make a user only seeing a part of the data in the universe ? When a query is run with a parameter, the user ses the parameter in the left column ... but in that way a normal user can change the value of that parameter giving him the possibility to see things he should not see. Making a separate query per user is overkill and too much work to do. Is BO XI 3.1 able to offer this possibility and how ?
    Rgds,
    Johan

  • Remote Start SAP DI instance from CI

    How to start SAP dispatch instance from central instance?
    There is a known bug that whenever database restarted, the DI instance will lost database connection, if no user is connected. This is causing background job to miss the schedule.
    I'm thinking to restart DI instance whenever DB is started up by changing the DB startup script

    Hi John:
    Let me see if I understood, you are actually stopping the Central Instance without first stopping the Dialog Instance (application server)?
    If the answer is YES; you should always stop your DI first.
    Hope this helps!
    Regards,
    Federico

  • Why can't Firefox still not show a pdf properly from within the browser and do we need insufficient and not working add-ons?

    I never succeeded to show a pdf properly in the Firefox browser.
    There is an add-on, but the add-on itself tells you already in most cases that you should download the pdf because it can't show the pdf properly. I can't understand why that is! It makes my live much more complicated, since we have an application running that constantly should be able to show pdf's from within the browser.

    The add-on you are talking about is pdf.js. pdf.js does it best to show you what the pdf's it is given are, but pdf.js is not 100% compatible with all elements that can be put inside a pdf. Another problem pdf.js faces is that many pdf's generated with proprietary software either do not conform to the pdf spec or use proprieatary elements that only pdf readers that the company has designed or partnered with can interpret. I promise you Mozilla doesn't want your life to be any more complicated than it is but sometimes it is simply not possible for pdf.js to read a document when the manufacturer of the program that generated the pdf doesn't play by the rules.

  • Using System.err.println() from within the classes of WAS ?

    hi,
    I am using admin.jar,a jar file which is being used by Web Application Server in my own class.
    I am referencing some of the classes from admin.jar from my class.
    I tried to print some trace statements,using System.err.println() from within the classes in admin.jar but they did not reflect in defaulttrace0.trc.
    I made these changes in the admin.jar being used by WAS.
    I restarted the server and even restarted the machine but without success.
    I want to know how to print System.out.println() statements from within the classes in admin.jar.
    Also, am i looking for these statements in the right file for eg. defaulttrace0.trc. or is it some other file that i need to look into.
    I need urgent help on this.
    Reward points assured.
    thanks a lot.
    Saurav

    thanks craig,
    ur answer has helped me a lot.but it didnt quite help me.
    nevertheless i am trying to set different levels of severity.
    Is there anything else that i can do.
    Also,i commented out a line of code today in one of the class DataSourceManagerImpl.java in sapj2eenginedeploy.jar
    for eg. temp.delete in it deploy method.Buth that line still executed.
    I m totally lost as to wht to do.
    I m trying to create a datasource from my application in WAS.For that i m using the WAS APIs.But its not working completely.
    I am using the above jar and its method createdatasource.
    I am callin it from my application's class.
    It creates a datasource and i can see it in JDBC Connector list in Visual Administrator.But it appears with red sign meaning its not started.When i start it from the tool then it starts.
    But in defaulttrace.trc file it shows an error "FileNotFindException". This happens,and i am very much sure, in the deploy() of DataSourceManagerImpl.java class of sapj2eenginedeploy.jar.
    i want to apply println inside this method so i may know where exactly i ma getting the error and get so more info so i may solve my problem.
    pls help me.
    its really urgent.
    thanks again
    saurav

  • Registration from within the product doesn't work?

    Hi!
    I bought a pre-installed license of photoshop and acrobat with my computer. I registered both products to my Adobe ID when I started the programs for the first time.
    But only Photoshop 11 shows up there and now shows me a serial number of the product.
    The Acrobat program works fine and seems to be registered (at least it doesn't ask for registration anymore), but doesn't show up in my account.
    So I don't get a serial number this way. The seller (Sony Online Store) tells me that they don't hand out any serial numbers since the pre-installed programs are supposed the register automatically (as photoshop indeed did).
    I tried to get help from Adobe Support, but they just keep asking me about the serial number ... instead of telling me how to get it ... or why the registration from within the product works fine for one product but not for the other.
    So what can I do?
    Cheers,
    Martin

    You might check with the Kim Komando site about reading your SN. It is strange that Sony will not give it to you. If you ever have to reinstall it, you will need the SN. Also, I recommend you backup the installation file for these programs (you may have to download the trials) so that you have them for the future. It may be that they are on a CD or separate HD partition and that would be fine. However, it is always a good idea to have a backup of software you own for any time you need to reinstall for some reason (if you read the posts on this forum very much, you find a lot of folks reinstalling or trying to find the software they did not backup so they can reinstall on a new computer or replacement HD after a crash).

  • Can I add or edit Keywords and captions from within the Map module?

    I frequently find a need to edit or add to the caption while reviewing  and geotagging photos in the Map module.  Constantly toggling between modules is inconvenient.  Is there a way to add/edit captions or keywords while working in the Map module  (or view the map module while working in the Library?
    Thanks!
    Steve

    thank you
          From: Modesto Vega <[email protected]>
    To: Steve Murray <[email protected]>
    Sent: Thursday, January 29, 2015 3:27 PM
    Subject:  Can I add or edit Keywords and captions from within the Map module?
    Can I add or edit Keywords and captions from within the Map module?
    created by Modesto Vega in Photoshop Lightroom - View the full discussionYou should be able to change the title, the caption, the sublocation, the city, the state/province, the country, the ISO country code, the altitude, the direction, and a few other fields. However, you cannot add keywords. It would be real nice if Adobe could add this to the Map module. If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7145077#7145077 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7145077#7145077 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop Lightroom by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Making an RFC call from within the VM container

    Hi all,
    since a long time I am searching for information on how to implement an RFC call from within the VMC. The problem is that we have implemented several (p)functions in ABAP and we need to implement them in JAVA.
    Now I am searching for a way how to just call the already existing pfunctions???
    Is it possible to read CRM DB tables too?
    Thank you in advance
    Boris

    Hi Freeto,
    This may be due to the Network Failures.
    If you have triggered a job then because of the Network fluctuations the system may not respond properly and cannot execute the job.
    So, this is the cause for the failure.
    Hope you understood.
    With Regards,
    Ravi Kanth

  • Calling a concurrent request from within the trigger

    Oracle apps r12.
    Calling a concurrent request from within the trigger.
    Does it requre apps initilization.
    Thanks,
    Lavan

    Hi,
    Whether apps initialization needed or not will depend on followings
    1. Trigger is written on which table seeded or custom. In case of seeded tables, there is no need for apps initialization (although oracle does not recommend writing trigger on seeded tables).
    2. Triggering Table Update/Insert/Delete event processing is done from apps front end or Backend. In case of front end apps initialization is not required.
    Regards,
    Saurabh

  • RoboHelp 11 - When previewing topics from within the project, a script error displays: 'HHComponent Activator' is undefined. How do you get rid of this script error?

    RoboHelp 11
    When previewing topics from within the project, a script error diplays: 'HHComponent Activator' is undefined.
    How do you get rid of this script error?

    Hi there
    Have you tried clicking Help > Updates and applying the service release?
    If not, I'd start with that.
    Cheers... Rick

  • Any way to know where a clip came from within the source clip?

    Using Premiere Pro CS4, Version 4.2.1, on an i7 based PC.
    I would like to be able to see where a clip on the timeline came from within the clip in the source monitor. Where ever there is information about the clip on the timeline, it only seems to tell me it's 'Start', 'End' and 'Duration' in relation to the current Sequence, but nothing relating to the 'In' or the 'Out' points within the source clip.
    Is it possible to read this somewhere, rather than having to replay the clip in the source monitor to discover the in and out points? It tends to be tedious doing this too often.
    Thanks in advance, hopefully.
    Peter.

    Awesome sauce Shooter 
    That is exactly what I wanted to know.
    Much appreciated!!!
    Peter

Maybe you are looking for

  • Unable to launch Enterprise Manager console(Oracle 9.2.0.4.0)

    I am using oracle 9i db (9.2.0.4.0). when i try to launch oracle enterprise manager console i am not able to do so. In short After putting username, password,service,connect as ... and clicking on OK button. nothing happens.No message,no warning. but

  • RH PDF generation problems: wrong (A4) page size and Word 2013

    I am trying to generate a review PDF of a handful or topics. It generates, but first I get an error: (I have Word 2013 installed.) Then the PDF generates, but it is A4. I never use metric for anything, so where it is picking up A4 I can't imagine. I

  • All of the the Windows Sidebar Apps have quit working

    With the latest update today, all of my Sidebar gagdets have quit working. When I go to reinstall, I am asked what Firefox should do with them. Why? My gadgets are a windows thing.

  • Selection-Screen Variant in WDJ

    Hi, We want to provide the functionality to users to save the search criteria as a variant (similar to SAP Save-As Variant but this is in Webdynpro-Java).  Can anyone please advise how to achieve this?

  • Lion installed now iPhone won't sync.

    Lion installed. During iPhone 3gs sync, Lion crashed.  Cycled power.  Restored iPhone.  Now when I try to sync iPhone, I get an error message "The iPhone cannot be synced.  The required file cannot be found".  Help ?