Can we use applets as user interfaces with sockets, RMI and J2EE

Dear Sir or Madam,
Since I am a TA for software architecture class, some one ask me the following question: I think the answer is "No" based on the document on http://java.sun.com/sfaq/
How I answer the quesions? Looking forward your help!!!
1.You may have 2 applets and 2 html files. One applet with one html file may stay at a client PC and run on this PC, and the other applet with the other html file may stay at a server PC and run on this PC. In this case, all the applets are run locally.
2.Could applets works with sockets, RMI and J2EE?
3.Can we use applets as user interfaces with sockets, RMI and J2EE?
Thank you very much!
Best regards,
Jing

The scenario you paint doesn't quite make sense. The "server PC" wouldn't be running an applet, normally, since applets are by definition in a web browser page, and most likely involve user interaction, and "server processes" generally are done without user interaction.
The security rules around applets are that -- by default -- applets can connect with sockets ONLY to the server from whence the applet was loaded. RMI uses sockets (J2EE is too broad a spec) and hence RMI calls would also be limited to the server from whence the applet was loaded. Within that limitation, an applet could open all the sockets it wants, so long as they are all on the server from whence the applet was loaded.
If you want two applets on two different systems to communicate with each other, the simplest way is to have them rendevous through a server process on the server(s) from whence each applet was loaded. Maybe it's PC-a <-> server-a <-> server-b <-> PC-b ...? Or maybe PC-a and PC-b both are talking to the same server.
The limitation is rooted in the security subsystem. You can specify a policy file and override anything in the security subsystem. That does mean signing the applet and then cajoling the user into agreeing to grant greater levels of security than the default. In such a case you can open sockets more broadly and then PC-a could talk directly to PC-b without going through any servers.
- David

Similar Messages

  • Can i use my usb audio interface with apple tv? For example Focusrite 2i2

    can i use my usb audio interface with apple tv? For example Focusrite 2i2

    Afraid not - AppleTV does not support USB audio devices.
    I assume you don't mean using the device as an optical input for the computer, connecting AppleTV's optical out to it.

  • What kind of KVM switch can I use to monitor sun rack with 490s, 245s, and

    Hi,
    What kind of KVM switch can I use to monitor sun rack with 490s, 245s, and T2000s ?
    Ushas Symon

    It sounds like the customer and server room operator are using a Microsoft/X86 mindset. There are several selling points on using RSCs & SCs. First off are the big 3 that are easy for any good server room operator to understand: cost, space & power. If you don't have to buy a 1U Tripp-lite pull out rack KVM console ($1700) and a video card for each of your SUN servers ($400, yes SUN vid cards are $$$), you start off by saving several thousand dollars.
    Next you need to let them know that you require remote access to the systems from your desk and a standard KVM doesn't allow this (with Unix, if you have to get up from your desk then its a hardware problem). They can choose to purchase a network enabled KVM, but that adds $700 to your $1700 KVM. By using the SC you will be able to administer the system remotely.
    Third, remember that SUNs do not show all the critical boot information on a frame-buffer console output. If you are in diagnostic mode during boot, the monitor doesn't show results until it completes. If some process is stuck (missing NFS or fibre-channel hard mounts, memory tests, etc) then you need to be able to see it to fix the problem. Plus, console frame-buffers only give you 25 lines of output that you can't scroll back.
    The only small hitch is security. The new SCs (on T5220s) have SSH built in, but the older V240s and V490s use telnet which some security people balk at. The solution that we used is to put the older system SCs on a private LAN. Access to that private LAN from our intranet is via a SSH enabled dual-homed (non-routing) workstation with local user accounts. We SSH to that workstation & then telnet to the SC on the relevant server. That solution allows me to access our servers that are 40 miles away, saving response time to solve customer problems. A crude diagram is below:
    your workstation------intranet------[dual homed, non-routing workstation]------[inexpensive switch]------[server SC]
    Good luck.

  • Can I use home sharing for AppleTV with Time Capsule and have my iMac powered off?

    I wish to be able to use AppleTV without having my iMac powered on.  Is there a way to have my iTunes library on my Time Capsule so I can use AppleTV directly from it?

    I use an external hard drive with my iMac and have an iTunes folder there (that sometimes it points to automatically, but sometimes I have to go under advanced and show the iMac to use that iTunes folder because it defaults to the internal iTunes folder on the computer).
    Make sure the external drive is powered on and mounted on the desktop before launching iTunes.

  • How can I make a flash user interface with buttons to open up and navigate other flash files?

    Hello I would like to make a user interface that will serve as a tool to load and unload other flash materials like a slideshow. I would like to make a kind of slideshow with Flash that opens up other flash files which could be around 10-15 slides (frames) long each. I would want to ask if there is any way to make a link between navigation and other slides easily. And if there are ways, what action codes should I use for this. Thank you very much.

    All you need to do is load a swf into the main swf and target it with whatever controls you intend.  If you are using AS3 then you could use the Loader class to load the swf and then target the Loader.content with your control buttons.

  • Can I use a MOTU 828mII interface with Garage Band

    I have a MOTU 828mII interface and I want to use it with Garage band. How do I set it up?

    You should be able to no problem . I might be speaking to fast .. Now you didn't say what your weapon of choice was. An iMac or what.  I use a MOTU 128. With an iMac.
    As I remember you install the software for you MOTU unit. Then go check for the newest driver and install it.
    Now for G.B... look in the preferences for GB ..  Look at the Audio/ Midi settings. There you can select the unit you want.
    Peace ...

  • Can you use Multi Factor Authentication server with Central NPS and RD Gateway?

    Hi,
    Does anyone have any experience getting the Azure Multi-Factor Authentication (MFA) on-premise server, working with a Remote Desktop Gateway server, and a centralised NPS server?  I can get a solution whereby a user can get the second token (phone call/sms
    etc.) but the connection never gets established.  It looks like its looping as it repeats the phone call/text for a second time but again no connection.  I can’t figure out why.
    All the blogs are very vague as to whether you can combine a new MFA NPS connection policy with an existing username/group membership NPS policy on a centralised NPS server (with RAP/CAP policies).
    I need to understand whether we can combine both an MFA Radius policy with a Username/Password plus group membership NPS policy together to achieve two factor authentication.
    Do you have the Remote Desktop Gateway Server connect to the Central NPS server and then the NPS server use the MFA server as its proxy server? In effect turning the NPS server into a proxy Radius server?  
    Or do you configure the Remote Desktop Gateway server to use the MFA server as the proxy Radius server, and configure the MFA server to send on Radius requests to the central NPS server?
    Or either of these scenarios not supported and you can only use the MFA server as the only Radius server in the auth. process? (bypassing NPS policies?)
    Thanks if someone can assist,
    I’ve been using these blogs but to no successful effect:
    http://technet.microsoft.com/en-us/library/dn394287.aspx
    http://www.rdsgurus.com/uncategorized/step-by-step-using-windows-server-2012-r2-rd-gateway-with-azure-multifactor-authentication/
    http://dave.harris.uno/installing-and-configuring-azure-multi-factor-authentication-mfa/

    Hi Michael,
    Thank you for posting in Windows Server Forum.
    After going through your description, I can say that we can use MFA server with central NPS and RD Gateway. Also the link which you have provided points the step to apply. In addition you can refer below article.
    Configure Remote Desktop Gateway to use Multi-Factor AuthenticationConfigure Remote Desktop Gateway to use Multi-Factor Authentication 
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Can I use Oracle BPEL process manager with other AS and DB

    Can we user oracle bpel process manager with jboss application server and postgresql database.. is it possible..
    and what will be the price.. per licencse when i go to just purchase Oracle BPEL process manager

    MAke sure you have not set ANY environment variable related to Oracle / BEA / Java / LD_library path. Use the following script to unset / set the initial settings:
    #!/bin/sh
    unset ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_TERM
    unset LD_LIBRARY_PATH LD_LIBRARY_PATH_64
    unset CLASSPATH JAVA_HOME
    export PATH=.:/usr/sbin:/usr/bin:/usr/local/bin:/opt/VRTS/bin
    export BEA_HOME=/appl/oracle/products/9.2/weblogic
    Marc
    http://orasoa.blogspot.com

  • Can I use my mac book pro with 120 volt and 240 volt power supplies?  Does the power converter automatically switch, so I just need a different adapter plug?

    I got my mac book pro in the U.S., but I will be travelling to where there is 240 volt power.  Does the mag safe power adapter switch automatically, so I just need a converter plug, or do I need a transformer to convert from 240 to 120 volts?  Thanks.

    Hi,
    I too bought my Macbook Pro in the US and I live in the UK (its so much cheaper in the US! No 20% VAT!)
    The power adapter does work on UK 230v power. You can also get a three pin extension lead (like the 2 pin US one that came with the MBP) for about £3 with free delivery from Amazon UK.
    Another tip, whne you are back in the UK, and you are switching from a PC to a Mac, get in touch with your local Apple Shop who run one to one free courses on how to use your MBP.
    Hope This Helps!!

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • How can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    how can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    No you do not need separate Apple ID's in order to use 3 devices with one Apple ID. I use 4 devices to Message and FaceTime and all use the same Apple ID. You do need to add additional email addresses for the other devices.
    Look at this very informative video for the instructions.
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • Can i use Kik app to chat with a bbm user?

    Can i use Kik app to chat with a bbm user?

    They have to have Kik too. The BBM service uses Blackberry servers and Kik uses Kik servers. What you're asking is like trying to chat to a Bebo user through Facebook

  • How can I use applet to get the desktop image of client

    hi,I have a question to ask u.
    How can I use applet to get the desktop image of client? Now I develop a web application and want user in the client to get his current image of the screen.And then save as a picture of jpeg format ,then upload it to the server?
    I have done an application to get the screen image and do upload file to server in a servlet with the http protocal.

    Since the desktop image is on the client's local hard drive, you'll need to look at trusted applets first.

  • Developing a User Interface with ADF Faces - Tutorial - Questions

    Hello everybody,
    I am a forms developer and I am totally new to ADF.
    I started from the tutorials : Developing Business Services with ADF BC and Developing a User Interface with ADF Faces...
    Everything was easy and very clear, as far as the material covered in the tutorial is concerened.
    But when I tried to modify a little bit the application, to perform a different task... disaster!!! :-)
    One of the "simple" things that I tried to do -for example- is :
    In the login.jspx, where we have created an ADF Parameter form (that accepts as a parameter the customer ID) and
    retrieves in the next page the Orders of the specific customer.... to Display a message, such as "+Customer Does Not Exist+"
    if the user types in the parameter form an not existent customer ID...
    I understand that I should use a validator.... But I cannot find the list validator (from query) in the bind variables not in the ADF Parameter Form Fields....
    Does anyone know?
    Regards,
    Maira Kotsovoulou

    Dear Grant,
    CustomerID is in the UI Project, and appears as a part of an ADF Parameter Form... and I can not find key exists in the UI Validators....
    CustomerID in the .entities is a bind variable in a query. select ... from customers where customer_id = :p_customer_id. Again KEYEXISTS validator is not available in the bind variables sections... Only in the attributes!!!
    I understand that the "normal" behavior in a query with bind variables where there is no match is to display nothing as it does!!!
    But I was just wondering, if I could even trap that before I display the empty form...? Or could I display a text in my ADF form, that says no rows... (as I can do in an ADF Table???)

  • Can I use the same user accounts for both Lion & SL?

    I have one Mac that I can upgrade to Lion but it is the one that the entire family uses every day (I only can use it (and administer it) on weekends), so I have to make sure that there are no problems and no issues so my plan is to:
    Move all of the users accounts to a different drive.
    Configure 10.6.8 (SL) to use the user accounts on the different drive.
    Back up SL to a bootable drive.
    Repartition the Mac for a SL & Lion partition.
    Reconstitute SL on both partitions.
    Upgrade one SL partition to Lion.
    I should now have a partition for SL and Lion that both use the same users accounts so when I (and then my family) are comfortable with Lion, the switch will be transparent.
    Any problems that I am unaware of (and how to remediate it)?
    TIA.

    There are a few discussions here on the topic that I was planning to employ:
    Moving Home folder to different HDD From Mac OSX Snow Leopard via Terminal?
    Moving some Users to different volume
    How do you move a user account to a different drive?
    Another way of doing it is to move the directory, and then alter the user's home directory using the NetInfo utility (Tiger) or Directory Utility (Leopard). In both, you can change the user's home directory from the command line in Terminal.app like so:
    $ sudo dscl . -create /Users/user NFSHomeDirectory /Volumes/volname+/+user
    In the SL System Preferences -> Accounts one can select a user's account, right click and choose Advance Options presents the screen below. This is how I intend to point each OS to the same user account on an external HDD.
    Does that answer your question?
    TIA.

Maybe you are looking for

  • MSS No data exists. Is working - or not

    Hi, We have configured the MSS EMBORGCH and it is working or kind of working. We have added a new selection called Furture employess, so the manager are able to see the future employees. If there is no future employee, then the user gets this error:

  • How to determine Last Lite Item of a Main Window in SCRIPTS

    Hi All, I have a requirement <b>to print a value after all the Line Items have been printed in a main window.</b> The question is <b>how do I determine the end of Line Items</b>? Also, this needs to be done without a change in the print program. Plea

  • Banking Vendor Info not updated from HR Banking infotype

    Hi Gurus, I have an issue  and I can't quite for sure know  how to solve it. My HR team are able to change the banking info of the vendors/employees( employees are also treated as vendors) ....  When we run a report or job  for employee's direct depo

  • Missing Google synced contacts and calendar entries on ipad2, ios7

    Upgraded iPad2 to iOS7 on Thursday without issues. Just now saw all my contacts and calendar entries are gone. I'm synching to Gmail contacts and calendar. Anyone with same problem?

  • How to execute a procedure with collection passed as parameter?

    i have created the collection: CREATE TYPE typ_Project AS OBJECT( project_no NUMBER(2), title VARCHAR2(35), cost NUMBER(7,2)) CREATE TYPE typ_ProjectList AS VARRAY (50) OF typ_Project and a procedure: CREATE OR REPLACE PROCEDURE add_project ( p_deptn