How can Client get a ejb remoteinterface class through ejbhomeinterface?

HI,I've got ejbhomeinterface class(ejbhomeinterface class is on my local machine),How can i get ejb remoteinterface class(it is on remote app server) ? I've tried
getEJBMetaData() method, but throw class not found exception,pls help me,thank you very much!!
Object ejbObj = null;
Class remoteClass = null;
EJBHome aHome = null;
try{
aHome = (EJBHome) javax.rmi.PortableRemoteObject.narrow(aHome, EJBHome.class);
EJBMetaData metaData = aHome.getEJBMetaData();
// Class homeClass = metaData.getHomeInterfaceClass();
aHome = metaData.getEJBHome();
remoteClass = metaData.getRemoteInterfaceClass();
//following code i want use remoteClass invoke remote ejb mothod
}catch(Exception e)

may be you need create InitialContext first, than from InitialContext lookup Home interface. And than using home.create() get RemoteInterface and use it.

Similar Messages

  • How  can i get the system ip address through d2k/oracle

    hi
    how can i get the I.P. address of the System, whether any builtin function is available oracle/d2k.
    please do needful help

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:510222107880

  • How can i get a java executable (*.class) run on a web browser?

    I have created a simple appilcation in java and i would like to view it through a web browser.
    In order to do so, do i need to use an application server or just a web server?
    Can you come up with another solution to solve my problem(view the java application through the web)?
    Thank you in advance.

    If it HAS to be an application (perhaps something you have already written and now need to distribute), then Java Web Start may be an option.
    What is your user base? How many people will be using it? In what environment? How frequently will they use your app? I think you mentioned that it needs to read files. Is that on the user's machine?
    You may be able to create an applet version of your application using the same logic but subclassing some of the components to allow for remote login etc.

  • How can i get size of a class?

    is there any way to find a size of class? like
    sizeof(struct stu) in c language

    Yes you can with 1.5 using http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/Instrumentation.html
    It is not straight forward process. You have to create your own agent:
    package foocompany.agent;
    public class SimpleAgent {
       private static Instrumentation instrumentation;
       /** Creates a new instance of SimpleAgent */
       public SimpleAgent() {
       public static void premain(String agentArgs, Instrumentation inst) {
          instrumentation = inst;
       public static long sizeOf(Object object) {
          return instrumentation.getObjectSize(object);
    }Create a manifest file:
    Manifest-Version: 1.0
    Premain-Class: foocompany.agent.SimpleAgentCombine them into a jar file.
    And then specify the jar file on the command line:
    java -javaagent:"<path to jar>\simpleagent.jar" <rest of arguments...>
    Then you can call SimpleAgent.sizeOf() on any object from your program.

  • How can I get someone to talk me through a problem?

    I tried syncing iPad on computer and it changed all my apps & worse, I can't seem to get the book I was reading back on pad.  Can anyone help?  I'm definitely computer/iPad challenged!

    This is how you set your sync preferences for anything that you want to sync to your iPad. This uses apps as the example but this is the way that you can select all content to sync to your device.
    "Click on" in the instructions below means to put a "tick" in the boxes next to the names of the apps in the apps list.
    Connect the iPad to the Mac and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Apps Tab on the right.
    Click on all of the apps that you want to sync,
    Click on the Sync Apps Heading.
    Click on Apply in the lower right corner of iTunes
    You can go into the Music tab, the Photos tab, Movies, books and so on and select all of the content that you want to sync, just like you did here. You can make all of your selections in all of the different tabs in iTunes and then Click on Apply when you are finally ready to sync the device.
    You also have the option of turning off auto sync if you like so that you can make the selections or make changes every time that you sync your iPad. Launch iTunes and go to iTunes>Preferences>Devices and check the box at the bottom - Prevent iPods, iPhones and iPads from syncing automatically. Click OK and quit iTunes. Then connect the iPad, launch iTunes and go through the priced up outlined above.
    If you prefer to leave auto sync turned on, you can still go back and make the changes as described above, after the iPad auto syncs.
    Read the first four support articles (or more if you like) in this Google search for more information about syncing with iTunes.
    https://www.google.com/search?q=syncing%20with%20iTunes

  • Comment puis je obtenir et transférer sur mon ordinateur le logiciel NTFS par Apple Store ? How can I get on my computer NTFS through Apple Store ?

    Bonjour, Hello
    Can you tell me how I can get on my computer (MacBook Pro 10.9.5) the NTFS Reader through Apple store ?
    Thanks

  • How can i get the songs i purchased through my iPhone?

    I purchased songs in the past and I would like to get them back. How do I do that?

    Downloading past purchases

  • HT201272 this help tree *****!!!!!  I can't download a previously purchased movie, and all I get are instructions.  How can I get an answer without going through 55 million "help" trees?  Jesus!!!

    In more detail, first, I purchased at least 7 tv seasons, adn they do not show up on when I purchased a new computer.  are they forever lost?  Secondly, my ituns account shows 1 item to be downloaded, but when I click on "download," it "thinks" for about 30 seconds and then reverts back to the alert.  argh.  can someone help?

    this did not help.  that is why I reached out.  The link does not answer my question.  please help.

  • How can I get my iPod to play through the 30 pin connector?

    I bought an 30 pin to 8 pin adapter. I plugged it into my iPod and plugged it into the sound system (new Yamaha MCR -049). The scene says "unknown iPod" and will not play music (it comtinues to play through the iPod's speaker) and it does not indicate that the iPod is charging. What am I doing wrong?

    Is a lightning adapter the same as 8 pin ? The manufacurer says this stereo says this only works with iPod 5 (mine is) and the only way to connect is an adapter. I bought an after market brand instead of Apple branded.  I think I have a bad adapter. I'll buy a 39 pin to lightning adapter. I think that's the only way I can figure put if the dock works.

  • How can i get my Nano to play through all albums/playlists automatically?

    I like to walk for an hour/ hour and a half each day, and would love to know if somehow i can start playing 1 album or playlist, and have the Nano automatically play through the remaining albums/playlists so i don't have to manually start playing an album again each time one finishes???
    I have only had my Nano 3 days, so forgive me if this is a simple question.
    Thanks!!
    iBook G3   Mac OS X (10.4.3)  

    Found my answer in a previous post.
    Thanks.

  • How can I get surround sound to export through the correct speakers?

    Hello there!
    I am experienced with Soundtrack Pro and can successfully export 5.1 surround.
    I'm moving over to Logic Pro to try out 7.1 surround, but I can't even export 5.1 surround successfully since dialogue for example comes out of all speakers, yet I've panned it to the front centre speaker. Please note I do not have surround speakers set up with my computer as whenever I do connect to my amplifier it just does everything through all speakers (whether using Soundtrack Pro or Logic Pro). I am using the visual surround panner as my guide. Either way the surround export in Logic Pro is not what I'm doing within the pogram.
    I believe I've got everything set up properly:
    In Preferences-Audio-Devices-Core Audio I have device Sunflower (16ch)
    In Preferences-Audio-Output- I have 5.1 (ITU 775) or 7.1 (3/4.1)
    All tracks are set with the surround panner and I can use just like in Soundtrack Pro.
    I can bounce the individual stems properly.
    It's just not in proper surround sound.
    Where am I going wrong?
    Thanks in advance.

    EMB -
    What is the function of Sunflower in your work flow? Usually its used to route audio between programs. In the case of Logic, you simply need to route to the outputs for things to work right.
    I guess we should start with your interface - do you have 6 actual separate outputs that you can use to monitor your surround sound?
    (NOTE: I no longer do surround, but used to). In my case, I used a RME Fireface 800 which had a bunch of analog outs. I used outputs 1&2 as L&R, 3&4 as Center/Sub, and 5&6 as Rs/Ls. Each of these outputs was connected to a monitor so that I could mix in surround.
    When you say you are bouncing 5.1 successfully, do you mean it is creating 6 separate files?
    BTW - what mechanism are you using to playback your surround files? I used to use a PC program to burn DVDA's, which I then played back on a DVDA-capable disk player.
    If you are looking to encode the files so that they will playback on a traditional surround sound system, you would need to put them through a Dolby Digital encoder. If you have had Logic for a few years, you MAY have Compressor which can do this. Otherwise, Dolby Digital encoder software can be somewhat expensive.

  • How can i get my iphone to play through the speaker in my car

    i have a wire that go's into the headphonething on the iphone
    then the other end go's into the car put it plays through the iphone speaker do i need to buy a different wire or something plz help
    by the way it work with my ipod

    Is the jack not fitting into the top of the iPhone?
    If so then you would need this adapter for it to fit properly.
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=3DB 4EB78&fnode=home/shopiphone/iphone_accessories/cablesdocks&nplm=TN546LL/A

  • Can we get user's phone number through coding

    HI, I want to know that, how can we get user's phone number through coding and is it possible to send sms to some number without concerning to user. I required this for developing the mobile tracker application which will detect that the phone is stolen.

    The developer forums are here: http://devforums.apple.com
    Documentation for iOS developers is here: http://developer.apple.com/devcenter/ios/index.action

  • How can I get a reference to the Local interface of a EJB 3 session?

    Hi,
    How can I get a reference to the Local interface of a EJB 3 session?
    My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a reference
              processor = (IItemProcessorRemote)initialContext.lookup(IItemProcessorRemote.class.getName());but if I also look up the local interface in th eclient using this:
    processorLocal =(IItemProcessor)initialContext.lookup(IItemProcessor.class.getName());I got errors like the following, do you know why? Thanks a lot!
    Exception in thread "main" javax.naming.NameNotFoundException: sessions.IItemProcessor not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
         at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)

    BTW, findItemByTitle(String title) is a business method in my ItemProcessor session bean.
    public String findItemByTitle(String title) {
              AuctionItem item;
              String result = null;
              try {
                   Query query = entityManager
                             .createNativeQuery("SELECT i from AuctionItem i WHERE i.title LIKE : aTitle");
                   query.setParameter("aTitle", title);
                   item = (AuctionItem) query.getSingleResult();
                   result = item.toString();
              } catch (EntityNotFoundException notFound) {
              } catch (NonUniqueResultException nonUnique) {
              return result;
         }

  • How can I get client IP address in portlet (servlet) ?

    How can I get client IP address in portlet (servlet) ?
    request.getRemoteAddr() return server IP.
    May be I must use Portal API, which extend Servlet classes, but I can't find this.
    Can any help me?

    Hi,
    Following query can help you to get the Client IP Address.
    select sys_context('userenv','ip_address') from dual;
    Thanks,

Maybe you are looking for