Best way for an applet to contact EJB ?

Which is the best way for an applet to connect EJB?
1) Applet --> servlet --> EJB
2) Applet --> EJB
What is the pros and cons of both approach?
Thanks

Hi there,
This is a tricky question and it would be interesting to hear what others think.
Probably the key factor is what is available to you in terms of communications between the EJB and the applet. If you are on an intranet then having the applet talk directly to the EJB looks favourable as you will almost certainly be able to use RMI/IIOP for communications between the applet and the EJB. If you are forced to use HTTP as the communications protocol then you can't talk directly from the applet to the EJB but there again talking to a Servlet from an applet throws up complications of it's own. In this case you should consider not using an applet at all and instead use a JSP page or pages to handle the presentation.
There is another issue that you need to consider when the applet talks directly to the EJB. If the App server that contains the EJB is on a different system to the one that runs the Web Server you'll have to address some security issues and will have to either have local policy files for the systems running the applet or you'll have to sign the applet and have the clients trust it.
Hope this helps
Amanda
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers

Similar Messages

  • What is the best  way for using a  C++ in the EJB?

    What is the best way for using C++ in the EJB ie
    either 1. Socket programming
    2. JNI

    To what purpose?
    To use C++ in the client you could generate IDL from your remote interfaces and run that through your vendor's IDL-to-C++ processor.

  • What is the best way for my wife to sync her Outlook contacts to her new iPad Air?

    What is the best way for my wife to sync her Outlook contacts to her new iPad Air?  I don't know very much about Microsoft (almost nothing).  Does she need to plug into one of the USB ports on her Microsoft computer (about 5 years old)?  I also have an iMac (that I use for syncing but she needs her contacts from Outlook.  She doesn't really want all of them...there are 1,000's of teachers that work in her district and she does no tent to add 1,000's of contacts.

    If she only has a few she can e-mail those contacts to herself, open that mail on her iPad and save them from there.

  • What is the best way to sync Address Book contacts?

    Please help!
    I run a small Mac network and I need to sync all (we have 8 Macs) the Mac's Address Book's with each other and also with 5 different iPhones. We have a Mac Server running Tiger and all the Macs are running Tiger. 4 of the Macs are Intel. The server is PowerPC.
    At the moment I am just using 1 .Mac account to sync to them all, but this is causing many problems with duplications, errors and 'stress!'
    The reason for the above setup is money. But, as the problems continue and the syncing become more important, money is now allowed to be spent.
    My question really is, as the subject header says, 'What is the best way to sync Address Book contacts?' In the past I have tried XC Connect, and a few other apps, but with the introduction of the iPhones, the setup has become more complex.
    If I were to buy all new Intel Macs and an Intel Mac Server all running Snow Leopard, would the 'Address Book Server' do the job? I have found very little information on the net and the information I did find was all negative.
    Is there something Leopard can do that Tiger can't? Is Tiger nolonger a good enough system to try and run an Address Book network?
    Does anybody else out there in the Mac world have a similar setup to mine, and if so, how do you have your setup.
    Incidentally, ALL users, incuding iPhone users, need read & write access to the Address Book!!
    Any solutions or suggestions would be most welcome.
    Thanks in advance
    col_t

    Oh, I meant Leopard does do more than Tiger Server.
    I don't know enough about Server, even less abut Syncing.
    SL is to new, not enough time to iron out the kinks yet imho.
    One day SL will be better than Leo, but...
    I'd ask over in server...
    http://discussions.apple.com/category.jspa?categoryID=96
    Or perhaps Collaboration Services...
    http://discussions.apple.com/forum.jspa?forumID=1352
    They may even have a different opinion on SL.

  • Best Way to Organize Related Multiple Contacts

    What's the Best Way to Organize Multiple Related Contacts?
    It may be a Couple or a Family with common Address and Phone, but different names and birthdates.
        Then I try to put them all in one contact listing.
    It may be a Large Business where you want to keep track of information about
    a dozen different people's address, phone, depart, title, email etc.  But It still
    would be nice to be able to pull up one entry with all the business's information.
       At some point, it will be necessary, I suppose to split the info into multiple
       seperate contacts.  When?
    Is there a better way to do this?
    Thanks, Jim Baranski

    JimBaranski wrote:
    What's the Best Way to Organize Multiple Related Contacts?
    Use Groups.
    It may be a Couple or a Family with common Address and Phone, but different names and birthdates.
        Then I try to put them all in one contact listing.
    IMHO, not a good idea. Best to keep to one person, one card.
    It may be a Large Business where you want to keep track of information about
    a dozen different people's address, phone, depart, title, email etc.  But It still
    would be nice to be able to pull up one entry with all the business's information.
    Separate cards for each person; one group (or smart group, which is a fancy name for a saved search) for the Large Business. It won't be quite the way you want it (there's no "one entry" with all the info), but it's close enough for rock'n'roll.

  • What are the best ways (for best performance) in MII to process the incoming process messages from shop floor systems to SAP ECC 6.0 and vice versa?

    Hi All,
    Can you please suggest to choose the best ways (for best performance) in MII (12.2 on NW 7.3), to process the incoming process messages from shop floor systems to SAP ECC 6.0 and vice versa?
    Thanks

    Hi Surya,
    Best practices for flow of data from ECC --> SAP MII --> Shop floor & Vice verse:
    1. Send ECC data through IDOC's/RFC's as messages to SAP MII message listener and BSL transaction process data and update directly on shop floor database as if you configured in Data services or later send those data by web service to shop floor system (i.e. depends on Shop floor machines).
    From Shop floor:
    shop floor --> SAP MII --> ECC
    1. Use either Web service or fetch data from DB and pass data to BAPI's  for sending to ECC through BLS transaction.
    Regards,
    Praveen Reddy

  • Best way for building an application main frame

    I'm about to program a desktop application.
    The main frame will have menus, toolbar, status bar etc.
    There will be a lot of interaction between the menus, toolbar buttons and other custom gui components (such as an editor).
    My question is which is the best way for building it.
    Cramming all the code in one class file is out of the question.
    I thought about making my own custom JFrame and add API functions like for it so different GUI elements can be accessed.
    Each component which will be manipulated will be in its own class file with the constructor accepting a reference to my custom JFrame object which it is contained in.
    Any suggestions on the matter would be of great help since I've never done extensive Swing programming before.
    P.S.
    The application makes extensive use of RMI.
    What considerations should I take into account (except using SwingUtilities.invokeLater()) ?

    Hi,
    I have replied on this subject somewhere else today but what I do is have one simple entry point where I just instanciate a JFrame.
    On that frame I have a main JPanel. On that panel I add new objects like JPanels, tabs etc.
    I keep each new panel in a separate source as it is easier when the application grows, and it will. That also means that several programers can work with the same application without interfearing each other.
    I hope you understand what I mean the the thing is to split up the code into several sources.
    It may not suit everyone but I found this approach to be the best for me.
    Klint

  • WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto?

    WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto? thank you.

    ingridlisa,
    I'd suggest to ask them to create Shared PhotoStreams and to invite you to view the streams, see:
    iCloud: Using and troubleshooting Shared Photo Streams
    Regards
    Léonie
    Added:
    that I'll be putting in my iphoto?
    Will you be collecting the photos in iPhoto on your iPhone or on a Mac? On a Mac a Shared PhotoStream requires Mac OS X 10.8.2.

  • Acrobat Standard XI, but can only find the CD for windows.  I have a mac (I have access to an external CD drive and I have the product keys for windows).  What is the best way for me to install it?

    Hi, I purchased Acrobat Standard XI, but can only find the CD for windows.  I have a mac (I have access to an external CD drive and I have the product keys for windows).  I have never installed it anywhere else.  What is the best way for me to install it?

    Hi lintonm86921521,
    I can understand your concern & will guide you through this.
    I am so sorry to inform you that Acrobat XI Standard is not available on Mac, you can only use it on your Windows computer.
    You can also refer to the system requirements at : System requirements | Acrobat family of products—older versions (XI, X, 9)
    In case if you have any further query please let us know, we will be happy to help you.
    Regards,
    Aadesh

  • HT4914 I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    Is/was failing or has failed?
    If the old computer still runs one of these methods may be best.
    Method 1
    Backup the library with this User Tip.
    Restore the backup to your new computer using the same tool used to back it up.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    I don't have personal experience with iTunes Match, but in principle you should be able to download all the tracks currently registered to your iTunes Match account. This isn't quite the same as restoring your previous library exactly as it was. There is always the potential for iTunes match to provide the wrong version of a song and could be content such as movies, podcasts, audiobooks etc. that would have been excluded.
    tt2

  • I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    You will need a Mac, with OS X 10.6+ on it, to be able to develop iOS apps.
    There is some info on these pages :
    developer site : https://developer.apple.com
    developing for iOS 7 : https://developer.apple.com/ios7/
    developer support : https://developer.apple.com/support/
    developer forums : https://devforums.apple.com/index.jspa (you will need to be a registered developer to access them)

  • Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC

    Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC. I would appreciate any help with this.

    Thanks for the quick help. I do have to leave for work. When I try to
    download the images from the camera they seem to only be in jpeg (I don't
    see any rw2 or raw files to download). If I select the jpeg file it seems
    to only download a jpeg file. I do understand that I do have the option to
    open the jpeg in RAW. In doing this, is all the extra information included
    in the RAW file there or is it lost coming from the camera
    Once again thank you for trying to make me understand how this works.
    Have a great day.
    On Sat, Sep 13, 2014 at 12:14 PM, ssprengel <[email protected]>

  • Best way for capturing HDV

    Best way for capturing HDV
    using easy setup setted to HDV1080 50i (camera is a Sony HDV HC1) captured video look like sh...
    and when exported with compressor is worst!
    some idea?

    Ok fantastic ! you are right (the frustration was talking for me)
    video is shooted in 16:9 HDV 1080 50i
    Captured video looks:
    full of orizontal lines (that look like scan lines) expecially evident on figure edges and on motion subjects
    and
    like it was resized 1440x1080i from a different lower resolution
    video is exported with compressor
    MPEG-2 3.7Mbps 2-pass 16:9
    Description: Fits up to 150 minutes of video with Dolby Digital audio at 192 Kbps or 120 minutes with AIFF audio on a DVD-5
    File Extension: m2v
    Video Encoder
    Format: M2V
    Width and Height: Automatic
    Pixel aspect ratio: default
    Crop: None
    Frame rate: (100% of source)
    Frame Controls: Automatic
    Aspect ratio: 16:9
    Field dominance: Auto detect
    Average data rate: 3.7 (Mbps)
    2 Pass VBR enabled
    Maximum data rate: 7.5 (Mbps)
    High quality
    Best motion estimation
    Closed GOP Size: 1/2 second, Structure: IBBP
    DVD Studio Pro meta-data enabled
    In these case the first problem is i can't obtain 16:9 format an the lines becomes more more evidents
    software is Final cut Studio HD
    camera is Sony HDV HC1e
    hope I wrote all the info
    Thx

  • Best way for Email Notifications in EWS Managed API 2.0 [ Exchange Server 2013]

    Hi ,
    I want to know best way for Email Notifications in Exchange server. My
    organisation has 
    10 users, i want to get notification if any user mailbox got any new mail.
    i need to create API,
    that was consumed by another Team in their Application.
    I am using Exchange server 2013.
    Please share Your Ideas.
    Thank you

    Take a look at EWS Notifications
    http://msdn.microsoft.com/en-us/library/office/dn458791(v=exchg.150).aspx .
    Cheers
    Glen

  • Which is the best way for posting a large number of records?

    I have around 12000 register to commit to dababase.
    Which is the best way for doing it?
    What depends on ?
    Nowadays I can't commit such a large number of register..The dabatase seems hanged!!!
    Thanks in advance

    Xavi wrote:
    Nowadays I can't commit such a large number of registerIt should be possible to insert tens of thousands of rows in a few seconds using an insert statement even with a complex query such as the all_objects view, and commit at the end.
    SQL> create table t as select * from all_objects where 0 = 1;
    Table created.
    Elapsed: 00:00:00.03
    SQL> insert into t select * from all_objects;
    32151 rows created.
    Elapsed: 00:00:09.01
    SQL> commit;
    Commit complete.
    Elapsed: 00:00:00.00
    I meant RECORDS instead of REGISTERS.Maybe that is where you are going wrong, records are for putting on turntables.

Maybe you are looking for