How can my applet communicate with servlet via HTTPS?

hi all,
I'm using jdk1.4.2_03. Tomcat 4.1.27/29.
My applet used to communicate to serlvet/JSP via http protocol. However, I wish to apply SSL in my tomcat standalone. Is there any implication towards my existing applet to servlet codes?
For example,
URL servletURL = new URL("http://www.myhost.com/Shopping");
// open connection between applet and servlet
URLConnection servletConnection = servletURL.openConnection();
servletConnection.setDoOutput(true); // allow connection do output
servletConnection.setDoInput(true); // allow connection do input
servletConnection.setUseCaches(false);
servletConnection.setRequestProperty("Content-Type", "application/octet-stream");
ObjectInputStream input = new ObjectInputStream(servletConnection.getInputStream());
resultset = (Vector)input.readObject(); //get Object from Servlet
input.close();

http://java.sun.com/j2se/1.4.2/docs/api/javax/net/ssl/HttpsURLConnection.html
I never used it though, you can check for some code here:
http://javaalmanac.com/cgi-bin/search/find.pl?words=HttpsURLConnection

Similar Messages

  • How can AII/OER communicate with ERP if both are in same system ?

    I have an ERP 6 EHP7  system with SAP AII/OER.   How can ERP communicate with AII/OER ?  Is PI/XI still required ?

    Hi @Denise Carew,
    One of the deployment options for SAP AII is that it can be installed as an add-on on the SAP ECC system. Not sure if deploying OER on the same box as SAP ECC has been an SAP approved/suggested deployment.
    When you say "I have an ERP 6 EHP7  system with SAP AII/OER" does that mean you have SAP AII component and SAP EM component installed at two different stages or has OER(AII+EM) been purposefully installed on SAP to be used as your enterprise repository?
    When AII is installed as an add-on to SAP ECC it will have access to the master data (like Product/Material master, corresponding GTINs, etc). There is no need to communicate this master data.
    But if you need to use "Secure Track and Trace" scenario in SAP OER then SAP PI is a mandatory software component. (Please refer to SAP AII 7.1 Master Guide section 2.4,Software Component Matrix, and other follow-on sections that explains this).
    Regards,
    Bharat Vaka.

  • Applet failed to communicate with servlet for https, on tomcat5.0+apache2.0

    Hi
         I have a problem, we have a tomcat5.0 and apache 2.0 with jk connector, and an application where an applet comunicate to servlet.
    we need to set the ssl , the apache is configured with the ssl( openssl,).
    when I run the application with standalone tomcat with ssl
    connector (port 8443)enable, it runs fine for both http and https.
    i use httpsURLconnection for https communication from applet to servlet.
    But at production envoirment (Tomcat 5.0 , apache 2.0 and j connector with ssl enable at apache) it fails for https, all the jsps runs properly, but the applet isn't communicating with servlet. can anyone guess what is the problem.
    the exception dump is
    ava.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 401 SSL Connection Not Granted"
         at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at com.blu.HttpMessage.sendGetMessage(HttpMessage.java:65)
         at com.blu.HttpMessage.sendGetMessage(HttpMessage.java:38)
         at com.blu.applet.ServerDAO.sendDummyRequest(ServerDAO.java:66)

    Make sure your deployment is using a supported network configuration, we do not support running under localhost. Your SGD  server needs a valid DNS name configured.
    See
    2.1. SGD Server Requirements and Support
    for more details

  • How can an ipad communicate with another ipad to show a presentaion from one to many others in the room with ipad

    Hi,
    I would like a ipad to talk to another to do a presentation . Ideally one ipad will be the main presentation tool and the owner will turn pages on his and then the other ipads will do the same without anyone touching them.

    1. Drag and drop or by selecting the pics you want to move and then clicking on the + button on the toolbar...
    2. Yes
    3. Select a pic and right click on it. Select Get Info:
    4. At this time you can only change dates on photos.

  • How can I directly communicate with an apple employee or app developer about improving the "reminders" app. I have a few suggestions that I think have what it takes to work themselves into a new update!

    I just want to email someone who can actually change the app for the better in the next update

    http://www.apple.com/feedback/iphone.html

  • HT4528 Good afternoon ...  I would like to know how I can do to communicate with Verizone company to see if I can unlock my iPhone 5 which acquired in NY last year, buy it because you sold me released but is totally false ...  I welcome your comments ...

    Good afternoon ...  I would like to know how I can do to communicate with Verizone company to see if I can unlock my iPhone 5 which acquired in NY last year, buy it because you sold me released but is totally false ...  I welcome your comments ...

    Krawly11 wrote:
    That's what they told me at the time of purchase and that's why the team acquired ...
    But when I get to Venezuela and introduce NANO-Sim in a line to use the phone here just does not respond to the network ... None of the 3 phone lines we handle here ...
    It is a 64G IPhone 5 ... 
    Regardless, it is not a matter of carrier locking.  Verizon iPhone 5 phones were never GSM sim-locked to begin with.  Every iPhone Verizon has sold since the introduction of the iPhone 5 has been sold with an unlocked GSM slot, as required in the USA by their agreement with the FCC.  They have not been allowed to sell any iPhone 5, iPhone 5c nor iPhone 5s devices with GSM carrier locking in place.
    Your connection problems are from some other cause - it is NOT a carrier locking issue.

  • Hi, I need help with my iphone four bought in England but I live in Italy, I upgraded IOS six and now I can not read more than the Italian card, how can I contact a service center via email?

    Hi, I need help with my iphone four bought in England but I live in Italy, I upgraded IOS six and now I can not read more than the Italian card, how can I contact a service center via email?

    Only the carrier it is locked to can authorize unlocking it. Sounds like the phone was hacked to unlock it originally. Find out what carrier it is locked to, and look up their contact information using google or the search engine of your choice.

  • How can i connect labview with ge fanuc versamax plc via VISA

    I, ve a ge fanuc versamax plc. I am building a data logger in labview. There are two current trasmitters. I dont have any other data acquisition devices other than PLC. How can i access data acquired by PLC and how can i connect it with labview using VISA?

    KPAC wrote:
    I've a ge fanuc versamax plc. I am building a data logger in labview. There are two current trasmitters. I dont have any other data acquisition devices other than PLC. How can i access data acquired by PLC and how can i connect it with labview using VISA?
    There may be variations between models, but I believe all VersaMax support Modbus and GE's own SNP/SNPX serial communication protocols.
    For Modbus communication protocol:
    The link here is a good outline of the different options available. If you really want to limit yourself to the option of using VISA, then it's Items 1. and 2. in Khalid's list that are applicable. You might have to modify some of the free LabVIEW Modbus VIs to suit you needs, but they are useful as examples if you have little experience programming a serial driver.
    For SNP/SNPX:
    Your options are similar to those for Modbus, except that I'm not aware of any existing free set of LabVIEW VI's for it. With a web search you might find something (I almost programmed one 10 years ago). The SNP/SNPX protocol is/was well documented in a GE FANUC manual which you could get from them (in 1993 it was GFK-052B "Series 90 PLC Serial Communications User's Manual") so you still can write your own set of VIs.
    If you don't really need to limit yourself to using VISA, there are ActiveX and OPC drivers available which use SNP/SNPX that you can find with a web search. And you can see here that NI's Industrial Automation OPC Server's do include an object for GE Fanuc Versamax via Ethernet. This would not be the cheapest in terms of capital cost though.
    Good luck.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Dear Community, how can I connect SCSI tape recorder via USB to iMac ? Is there any adapter/converter on the market now ? Cheers, Marek

    Dear Community,
    how can I connect SCSI tape recorder via USB to iMac ?
    Is there any adapter/converter on the market now ?
    Cheers, Marek

    Thanks Jan.
    Actually the reason to use Quantum SCSI tape recorder is to back-up big amount of data (propriety movies footage) both on PC (what is quite easy, using SCSII host adapter with VHDCI 68 connector) and iMac what seems to be not easy. All my search by Google leads to that conclussion, they finished production of SCSI-to-USB or FireWire because somebody stopped to produce chips to covert protocols. So even buying noe second-hand adapter, no guaranty it's still working with Lion (nobody is developing drivers anymore). Strange is, nobody or just a few are using SCSII (Ultra 320) devices (while the transfer is not bad, 320 MBps what is 2560 Mbps, so the only limitation is tape recording (some 80 MBps) not an interface. Using compression mode I can (and I do) record 1,6 TB of footage data. However quite slow, is safe and cheap, comparing with any HD storage solution. USB 2 is much more limited.
    I'm using Time Capsule for buck-up. But even 3 TB one day will be full of data, then old back-ups will be eaten by new once, what is not good idea for archives. I'm using another 2TB NAS HD (2x2TB RAID 1), but this is also going to be full soon.
    Of course, you are right, the option is another machine (OSX,Win,Linux or Solaris) equipped with SCSII controller. But this requires another machine, just for back-up time to time, and in practice iMac folders must be shared with that small auxiliary machine because amount of data practically excluding even temporary data collection on auxiliary machine. And it must be transfer by wire, not WIFI, my only network. Tape recording is in my case really good, professional solution, isn't it?
    Anyway, if somebody has similar requirements as me, and found the solution for SCSI, please let me know. So far, follow Jan's idea, I'm thinking about some embeded mini PC, fanless, equipped with slot for SCSI, with SOME smart system on-board, to deal with iMac for type recording. The option is previous Apple model, but to be honest, I became Mac/OSX user 4 years ago. I fell in love with Mac, but my knowledge about previous models is based on Google....
    My desk becomes full of boxes. Do you know how big Quantum TC-L42BX is ? Is very big. And now another box.....another keyboard....another screen... And one small adapter could solve the problem. Eh....
    Best regards,
    Marek

  • Communicate with servlet after using Java Web Start?

    Is it possible to communicate with servlet to get data back and forth
    after using Web Start to download the client application?
    The demos come with Java Web Start are applications which are
    standalone, don't need communicate with the servlet on Web server
    after being launched. I am wondering if it is possible, and how (HTTP
    & JAX-RPC)?
    Thanx in advance.

    I've done this using HTTP. I get the server and port from the codebase:
    BasicService bs = null;
    try {
    bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
    String codeBase = bs.getCodeBase().toString();
    and use the java.net.HttpURLConnection and java.net.URL classes to send HTTP parameter values to the servlet and to receive results from the HttpURLConnection's input stream.

  • Ipod is disabled for 22,849,620 minutes how can I open ipod with this message?

    Ipod is disabled for 22,849,620 minutes how can I open ipod with this message?

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • How can i create messenger with java tv API on STB

    deal all.
    how can i create messenger with java tv API on STB.
    how can Xlets communicate each other?
    how?
    i am interested in xlet communications with java tv.
    is it impossible or not?
    help all..

    You can create a messenger-style application using JavaTV fairly easily. JavaTV supports standard java.net, and so any IP-based connection is pretty easy to do. The hard part of the application will be text input, but people have been using cellphone keypads to send SMS messages for long enough that they're familiar with doing this. This doesn't work well for long messages, where you really need a decent keyboard, but for short SMS-type messages it's acceptable.
    The biggest problem that you need to work around is the return channel. Many receivers only have a dial-up connection, ties up the phone line and potentially costs people money if they don't get free local calls. Always-on return channels (e.g. ADSL or cable modem) are still pretty uncommon, so it's something that you nee to think about. Of course, if you do have an always-on connection then this problem just goes away.
    This is really one of those cases that's technically do-able, but the infrastructure may not be there to give users a good experience.
    Steve.

  • Why can't I communicate with both of my GPIB devices?

    I have 1 NI PCI GPIB board in my computer
    I have 2 identical devices (keithley 237) connected one at address 15 one at address 16
    and 2 different programs one program to connect with 15 and 1 to connect with 16
    after I tell the 1st labview program to communicate with 15 then I tell the 2nd labview program to communicate with 16. then both communications come back with error device timeout. one at a time, I can communicate find with either device.
    Why can't I communicate with two different GPIB devices at the same time?

    Hi mrutter,
    first I would try some other addresses, e.g. 5 and 11. 15, 16 could be
    a special address used by the controller.
    Are there any other devices on the GPIB? If so then there could be
    another instrument with the same ID. Do both (or all) devices show in
    MAX, and can you communicate with them in MAX (e.g. query a *IDN? )
    And are you sure that you *have* setup the correct addresses in the
    Keithley instruments (look in the manuals if you don't know how to
    change their addresses)? Some Keithley instrument are in local mode by
    default, and you must explicitely set them in GPIB mode.
    Sometimes, GPIB message termination can be an issue (although both the
    GPIB cards and the instruments seem to get more tolerant of this).
    Also, you must be very careful not to mix different versions of
    LabView drivers and LabView version. I once had three different
    LabView versions on a PC, it was terrible. We had to format the
    harddisk and start afresh since we couldn't remove all of the older
    versions.
    I first try all GPIB instruments in MAX. If all devices appear there,
    and I can query commands in MAX, then I usually write my own LabView
    drivers with the standard GPIB-read and -write VIs. I write them with
    my oldest LabView version (say 5.1), then I am sure they will work
    with all versions up to 7.1
    Actually I once had a project where *no* GPIB instrument worked 100%.
    We could never really find out what was the problem (it was probably a
    bad PC <-> Win98 <-> GPIB card <-> LabView 5.1 constellation).
    Good luck.
    Johannes
    On Fri, 12 Nov 2004 13:49:31 -0600 (CST), "mrutter@contech"
    wrote:
    >I have 1 NI PCI GPIB board in my computer
    >I have 2 identical devices (keithley 237) connected one at address 15
    >one at address 16
    >and 2 different programs one program to connect with 15 and 1 to
    >connect with 16
    >after I tell the 1st labview program to communicate with 15 then I
    >tell the 2nd labview program to communicate with 16. then both
    >communications come back with error device timeout. one at a time, I
    >can communicate find with either device.
    >
    >Why can't I communicate with two different GPIB devices at the same
    >time?

  • How can I test servelt with application at Tomcat?

    how can I test servelt with application at Tomcat?

    Assuming u have coded the servlet already there are certain things u need to do for exceuting the servlet in Tomcat,
    1) Assuming u r putting the servlet inside the directory named 'Mywebapp' under webapps directory, u need to create directory named Web-inf under Mywebapp and classes under Web-inf.
    Copy web.xml file from any of the webapps (like the example webapp) into mywebapp.
    Copy any one of the sample servlet specification in the web.xml and customise for ur servelt.
    then save the web.xml file and start the Tomcat.Am assuming u have included the mywebapp entry in the server.xml file.
    then invoke the servlet like http://machinename:8080/mywebapp/servletname

  • How application call servlet via https

    Hi guys
    Does anybody know how application call servlet via https? Is it same as
    http? How can I set up trusted certification? Thanks in advance.
    Regards,
    Mark.

    I meant to give a code example in the last one, sorry.
    URL u = new URL("https://mysecureURL.com");
    javax.net.ssl.HttpsURLConnection conn = (javax.net.ssl.httpsURLConnection) u.openConnection();There is other good info in the JSSE forums.
    Cheers,
    Peter.

Maybe you are looking for

  • What can I do when I see "The backup disk image cannot be mounted"

    I ran the time machine. Then, "preparing backup" showed up for a long time. After that, a window pop out: "Time machine error, The disk image cannot be mounted" What is disk image? What can I do (I can't back up anything) P.S. I use time capsule for

  • Problem in using RUN_REPORT_OBJECT

    I am trying to use following code to call a report from a menu of a .MMB file.      my_rep_id := find_report_object('my_report');      my_rep := RUN_REPORT_OBJECT(my_rep_id); This 'my_report' has been developed in report builder independently of Form

  • Using ODI to pull data from IBM DB2

    Has anybody used IBM DB2 as a data source for essbase using ODI ? If so, do you have any tips, pointers specific to this DB2 specific situation, or better yet reading resources aside from the DBAG ?

  • 1200 Series Access points

    I have an problem with multiple access points losing the ability to telnet to them.They access points work fine but the only way I can get the ability to telnet back is to restart them. Has anyone else had this problem.

  • Itunes store does not display with in the itunes player, why?

    I have latest iTunes download. I have PC with Windows Vista. My system requirements are what they should be for the iTunes player. I have gone through all of the troubleshooting that i am willing to go through to make this work - Can someone !! Tell