(261936172) Q general How can I access an EJB hosted on a remote server?

Q<general> How can I access an EJB hosted on a remote server?
A<general> The ability to add EJB control files enables you to access an EJB that
is deployed to the server on which your web service is running. When you select
"add EJB control" you need to supply the home and remote interfaces for the EJB
as well as the JNDI name. This does not provide you with the capability for creating
a control for a remotely hosted EJB. To use a EJB hosted on another server you
will have to provide the appropriate code within your web service itself. You
will have to programmatically gain to access the JNDI for the remote server, lookup
up the home stub and use it to create the remote stub for the EJB. Of course,
to make this work you must have the necessary client interfaces in you classpath
(home and remote interfaces) which can easliy be achieved by adding the EJB client.jar
file to the lib directory in the webservice WEB-INF folder.

just define the different server path in the description xml file
<jndi-name>jnp://serverA(B)/....</jndi-name>

Similar Messages

  • How can we access the file/directory system in the server

    Hi friends,
    I have made a text editor attached with an audio player for my project.
    Both text editor and audio player are implemented in applet and put in to a
    jsp page using jsp:plugin. Text editor and player are separate applets running
    in the same page and from same server.A client who is using this editor may
    want to save the edited text files to the server as well as hear audio files from
    directories in the server.
    My question is how can we access the file/directory system in the server
    like we do in the local machine.When the user cliks save or openfromserver button
    in the editor, folder/files in the server must be displayed as we do with FileChooser.
    I am using Apache Tomcat 5,wiindows 2000 server, jdk1.5.
    manu

    You can't access it directly. But your applet can make net connections to the server, and the server can provide that kind of functionality. Generally this is easiest by making HTTP connections and having the server provide the functionality via the web server. (So in your case, JSPs or servlets on the server would list/deliver/create/modify/delete files, and the applets would invoke those JSPs and servlets.

  • How can i access the EJB from a Webdynpro

    Dear all,
    How can i access the ejb , from a webdynpro?.
    Is there any way to do that?.
    I want to write the entire code (business functions) within the EJB and i wan to access the entire methods from a WebDynpro Application.This is the situation.
    Please help me to , resolve this problem.(Here im using JDBC Connection .. etc.).
    I want to do the basic connection setting's and data retrieval part within the EJB and use that within the WebDynpro..
    how can i seperate this two(i mean, i want to seperate the JDBC connections and WebDynpro,i dont want to hard code any connection parameters within the webdynpro code)
    So that i want use that saet of particular function's in many webdynpro applications..
    (i dont need any help regarding webservice way.)
    If anyone can , please help me..
    I tried that javabean class , manifest file , that way (importing javabean model).
    but im getting errors.
    I cant properly utilize that..
    So please help me with steps regarding that,,
    for javabean
    and if any , for EJB also..
    with regards
    Kishor.G

    HI,
    Since webdynpros follows Model View Controller Architecture You can access EJBs in webdynpro(views/frontend) infact to connec to database uding JDBC you have to utilise EJB ( opening connection to database closing, and other Business functionality).See this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/web dynpro tutorial and sample applications.faq#q-7
    <b>How to access the Car Rental Web Service?</b>
    Regards,
    RK

  • How can I publish an ics file to a remote server from my calendar server?

    I am running Lion Server and have Calendar Service up and running. I have an account with a couple of calendars, one of which I'd like to publish to a remote server, as an .ics file.
    From an iCal client it is possible to publish local calendars, but not remote calendars (for which the only option seems to be to 'Share').
    How can I can I publish an ics file to a remote server? Programatically, if necessary.

    I have this working now.
    curl -s --digest -u username:password -o calendar.ics http://hostname:8008/calendars/users/username/calendar/
    generates the .ics file, and a combination of cadaver (from webdav.org) and an expect script upload hourly (via cron) to the remote server:
    set timeout 60
    spawn /usr/local/bin/cadaver
    expect "dav"
    send "open https://remotehost/path/\r"
    expect "Do you wish to accept the certificate? (y/n)"
    send "y\r"
    expect "dav"
    send "put calendar.ics\r"
    expect "dav"
    send "close\r"
    expect "dav"
    send "quit\r"

  • How can I access an EJB in JBoss Server?

    I'm using JBoss 3.0.3 and I have two Jboss servers. I trying access an EJB Entity in B by an Session in machine A. What should I do for it?

    just define the different server path in the description xml file
    <jndi-name>jnp://serverA(B)/....</jndi-name>

  • How can someone access my computer with an "Infrared Remote?"

    Can someone please explain to me how someone can access my Mac Book Pro by using an Infrared Remote? What is an Infrared Remote device and how does it operate?
    Thank you,
    KayeKaye07

    It only works if you have a little circle on the front of your MacBook Pro that is the infrared remote receiver. This was on the MacBook Pros of a few years ago. Recent Macs no longer have an infrared receiver, so infrared remotes like the Apple Remote cannot control them.
    The Apple Remote which used to be included with MacBooks was intended for uses like letting you control DVD playback or presentations from a distance. I guess Apple decided it was no longer needed after they removed their FrontRow media player, and after people started controlling their presentations with their phones, or even playing back their presentations directly from their phones.

  • How can i access the information of my central app server and my AS

    Hello i'm trying of configure my sld but when i'm about to create a technical system the wizard ask me for a central app server and App server (host and instance). where in my sap system can i found that information???. Sorry if the question is kind of obvious...i'm a beginner. Thanx in advance

    Hi
    SLD is for creating /Maintaining (including software product,components,etc..) system entries.
    e.g.
    If you want to create enrty for SAP R/3, Go to sld http://<hostname>://<port>/sld  >> technical system >> select type as WebAS ABAP >> enter the ipaddress of the SAP R/3 server
    You can get the details from your basis consultant or NW admin
    Cheers
    Jawahar Govindaraj
    PS:Reward pts

  • How can i send reports to host computers or Remote panels?

    Hello ,
    Is There a function or rutine that allows you to send text files or repots to a host computer, in other words, is it possible to a remote computer viewing a Vi to save a data file creater by the remote aplication and save it on his computer? like a download promt menu.....
    Thanks

    Hi Isaac84!
    Im giving you two links that explain how to achieve something similar to what you are looking for, i hope they are useful to you:
    http://zone.ni.com/devzone/cda/epd/p/id/1844
    http://digital.ni.com/public.nsf/websearch/F688B715623E515D86256C090068F451?OpenDocument
    Saludos y que tengas un excelente día!

  • How can i make sure ejb container starts before web server

    When starting the application server which one starts first?
    Our system requires ejb container to start first.
    Currently when i test it, the web container starts before ejb sometimes.
    Is there any way to force the ejb container to start up before the web container starts?

    What exactly is the dependency you have in your application? The Java EE spec does not
    impose any requirements on the order in which the different modules within an .ear are
    instantiated.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                               

  • Hi there, I pay for extra iCloud space online. However I cannot seem to find any of my photos or account? As my iPod/iPhone only hold 1000 pictures, where are the previous pictures? And how can I access them?

    Hi there, I pay for extra iCloud space online. However I cannot seem to find any of my photos or account? As my iPod/iPhone only hold 1000 pictures, where are the previous pictures? And how can I access them?

    You cannot use iCloud Storage to suppliment your iPad. They are mainly used to backup iPad.
    Free up space on iPad
    Settings>General>Usage>Storage>Delete what is not needed to free up space on iPad.

  • HT2954 How can I access my imac mail from a different computer other than Apple?

    How can i access my imac email from a differnt computer other than
    apple?

    If you are using IMAP mail connection (IMAP keeps the  mail on the server), then you just configure the other computer's mail client to access the same account.
    If you are using a POP mail connection, then the mail is generally downloaded to your Mac and deleted from the server.  That is a much more difficult problem to solve.  NOTE:  Google's gmail does have a POP option that does NOT delete the mail on the server, so it is accessible via the gmail web page.
    A lot depends on what you are using for your mail service and whether you are using IMAP or POP protocols.

  • My friend has lost her photos on iPhone how can I access her icloud on my iPad to help retrieve them

    How can I access my friends icloud account on my iPad to see if I can retrieve her photos from I cloud as she has lost her photos from her iPhone please help. ASAP as she only at mine for a little while. Thank you x

    If she have an iCloud Backup, she can restore from iCloud backup.
    1. Settings>General>Reset>Erase all content and settings
    2. Tap Erase
    3. You'll see Apple logo and progress bar
    4. Hello
    5. Slide to set up
    6. Set language
    7. Set country
    8. Choose Wi-Fi network; enter Wi-Fi password
    9. (a) Use Location Service (b) Don't Use Location Service
    10. Select option
    11. (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    12. Selected Restore from iCloud Backup
    13. Enter password for iCloud
    14. Agree to Terms and Conditions
    15. Setup Apple ID
    16. Select backup
    17. Restoring from iCloud
    18. Hello
    19. Restore Completed. Your iPad was restored successfully. There are just a few more steps to follow and then you're done!
    20. Continue
    21. Finish setting iCloud enter Password
    22. Updating iCloud settings
    23. Create a Passcode
    24. Welcome to iPad
    25. Get Started
    26. Restoring Apps and Media
    27. Enter Apple ID and Password
    28. Notice: Restore Incomplete, some items could not be downloaded from the Store. If they are on your computer, you can restore them by syncing with iTune
    29. Connect iPad to iTune to sync with computer
    30. Sync Music, Videos and Album Artwork

  • How can I access my iCloud account on the web from my phone

    how can I access my iCloud account on the web from my phone
    iPhone 5 iOS 8.3
    I have iCloud turned on, location services on, find my phone works but when I try to access iCloud via Safari on the phone it takes me to a page Apple.com,
    iCloud then three options
    set up iCloud on my phone (i have)
    Install Find my phone, it is installed and it works from my MBP
    or install find my friends, I don't need that I have no friends.
    my calendars and contacts and bookmarks and all are all sync'd and working on the phone, but i thought if I typed in iCloud.com on the phone in Safari I would go to my iCloud web page that looks like this on my Mac.
    Is that NOT how iCloud should/would look on my phone via Safari?
    This is maybe a dumb question after 3+ year of iPhone'ing
    thank you for clarifying or helping me to understand
    jojoguitar_mmn_usa

    I've been playing with a Galaxy here at work and here's what I've found so far - please feel free to jump in and suggest alternative methods to configure or access the various icloud components.
    So the original Q: Can you access your icloud account on Android?
    Not entirely: the website can't be used from an android browser (not properly - even with Dolphin HD and posing as different browsers it won't load correctly.  So Find my iphone is out, so is the address book or looking at your e-mail or calendar just in a browser window
    I was able to setup my e-mail using the IMAP settings published here:
    http://support.apple.com/kb/HT4864
    Be sure to setup the account manually - and note if you have trouble using SSL try TLS (that worked for me)
    Address book is a no go so you'll have to use iTunes to sync all your contacts over to Gmail - if you still have an iPad it means managing contacts in two places though .  Same goes for your calendar - transfer it to Gmail and forget about iCloud's calendar.  Nice instructions here: http://howto.cnet.com/8301-11310_39-20064060-285/how-to-switch-from-iphone-to-an droid/
    iWork is an Apple proprietary bit so don't expect much there.
    So in my case, if I'm really going to make the switch to a Galaxy from my iPhone it really means I'm going to have to switch to using google as the backend.  The timing to swap over to a galaxy/android phone is not the greatest - given that I'd have to give up my Apple addiction (syncing photos and itunes and losing access to my device tracking).  Plus I still have an iPad and a mac and like living in the Apple ecosystem.  I think I'll wait and see what the new iPhone looks like before I commit

  • I sent my iphone for repair. before I sent it I did a backup (on the 7th of august). no i got my phone back but in iTunes I only see a backup from 21st of july. How can I access my latest back up?

    I sent my iPhone to Apple for repair. Before I sent it I did a backup (on the 7th of August). Today I got it back, but my iTunes only shows me a backup from 21st july and from today. How can I access my  backup from 7th of august?

    You should really read the manual.
    "How do you restore from backup? "
    Restore.  When given the choice, choose to use backup.
    "And how can I check to see if the pics and videos are on my computer somewhere first??"
    They would only be where you put them.  What program did you use to import them?  Pics/vids taken with ipod are not part of the sync process at all.  You should be importing them just as you would with any digital camera.
    If you did not import them, then they are not on your computer.

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

Maybe you are looking for

  • I need to switch my old Apple ID to my new Apple ID

    OK, long story short... When iCloud came out and the iOS for the iPhone I signed in using a new "desired" email address, the one associated with this query. -- No error or warning was given at the time that there could or would be a conflict with the

  • Download internal table in XML format

    Hi experts, I want to download an internal table into an XML format. How can I achieve this? I have used the GUI_DOWNLOAD earlier for XLS purpose, will that work in this case too? Thanks, Ajay.

  • Email submit button using drop down boxes, cc field and

    I have a form that I would like to have the employees use a drop down box that already exists on the form with names and email addresses and use those names in the to field of an email submit button.  Also, I do have a static cc: address in teh cc fi

  • Best method for building a project with multiple video tracks

    I'm working a project where a client wants some edits made to an existing DVD they had - some video tweaks but mostly menu changes. I'm rebuilding the menus from scratch and I've ripped all the video files from the DVD (there are about 80 of them on

  • How to create sub-directory by PL/SQL in run-time?

    Hello, I have directory defined in Oracle DB and I need to create a sub-directory by run-time PL/SQL code and move my file into the sub-directory. The DB version is 10.2.0.3.0. How can i do it without creating a new directory in DB each time i need t