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.

Similar Messages

  • Can I make a database call from within my rss.xml file?

    I have a rss.xml file for my web site which works just fine, but has to be manually updated each time my web site blog is updated. Is it possible to insert a sql query in my rss.xml file so it can pull the updated info automatically from my mysql db?
    I know the rss.xml file will have to be renamed with a .php extension, will it still work?

    I think this is what you are looking for[http://dev.mysql.com/doc/refman/5.1/en/xml-functions.html]
    They are called XML functions that you can set up in an .php file to export the updated file name as rss.xml, though I think it will overwrite anything already in the .xml file.
    If you care to dabble, you may already be a master, but there are some cool rss tutorials here [http://www.w3schools.com/rss/]
    Hope this helps!

  • I can only send messages to other iPhones and I am not allowed to make or receive calls

    I can only send messages to other iPhones and I am not allowed to make or receive calls at all not even iphones.

    You must have a SIM card installed ( if applicable ) and have your iPhone activated to make calls or text mobile phones.

  • How do i make a phone call from my mac

    i can't make a phone call from my mac nor receive phone calls

    NO my mac is on a different wi-fi than my phone

  • How do I make a phone call from my mac with yosemite?

    How do I make a phone call from my MacBook Pro on the Yosemite operating system?

    The following quotation is from Connect your iPhone, iPad, iPod touch, and Mac using Continuity
    There is more information in the link, including supported hardware and that you must have Settings > FaceTime > iPhone Cellular Calls set to on on the iPhone.
    Phone calls
    With Continuity, you can make and receive cellular phone calls from your iPad, iPod touch, or Mac when your iPhone is on the same Wi-Fi network.
    To make and receive phone calls, here's what you need:
    Sign in to the same iCloud account on all your devices, including your Mac.
    Your iPhone and your iPad or iPod touch need to use iOS 8 or later. Your Mac needs to use OS X Yosemite.
    All devices must be on the same Wi-Fi network.
    All devices must be signed in to FaceTime using the same iCloud account. This means any device that shares your Apple ID will get your phone calls. Look below for instructions on how to turn off iPhone cellular calls.
    Wi-Fi Calling needs to be off. Go to Settings > Phone. If you see Wi-Fi Calling, turn it off.
    Make a call
    To make a phone call on your Mac, iPad or iPod touch tap or click a phone number in Contacts, Calendar, or Safari.

  • Is there a way to make a video call from my iPhone 4 to a non apple phone? Also is it possible to transfer pics using bluetooth from iPhone to other company mobiles? Its a great phone but sometimes I feel struck inside it.

    Is there a way to make a video call from my iPhone 4 to a non apple phone? Also is it possible to transfer pics using bluetooth from iPhone to other company mobiles? Its a great phone but sometimes I feel struck inside it.

    You'd need an app like Skype to video call with other phones.
    Data transfer is not supported via bluetooth and iphone to iphone is not supported at all.

  • How to make a conference call from an iPhone

    How to make a conference call from an iPhone

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf user manual

  • My mac won't make or receive calls from my iPhone, I have yosemite and the phone updated to the 8 iOS version.

    My mac won't use the contacts list to make or receive calls from my iPhone. The software is there, the icloud is on. What am I missing?

    Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support

  • I cannot make or receive calls from my Mac

    I cannot make or receive calls from my Mac using Iphone from my home wifi network BUT i can do it while I'm using my office's wifi connection. what to do?

    Are you saying that your house has both a home wifi network and your office's wifi network?
    Or are you using the Mac and Phone at both work and home?
    This is the Mac Pro desktop forum so are you lugging the Mac Pro desktop to work?
    Can you use FT and Messages on your home network?

  • Cannot make or receive calls from macbook air 2013

    i installed OSX Yosemite 2 days ago but i cant figure how to make or receive calls from my computer.
    everytime it gives an error "your phone and computer must be in the same wi-fi connection" which they already are.
    i tried log out and log in again for icloud also re-installing yosemite but no luck.
    any help would be appreciated
    Thanks
    Macbook Air 2013 (Yosemite)
    Iphone 5 (IOS 8.0.2)

    There are many reports like yours. Apparently there are bugs yet to be worked out in Handoff. Make sure you've taken all the steps directed in the support article linked below. If you have, restart the phone and try again. Failing that, you can either contact Apple Support, go to a "Genius Bar," or wait for an update to iOS and/or OS X.
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity

  • Why cant i make a FaceTime call from iMessage on the iPad

    why cant i make a FaceTime call from iMessage on the iPad

    Because you make a FaceTime call from FaceTime on the iPad.
    On a Mac, you can start and iChat conversation from the Messages app and maybe that is what you are talking about. iChat can still be used in Mountain Lion in order to have a face to face conversation with other Mac users that are not running ML and therefore do not have FaceTime.

  • 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

  • How can we get a url for a "Meet Now" conference call from within the Windows Store App?

    Hi,
    Is it possible to get the url for the current meeting / new "Meet Now" call from within the Windows Store app?
    You have the option of inviting your current Lync contacts, but I don't see a way of giving a URL to clients that would launch Lync on their device, or take them to the web app.
    I can see how to get the link using the Outlook plugin, for pre-scheduled meetings. Is this link always the same and the one that should be used for an impromptu "Meet Now" meeting? It would still be good to know how to get this URL from within
    the store app so I can tell clients where to get it.
    Some people may be on Windows RT devices and not have access to the plugin in Outlook, and want to start a meeting at short notice and then invite others via email or pasting a link to them elsewhere.
    Any help appreciated.
    If I have answered your question, please mark it as the correct answer. If I have provided helpful information, please mark it as so.

    Hi,
    Agree with Holger, I check on my Lync Windows Store app and can't find the meeting URL as well.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Is it possible to make a phone call from contact in Cambodia with Miss Siri ?

    I've got a Iphone 4S which's shiped from Singapore , love it so much . But one thing , i couldn't understand , many thing i can ask Miss siri to do for me exclude make a phone call for contact or any number . I tried to use 10 digits number of my contact , she responsed " Sorry [Myname] , i can't call [contact name]" , and then i tried with 11 digits , she still responsed as previous question .... I'm so doubt that , last time , i tried with my country code : +855 or 855. and then i restarted my iPhone 4S . She still made me angry .......... ....... Anyone please tell me how to use Miss Siri to make a phone call ? ( Note : Location : Cambodia , Phnom Penh City )

    No, the feature works at home by going through your iPhone to make the call.
    There are Apps for the iPad which allow this: Skype, etc.

  • Not able to call BPEL web service using RMI call from different machine

    Hi,
    1. I have created a smiple Helloworld asynchoronous BPEL process
    2. I am able to call that BPEL process using java program (RMI call) which I have written in JDeveloper 10.1.3.3 and the java program is running in the embeded OCJ4 instance of JDeveloper sucessfully.
    3. Now I am trying to run the same Java program in my unix machine where oracle application is installed.
    4. I have set all the CLASSPATH for required jars which I have used in JDeveloper and also kept the jar file in Unix machine.
    5. The java codes are complied successfully.
    6. But when I am trying to run it , getting the following exception:
    bash-3.00$ java HelloworldAsyn
    name is Debkanta
    property file data are: {java.naming.provider.url=opmn:ormi://172.18.19.169:6003:home/orabpel, java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory, orabpel.platform=ias_10g, java.naming.security.principal=oc4jadmin, java.naming.security.credentials=welcome1}
    hello3
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    bash-3.00$
    I need to solve it urgently. Can anyone please help me.
    Is it relaed to some user access issue in unix?
    Thanks & Regards
    Deb
    Message was edited by:
    user587916

    actually , I have laready given print stataement for the data in the context property file that you can see in the output. Today I am also able to call the bpel process using the same java program from my DOS command promt(cmd). Don't understand why the problem is occuring in unix.
    please help.

Maybe you are looking for