Can EJB Beans explicitly make RMI calls?

Hi,
I'm new to EJBs and would like to know if an EJB bean (especially a session bean)
can explicitly make RMI calls to remote objects that are not EJBs?
Thanks in advance to your advice.
cc.

The best approach here in my mind would be to bind the RMI object to a JNDI name then have your bean lookup the RMI object with JNDI and then make the calls.

Similar Messages

  • Can A Java class make a call to a control ?

    We are using Workshop 8.1 - is this doable without using a web service and calling
    proxies ?
    Thanks

    No... It would be very nice feature.
    "ghulam" <[email protected]> wrote in message
    news:3fe9bcf2$[email protected]..
    >
    We are using Workshop 8.1 - is this doable without using a web service andcalling
    proxies ?
    Thanks

  • I can't make a call with my I-phone 4

    My phone does not receive or  can be used to make a call - it receives sms.
    When calling a nuber it does not ring - but freezes an has to be turned off to delete the number is seems to be calling all the time

    First try resetting your phone:
    Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release.

  • Can't make Facetime calls using my  iMAC

    Recently I can not receive or make Facetime calls using my iMAC.  I can make and receive then on my iPhone.  If I make a Faectime call using my iMAC it says the person is not available to Facetime OR it makes the connection but immediately says "call failed".  If someone Facetimes me, my phone rings but not my iMAC.

    The Apple article below may help.
    Unable to make or receive FaceTime calls after April 16, 2014

  • Which apps allow to make free call from outside US to US Cellphone without data plan?

    Hi Everyone,
    I am using Iphone 4 and I live in India.
    I have few friends in USA and I want to make a call to them.
    The problem is that they do not have any smartphone so I can't use any peer to peer system or Apps like Skype, Fringe, Viber etc etc.
    I am looking for the names of an Apps which i can use to call from India to USA but In USA my friend don't have smartphone so I can be able to make a call on cellphone in USA without any data plan.
    Please give me the names of those kind of Apps...
    Thanks in Advance..
    Thanks
    Hemu7310

    Assuming you have an Internet connection of some sort from your iPhone, you should be able to use any Voice-Over-IP service, such as the ones you mention. Skype, at least, allows calls to standard telephones, but such calls are not free. You will need to consult the services' pricing to know what it will cost.
    Regards.

  • Is it allowed to make a rmi call from within an ejb??

    Hello,
    Am I allowed to make a rmi call from within an ejb such as:
    String host = "localhost";
    RemoteObject ro = (RemoteObject) Naming.lookup("rmi://"+host+"/MonServeur");
    ro.myMethod();
    package pack;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    public class MyRemoteObject extends UnicastRemoteObject implements RemoteObject {
        public MyRemoteObject() throws RemoteException {
        public void myMethod() throws RemoteException {
            System.out.println("toto");
        public static void main(String[] args) {
            try {
                RemoteObject ro = new MyRemoteObject();
                Naming.rebind("MonServeur", ro);
            } catch (Exception ex) {
                ex.printStackTrace();
    }Is it allowed by the spec?
    Is it good design?
    Thanks in advance,
    Julien Martin.

    Allowed - yes
    Good design - no, in my opinion.

  • Can I specify a timeout value for an RMI call?

    Is it possible to specify a timeout value when a client makes a remote
    RMI call to a WL
    EJB? If the server method hangs does the client call hang forever with it?
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"

    That's what I did to try this. weblogic.ejbc knows how to pass -dispatchPolicy to
    the weblogic.rmic, so in the RMI descriptor it creates:
    <method
    name="*"
    dispatch-policy="queueName"
    >
    </method>
    so, maybe there is a command-line option for the timeout as well. Anyway, extracting
    xxxRTD.xml and adding
    <method
    name="*"
    timeout="xxx"
    >
    </method>
    works just fine.
    Rick Holland <[email protected]> wrote:
    So all I have to do is build my EJB jar, extract the *RTD.xml file, hack
    it, stuff it back into the jar and deploy (all within my Ant script).
    Sounds fairly straight forward.
    Thanks again
    [email protected] wrote:
    It gets there from the server. If you look inside ejbc'ed ejb-jar you'll find
    RMI descriptors there (they are named like xxx.RTD.xml)
    Rick Holland <[email protected]> wrote:
    Thank you Dimitri, but I have one more dumb question, since I need these
    timeouts
    on the client side where does an RMI descriptor go? I have never used
    one of these.
    Thanks
    [email protected] wrote:
    AFAIK, you can specify it in the RMI descriptor :
    <rmi Name=".....">
    <cluster
         clusterable="true"
    </cluster>
    <method
         name="methodname"
         timeout="timeoutinmilliseconds"
    </method>
    </rmi>
    And, if there is timeout, method invocation will fail with exception like this:
    weblogic.rmi.extensions.RequestTimeoutException: RJVM response timed out after: '1000' milliseconds.
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    at $Proxy2.testTimeout(Unknown Source)
    Rick Holland <[email protected]> wrote:
    Is it possible to specify a timeout value when a client makes a remote
    RMI call to a WL
    EJB? If the server method hangs does the client call hang forever with it?
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"
    Dimitri

  • My phone won't let me make a call, I have it activated and also used the 45 dollar plan and it still tells me to enter a phone number...What can I do to get it to work?

    If someone can please help me I am a new user to this phone and Verizon.  I got to so that I could call my son and mom long distance, but it won't let me make the call.  It is activated and has the 45 dollar plan on it.  I really want it to work and not be a waste of money. 

    I'm sorry you're having troubles making calls, cnasam. From the phone, please try dialing *228 [send], option 1 to program. When completed, restart phone. If this doesn't work, please reach out to PrePay directly at 888-294-6804 and select options 4,6,4 for prompt service.   Thank you, VanessaS_VZW Follow us on Twitter @VZWSupport If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them

    Can any one please help me I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them. I have tried all restoring options but no use. please help me

    The mic on my iPhone4 has just quit also. Similar symptoms to yours in that people I'm talking to hear only static or my voice very faintly. The voice/memo recorder also only really records static.
    It happened suddenly and seemed to get better after a day or two but then went completely after another day.
    I'm returning it to Vodafone New Zealand shortly but will have to wait 5-10 days for a replacement. There are NO Apple accredited means to speed this procedure up in NZ.
    We don't even have a single physical Apple Store where you could walk in and talk to a Genius.

  • How can I make a call from iPad

    How can I make a call from IPad

    Oh, you have to get the iPhone app.
    Seriously, though .... you are aware that it's not a telephone, right? Any calls you make will be using VOIP and any of the apps and/or services (Skype, Google Talk, etc., etc.) which support that. Some of those are US-only, all have various restrictions and cost structures.

  • Sbi mobile banking is not working in iphone4. i can't make video call to other than iphone4

    sbi mobile banking is not working in iphone4. i can't make video call to other than iphone4

    What troubleshooting steps have you tried?  Have you tried resetting the iPhone? or restoring it?

  • My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    Clean iPhone charging port with clean dry toothbrush. See if better. If still problem clean charging port again with toothbrush and small amount of Isopropyl Alcohol.

  • Two EX90 devices can make video calls over Internet with No VCS-C and VCS-E

    Dear Experts;
    I  have just started TelePresence and VCS 2 weeks before by going through cisco docs and videos and I had taken a risk of implementing the infrastructure elements.
    We are now implementing Cisco Tele presence with VCS-C, VCS-E TMS,TCS,MCU and End points with  Jabber in One setup.
    and in another setup CUCM 10.5,UCCX 10.5 IM&P,Jabber with some 10 agents.
    Now the question is In our same building in 2nd floor we have one EX90 and in 5th Floor one EX90 and over LAN we can make video calls using IP address.
    In the same way is it possible to make  a video call between 2 EX90 devices present in different location in the same city over Internet without the involvement of VCS-C and VCS-E.
    Appreciate your valuable reply.
    Regards
    Debashis

    The simple answer to that is NO! Where is the EX90 registered to at the moment? Is it on the VCS? or CUCM

  • How can i hide my extension number when i make outgoing calls

    Hi All,
    How can i hide my extension number when i make outgoing calls,what configuration should i make on the call manager server.
    Regards,
    Lester

    We use a Route Pattern that mimics the telco feature *67. The RP is *679.xxxxxxx with a Transformation mask of 000000000 (just to get beyond the individual blocking on some private lines.

  • I have a iPhone 5 and I am not able to toggle between the show my caller Id option on and off. How can I do that ??? It always shows greyed out and also because of which I am not able to make outgoing calls. So please help

    I have a iPhone 5 and I am not able to toggle between the show my caller Id option on and off. How can I do that ??? It always shows greyed out and also because of which I am not able to make outgoing calls. So please help

    Not all carriers allow that to be set using preferences in the phone. Contact your carrier.

Maybe you are looking for

  • Error while trying to compile in Adobe AIR with Dreamweaver CS4

    hello guys, I am running under a imac i7, with snow leopard, i have installed the extension for dreamweaver cs4 to compile a project in adoebe air. but when a try to compile the prject i receive a java error reporting i have to installa Java 1.4 or h

  • How to get the path of placed plugin location

    hi all, I want to get the path of my placed plugin location in my custom plug-in code. supporse my custom plugin at : C:\Program Files\Adobe\Adobe Illustrator CS5.1\Plug-ins\MyCustomPlugin\MyCustomPlugin.aip Is any API is there that can tell me my pl

  • [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

    Hi.  I've been running a pretty standard Xfce environment for a while.  When I plug in a usb drive, I get a new item pop up in the "DEVICES" section of the left panel in thunar (note, it doesn't automount the device, it just shows that it's there and

  • HELP: Problem when compile cldc1.1 and midp2.0 in winxp

    the error msg is "missing com.sun.cldc.io.GeneralBase" i check all the folder and cannot find this class, does it really necessary? why sun do miss it in the release? anyone can help me? thanks a lot

  • Attachment & delete function

    Dear All, Has anyone have idea about ATTACHMENT option in oracle application 1. i want to know is there any way we can restrict size limit for attachment upload in oracle application. Attachment is a function in oracle application. 2. There is one mo