How to get JNDI context on Sun AS8.1? Please help!

I am using NetBean4.1 with AS8.1.
I want to write a client application to retrieve a ejb remotely on the AS8.1 server.
Does anyone know how to get the JNDI initial context?
If my Sun AS8.1 server is located at ip 218.100.100.100,
what is the url needed to create a JNDI initial context?
Also, the ejb my client app going to retreive contains the following class
CustomerBean.class
CustomerRemote.class
CustomerRemoteHome.class
CustomerRemoteBusiness.class
when compiling the client app, do I only need CustomerRemoteHome.class?
or do I need any other class file to compile(stub or whatever)?
Thank you very much!!

RTFM
Using a Stand-Alone Client to Access an EJB Component
To access an EJB component from a stand-alone client, perform the following steps:
1. In your client code, instantiate the InitialContext:
InitialContext ctx = new InitialContext();
It is not necessary to explicitly instantiate a naming context that points to the CosNaming service.
2. In the client code, look up the home object by specifying the JNDI name of the home object. For example:
Object ref = ctx.lookup("jndi-name");
BeanAHome = (BeanAHome)PortableRemoteObject.narrow(ref,BeanAHome.class);
For more information about naming and lookups, see �Accessing the Naming Context� on page 239.
3. Deploy the EJB component to be accessed. For more information on deployment, see �Tools for Deployment� on page 88.
4. Copy the following JAR files to the client machine and include them in the classpath on the client side:
* appserv-rt.jar - available at install_dir/lib
* j2ee.jar - available at install_dir/lib
5. To access EJB components that are residing in a remote system, set the values for the Java Virtual Machine startup options:
jvmarg value = "-Dorg.omg.CORBA.ORBInitialHost=${ORBhost}"
jvmarg value = "-Dorg.omg.CORBA.ORBInitialPort=${ORBport}"
Here ORBhost is the Application Server hostname and ORBport is the ORB port number (default is 3700).
This information can be obtained from the domain.xml file on the remote system. For more information on domain.xml file, see the Sun Java System Application Server Administration Reference.
6. Run the stand-alone client. As long as the client environment is set appropriately and the JVM is compatible, you merely need to run the main class.

Similar Messages

  • I right clicked my iPod on iTunes and clicked restore from back up because i thought it would undo my IOS6 update. IT DELETED ALL MY PICTURES (2,000) AND I DON'T KNOW HOW TO GET THEM BACK!!!! Please help me!!!!!

    I right clicked my iPod on iTunes and clicked restore from back up because i thought it would undo my IOS6 update. IT DELETED ALL MY PICTURES (2,000) AND I DON'T KNOW HOW TO GET THEM BACK!!!! Please help me!!!!!

    Well, if you have not backed them up, they are gone.
    Next time, when you have important material in only one place, back it up.

  • HT200131 I am trying to enter my network password and when I have entered the password for my network, I don't know how to get the remote to select submit.  Please help

    I bought an apple tv some time back and am only now trying to set up the wireless internet connection.  I can see my network but when I enter the password with the remote, I don't know how to get the remote to submit the password.  Could you please tell me what to do?

    You have to use the right arrow on the remote to navigate all the way and highlight the submit button.

  • How to get rid fo this problem...please help..EMERGENCY NEED.

    Hi,
    Is there any Java bean demo created by oracle to capture image from webcam or camera into form.. I am tired insearch of get solution for this problem.
    Can i use this in my 6i application...please help since i am working on this problem for the past 20 days but not solution and help
    thanks
    asp

    Here it is...
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS MACintosh HD            120.5 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    do I need to disable the FlieVault?

  • Does anyone know how to get rid of Livewire???  PLEASE HELP!!!

    My friend downloaded Livewire to my other Dell PC and it is now a folder in my iTunes sidebar. When I am trying to build new playlists etc they are added as a subfolder under my iPod but when I am trying to download songs to my nano it is only giving me the option to pick playlists that are a subfolder of the Livewire folder. So when I try to update ipod uding the "only checked playlists" option, the options given are subfolders of the Livewire folder and not the playsists I am making that fall under the iPod folder. I tried to remove Livewire from my computer via add/remove fies but is is still in my iTunes. How do I get rid of this??
    Thanks
    Mac G3   Mac OS X (10.3.9)  

    I don't know if this will help but when Limewire was downloaded on your computer, along with the desktop icon was the uninstaller for Limewire. You might try it if you still have it somewhere. After you went to add/delete program it might have deleted that, so you may have to download again and then uninstall. Hope this helps. It's Limewire.com and you probably had the basic which there was no cost involved. Good Luck! Irene

  • Flash player update related pop-up appearing in all the browsers...unable to open even gmail/youtube, how to get rid of this ??? Please help...

    This pop-up is almost coming upwhile opening every 2nd website, I don't know how it has happened but it is very annoying.
    Please suggest how to fix this..
    Thanks.

    The update alerts are fake, and are intended to dupe you into installing malware or disclosing private information so that your identity can be stolen.
    You might get the alerts when visiting a website that has been hacked. Don't visit the site again. If applicable, notify the site administrator of the problem, but don't send email to an unknown party.
    If you get the alerts when visiting well-known websites such as Google, YouTube, or Facebook, then they're almost certainly the result of an attack on your router that has caused you to get false results from looking up the addresses of Internet servers. Requests sent to those sites are redirected to a server controlled by the attacker. It's possible, but less likely, that the DNS server used by your ISP has been attacked, but you should assume that the router is at fault until proven otherwise.
    The router's documentation should tell you how to reset it to the factory default state. Usually there's a pinhole switch somewhere in the back. It may be labeled "RESET." Insert the end of a straightened paper clip or a similar tool and press the button inside for perhaps 15 seconds, or as long as the instructions specify.
    After resetting the router, quit the web browser and relaunch it while holding down the shift key. From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Do the equivalent if you use another browser. Open the Downloads folder and delete anything you don't recognize.
    Then go through the router's initial setup procedure. I can't be specific, because it's different for every model. The key points are these:
    1. Don't allow the router to be administered from the WAN (Internet) port, if it has that option. Most do.
    2. Set a strong password to protect the router's settings: at least ten random upper- and lower-case letters and digits.  Don't use the default password or any other that could be guessed. Any password that you can remember is weak.
    3. If the router is wireless, or if you have a wireless access point on the network, use "WPA 2 Personal" security and set a different strong password to protect the network. If the router or access point doesn't support WPA 2, it's obsolete and must be replaced.
    During the time the router was compromised, you were redirected to bogus websites. If you ever connected to a secure site and got a warning from your browser that the identity of the server could not be verified, and you dismissed that warning in order to log in, assume that your credentials for the site have been stolen and that the attacker has control of the account. This warning also applies to all websites on which you saw the fake update alerts.
    If you downloaded and installed what you thought was a software update, ask for instructions.

  • How to get storage on my phone again. PLEASE HELP this has been an issue for a LONG time now.

    almost ALL of my iphones memory is being taken up by "other" i only have 1 GB of pictures & under 1 GB of apps. I actually had to delete all my apps just so i would still have space on my phone. I am not looking to buy more memory. My family cant really waste our money on that kind of stuff right now. I have tried restarting my phone but when i back up to icloud my phone is full of memory still. No i have no problem with getting all my pictures off my computer. But is there a way to reset my phone and ONLY keep my contacts. No other memory stays on my phone just my contacts. that way other will go away? If i need to go to the apple store i will go there. I just need to know what to do. another question i had was, now that i downloaded the icloud pannel, if i were to delete my icloud backup account, would all my information, like contacts, notes, reminders, etc, still be saved on icloud.com ? so i could just reset my phone completely. Get all my contacts off of icloud.com. & download all my pictures from my laptop onto my phone. PLEASE PLEASE PLEASE ANSWER. this has been a major problem for me for about a year & now its getting to the point where theres nothing left i can do. It's really stressing ALWAYS having to get online to try to find a way for my phone to not run out of storage. Please and thank you.

    hello, since this is not a support request as you have said yourself, your comment is offtopic to this forum - please refer to the [[Forum rules and guidelines]]!
    use https://input.mozilla.org/feedback in order to provide general feedback instead...

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • I have had a reinstall nightmare getting my loops back they are in the apple library, I can access them through the media browser but I only have a few available through the loop browser, how do I get them all back there again? please help

    I have had a reinstall nightmare getting my loops back they are in the apple library, I can access them through the media browser but I only have a few available through the loop browser, how do I get them all back there again? please help

    "Where do I find my hundreds of dollars of downloads I have done since 2005?"
    They will only be where you put them  If you are doing the very basics, then they will be on your computer and they will be in your backup copy of your computer.
    The itunes store is not global at all, never has been. You cannot redownload your content from another country.  You can only use the countrys itunes store for the country that you are physically located.

  • I accidentally synced my mum's brand new iPad to my mac book air. A few days later I realised that my iTune library on my mac is completely gone. So is my iPhone 4s after I synced it with my mac. How do I get my old iTunes library back? Please help!

    I accidentally synced my mum's brand new iPad to my mac book air. A few days later I realised that my iTune library on my mac is completely gone. So is my iPhone 4s after I synced it with my mac. How do I get my old iTunes library back? I tried using icloud on my iphone but it stated that I have never back up my phone before. So I guess my iCloud data is gone too? But I have back up my mac in my harddrive using time machine. So how do I get my old itune library back? Please help! Thanks!

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

  • How to get those Char Description when i record please give a solution

    Hi Experts
    when i try to extend using BDC the meterial all data is getting copied to new plant but in MRP3 Configure varients is not getting copied in bdc i am getting all the values from parent plant but these values are not getting displayed in new plant for only *MRP3 Configure varients
    how to get those values please give a solution
    and
    when i am trying to make the BDC recording of creation of meterial in this process
    in MRP3 when i give configurable meterial  = Lamp  or CT or VOLTMETER and when
    i go for configurevariants button it's not displaying any Char Description  for the perticular meterial
    but in general when i creat a material process  there Char Description  are coming where i can give the values
    how to get those Char Description when i record please give a solution

    Hi Maen Anachronos
    i am Getting popup where i can give any value
    but in creation of meterial for a perticular config meterial there is will be 1 templete in which we will get some constant  Char Description where we'll have some options to give the value
    but when it 's done in BDC Recording  it's not displaying any values Char Description then how can we decide the values to what to give when Recording

  • I had to restore my iPod because I forgot the password, like how santa forgot about me. And I didn't set up a Backup. SO I sort of lost everything. But I'm wondering if I can somehow get my pictures back from somewhere. PLEASE HELP ME. Thanks

    I had to restore my iPod because I forgot the password, like how santa forgot about me. And I didn't set up a Backup. SO I sort of lost everything. But I'm wondering if I can somehow get my pictures back from somewhere. PLEASE HELP ME. Thanks

    - If you used PhotoStream then try getting some of them from your PhotoStream. See that topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer
    - Maybe from the restored iPod via
    How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     
    http://www.amacsoft.com/ipod-data-recovery.html

  • HT5361 I am unable to start or select the MAIL app. No incoming mail and no outgoing mail. I do not even know how to get an answer without email. Can you help?

    I am unable to start or select the MAIL app. No incoming mail and no outgoing mail. I do not even know how to get an answer without email. Can you help?

    Thank you Carolyn, How helpless you can feel without this App!
    Going into the App Store as you suggest, I see 'thee updates available", the first says, 'X RESTART', the second says, 'Garage Band, an error has occurred" (in red), and the third 'Memory Clean, UPDATE'.
    Am I correct in thinking that OSX is the problem, because it is waiting for a restart?
    Kind regards,
    Cy

  • HT5622 When I was update free OS update I was charged 60 INR four times, I don't how to claim my money back. Could you please help to get my money back?

    When I was update free OS update I was charged 60 INR four times, I don't how to claim my money back. Could you please help to get my money back?

    Did you add or change your credit card details on your iTunes account when downloading them ? If you have then each time that you do so a small temporary store holding charge may be applied to check that the card details are correct and valid and that it's registered to exactly the same name and address as on your iTunes account - it should disappear off your account within a few days or so.
    Store holding charge : http://support.apple.com/kb/HT3702

  • Why is my iPad all fuzzy and blue? This isn't normal? How do I get it back to normal? Someone please help me.....

    Why is my iPad all fuzzy and blue? This isn't normal? How do I get it back to normal? Someone please help me.....

    Try resetting it.  Hold the on/off and home buttons together for about 10 seconds till the Apple logo appears.

Maybe you are looking for

  • Implementing BADI MD_ADD_COL_EZPS in extending MD04 transaction.

    Hello Experts, I have a query in regard to extending MD04 transaction. Currently MD04 is enhanced with 3 custom buttons (used buttons are: BUTTON1_EZ, BUTTON2_EZ and BUTTON3_EZ)  being displayed based on which a new column gets displyed in the table

  • HR ABAP: LOOP AT SCREEN: Multiple Fields Disabling.

    Experts, Am a new member in the world of SAP ABAP! Need ur advice regarding. Have coded following for disabling a field in PBO based on subtypes.     IF p9235-subty = GC_AICTD.       IF screen-name = 'P9235-ZZ_RC_MDE'.         screen-active = 0.     

  • Error code 50 when updating desktop

    I received error code 50 when updating the creative cloud dekstop. It tells me to contact customer support. how do i do that?

  • Problem in AGR_1251 download

    Hi All, I am using AGR_1251 to list all auth. objects and their field values in a role. When I download it to an excel file,I find that a few rows are merged in one column. This makes the purpose of listing fail Has anyone else faced the same issue.P

  • MySatellite A100 does not want to start

    Well, here is the problem: Today, I wanted to start up my PC as usual. I entered my user-name and my password as usual and then appeared the usual message "Welcome". But then, it remained blocked at that message. The entire screen remained blocked. I