Sharing jar files across multiple web sites

Dear all,
We have an applet as part of an embedded device. I wish to share the jar files across multiple devices. i.e. Accessing 192.168.0.1 shouldn't download the jar files again if the same jar files exist in the cache as a result of download from 192.168.0.2. We are having very large applet jar files, hence reducing download times is a top priority. Is there some way to do that ? Will java web start help in this ?
regards,
Jay

generally for avoiding applet downloading again the best solution is to use applet cahing, just add cache_archive in your html code (for full reference please go to the jdk javadoc ). Of course the problem are diffrent ips 192.168.0.1 and 192.168.0.2, applet caching will work ONLY for one ip, when you serv second sever name/diffrent ip client jvm will treat this applet as something new and will download it . The best solution i think is to sever everything on one server page/ip etc, but as you mentioned it is not good solution.
Well you can make it if you want to serve your big jar file on diffrent ips/severs, How? You should ctreate small certified applet jar , inside it should be code that will download your huge jar file from any location you want and store IT on CLIENT machine, becouse that jar will be certified so applet with file functions will not ask user to accept dialogs etc, so that applet will create locall on client machine little cache were all files that were downloaded will be stored. And again when user will acess your page that small certfied jar file will check if cache folder exist and if inside it is your huge file.
cheers

Similar Messages

  • Sharing static files across multiple WAR files in a single EAR

     

    Is there also a way to share the Session across multiple WARs in the
    same EAR ??
    TIA
    Nikhil.
    Vinod Mehra wrote:
    Yes, we have Virtual Directories for this in 7.0.
    http://edocs.bea.com/wls/docs70/webapp/weblogic_xml.html#1031951
    --Vinod.
    "Sam Smith" <[email protected]> wrote in message
    news:3d3f47cf$[email protected]..
    Hi,
    I have multiple web apps to be deployed to an intranet. I need to have acommon
    look and feel for these multiple webapps.
    I could place the webapps in a single ear file or deploy them without aear file.
    I wanted to know if there is any standard way to include static files likeimages,
    javascripts and css files (for a common look and feel) across multiple warfiles.
    Right now I am planning to keep a war file which just contains all thestatic
    files and point all the jsp pages in the other apps to the static files inthis
    common app. Is there a better way to go about this.
    Thanks,
    Sam

  • Sharing ITunes files across multiple windows user accounts

    How can my husband and I share our music files across two windows user accounts on the same computer.  As of now, when one of us buys new music, the other cant get it in their music library.  How do we get it to show up for both of us?

    follow this link to support article. http://support.apple.com/kb/HT1203

  • Hosting multiple web sites usinf personal web sharing

    would someone be kind enough to give me a guide to hosting MULTIPLE web sites on a Mac Mini
    i have broadband connected to my router
    my mac connects to my router with an ip address of 192.168.1.150
    I have registered the domain names and want to forward them to the computer hosting the web sites
    how can I get each domain name to point to each different web site on my computer

    This is a topic you should post to an Apache discussion group being as though Apple's personal web sharing software is Apache.

  • How can I share a *.java source file across multiple projects in NetBeans?

    I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.

    fiebigc wrote:
    I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    >I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    Create a class library.
    Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it.

  • How do you share Aperture file across multiple users on same Mac?

    How do you share Aperture file across multiple users on same Mac? Seems this should be a preferences choice.

    When you share your library between users, you may run into permission and ownership problems, if both users are editing the Aperture library and not only reading it. To avoid that, it helps to put the Aperture library onto a separate disk or a separate partion of your hard drive. For s separate partition or disk you can enable the "ignore ownership on this volume" flag. Then all users can access the library as owners of this library.
    You might try to put the aperture library into a shared folder on your mac, but that has caused problems recently, i.e. when the library also contains video files.
    Regards
    Léonie

  • Multiple Web Sites on OS X Mavericks Server

    I want to run multiple test web sites off my home Mac OS X Mavericks Server 10.9 can someone point me to a good "How to" on the specific of how to use the Server application to create and operate multiple web sites of a single Mavericks Server?
    Example
    MyServer.inno.com          10.0.2.5
    Basic web is up and running....
    I want to host four other web sites off the same machine for testing purposes how do I do that?
    MyServer.inno.com          10.0.2.5
    MyServer.web1.com          10.0.2.5
    MyServer.web2.com          10.0.2.5
    MyServer.web3.com          10.0.2.5
    MyServer.web4.com          10.0.2.5
    so if I go to the server and load
         MyServer.web1.com          10.0.2.5
    it load a different web server.
    My thought is to use virtual host how does Apple / Community recommend I set this up...
    T.

    Please do not squat in the "home.com" domain.  If you're going to use a bogus domain, please use a bogus to-level domain such as server.home.jarvis — .jarvis is not currently a valid top-level domain, though that might change with the way ICANN has been bringing many new top-levels online, so a real registration is safer here.
    Peter Jarvis wrote:
    Assumptions:
         1. The Server is not intended to be publicly accessable from the Internet
    How will it be accessed?  Entirely privately?  No external access?  OK.
         2. Private Network - 10.0.1.X
    I'd probably pick something a little further into 10, such as 10.8 or 10.10, or 10.20.1.x — if you're ever using a VPN, it's best to use a weirder subnet, and I've worked with several folks that have 10.0.1.0/24 subnets.
         3. DHCP Reservation for the Mac Server - 10.0.1.2.
    I usually prefer keep the server and the other fixed-address hosts outside the DHCP pool.
         4. Server Domain name MacServer.home.com
    Are you the registrant for the home.com domain?  (I'd tend to doubt that, and would therefore suggest use of a real and registered domain or subdomain that you have permission to use or (less desirably) use a bogus top-level domain.)
         5. Example Web Site http:www.rouxacademy.com to also run off the same server...
    Is that going to be public?
    Prequisites:
         1. Static Server IP Address / DHCP Reserved IP Address against MAC Address
         2. DNS Service Configured and Running
         3. Web Service Configured and Running
         4. Example Web Site http:www.rouxacademy.com
         5. You have a basic website (with mysql) files available
                   Directory roux_academy (Contains Basic Web SIte files etc)
    OK.
    Steps:
         1. Static Server IP Address / DHCP Reserved IP Address against MAC Address
    The Airport Airport allows you to Reserve and IP address against a MAC (Media Access Control) physicall address of Server Ethernet Card. You can do this or have the Airport allocated DHCP address from 10.0.1.50 and above and statically allocate the server address of the machine.
    I'd leave the server out of the address pool.  So long as the pool and all static IP hosts are in the same block (usually a 255.255.255.0 or /24 subnet) it'll all work, and you won't need to entangle the OS X Server with the DHCP server.
         2. DNS Service Configured and Running
    Install Mavricks, install OS X Server application, launch server app...
    Go to DNS tab, define a new host name MacServer.home.com and associate with 10.0.1.2 IP Addresss
    Start DNS Service...
    Note: DO not publish DNS service via airport to Internet...
    Other than not squatting in that domain, yes.  There's no reason to open TCP or UDP port 53 inbound.
         3. Web Service Configured and Running
    Go to Web Sites tab...
    Click + and create new web site entry
    Domain Name:                http:www.rouxacademy.com
    IP Address:                     Any
    SSL:                               None
    Store Files in:                /Volumes/dev/Library/Server/Web/Data/Sites/roux_academy
    Who can access:          Anyone # I would restrict to a single user
    Additional Domains:     rouxacademy.com
    no http: prefix there, but yes.
    If you're not exposing the server to the 'net (as mentioned above) there's probably no need to restrict.  If you do need to restrict, you'll need to edit configuration files for Apache, or some other technique — maybe a VPN, if you're allowing (controlled, VPN-based) inbound access into your network.
    Start Web Service...
         4. Back to DNS
    Add host name....
    www.rouxacademy.com / 10.0.1.2
    # Do not create an MX record or publish DNS via airport...
    AirPort does not know from MX records, and does not provide DNS services.  AirPort will know about your local DNS server, since you are apparently using the AirPort for DHCP.
    You can also add the DNS translation during step 2; Apache and DNS are not tightly linked here.
    Launch Safari and type
         www.rouxacademy.com          - should launch web site...
         rouxacademy.com                   - should launch web site
    Caveat: the Real rouxacademy.com will not be accesable from the server or local machines on 10.0.1.X network...
    Ah, so there's a key detail — you're playing games and mimicking a real web site?  OK.
    The rouxacademy.com web site will be accessible from the server, as that'll (also) have the DNS translation (and remember the basis for virtual hosting is the client — the server in this case — has a translation for the host — the rouxacademy.com or www.rouxacademy.com domain in this case — and passes that string over the HTTP or HTTPS connection to the web server.   If you really want to keep the server from accessing this web site, then you'll have to push the local translation of that domain into the hosts file, or to a separate DNS server. 
    I'd try to avoid this configuration though, particularly as your references to MX earlier implies that this domain might be more active than just the web services discussed here — trying to run split-horizon DNS means you'll get what's internal and external somewhat tangled, and you'll have to keep mail — for instance — aimed outside and web services aimed internally.  This is possible for many cases, but gets tricky.
    Best to test the web site with a different domain name, and to use /-relative notation for accessing the files, or using the web content management system's configuration settings to control the "published" name of the site.

  • Authentication Across Multiple Web Applications (Revisited)

              Its been an ongoing battle, but I've made some insight into this situation. The problem stands as it seems impossible to authenticate against one web application deployed as a WAR archive and have that authentication carry across to another web application with the same security constraints. I've been told by BEA that, quote:
              "It seems to me that we are violating section 11.6 of the servlet 2.2 spec which talks about webapps"
              I've also been told that this is fixed in WLS 6.0, reference issue #38732.
              For those of us building production environments using 5.1 instead of 6.0 XML based configuration, this does NOT solve our problem.
              I've dug further into the bowels of 5.1 and found that if you manually set the realm name in the login-config of the security constraint in the web.xml file in each WAR deployment as such:
                   <login-config>
                        <auth-method> [whichever method] </auth-method>
                        <realm-name>WebLogic Server</realm-name>
                   </login-config>
              Authentication will carry across web applications. However, I've noted that the session management then becomes unpredictable. For example:
              I log into the application TESTAPP1 which contains a protected servlet that outputs the session ID and attempts to get the authenticated principal name from the "_wl_authuser_" session variable. Upon first load of the page (after the login dialog box), the session is null [can be fixed with .getSession(true) call instead] and the "_wl_authuser_" object does not exist. Reload the page and the session appears as well as the "_wl_authuser_" object. Strange.
              I then move to TESTAPP2, which does not prompt me for authentication but also is missing the session in the same manner. Upon browser reload, the session is created with a different ID and the "_wl_authuser_" object is now available with the appropriate principal name.
              Upon moving back to TESTAPP1, I am not prompted for authentication however, I am assigned yet another session ID after browser reload, different from the first.
              So it seems that although authentication is carried across web applications, the session IDs as you move from TESTAPP1 to TESTAPP2 change, and then change again but not back to the original when going back to TESTAPP1.
              This is a particular problem since we are using Vignette's V5 as our main client and tracking sessions through V5 - this would quickly become unmanageable if a single page view access three or four different application components with three or four different session ids.
              I'm wondering if we can expect the same behavior from WLS 6.0?
              Ideally, I'd like to see WebLogic use a single session ID to track users across multiple web applications but still have session independence between applications. So if I store something in session in TESTAPP1, its not available in TESTAPP2. Does this outline the behaviour in WLS 6.0? Can anyone verify this?
              Some food for thought. Thanks!
              ./Chris
              Senior Systems Anaylst
              MassMutual Financial Group
              

    Hello! I am searching an answer to this question too!!!
    Did you get some news regarding this item?
    Regards,
    C.M.

  • Creating multiple web site

    I create and set up multiple web site for companies. they are hosted on 3rd party sites but i want to control them in iWeb. How can I do that without it replacing the first site i did on iweb

    Thank you! Can you tell me if I understand:
    iweb 09 doesn't actually require you to split domain files, but it is generally recommended and there are a couple ways to do so.....your preference is to start new each time. Would you, in my case, start a new one for each of my already created sites and then copy the pages into the appropriate site domain file. (there are only 3-4 pages/site) and then delete the original mess? and where do I find this original? I think I saw somewhere where it sits....will go look for that article.
    mobileme does not support cname more than once. So, I have one site sitting at dreamhost. No problem. I have another public site I will have to host on mobile me so I'll direct cname here. And then the third site I'll be hosting elsewhere so the cname issue will not matter as things stand. However, any future public sites will need to be hosted elsewhere if I want them to have personal domain names not masked/forwarded, etc. But, if I make a family type site that I don't mind having all that me.com/gobbledygook address to hand off to the grandparents I could do that.
    And then I am grateful for your step by step and specific recommendations for the google/optimizing part. I have seen all that stuff but have had trouble figuring what comes first, next, etc. And what services are best to use.
    I have pictures scattered on my sites (not the photo templates) do I need to use yummy ftp to somehow manage these on the host site? This is not a piece I really understand. Do they not transfer with my iweb design?
    And one site has two short video clips. You don't use quicktime. Can you point me to the resource to do this another way?
    Again, I am really thankful for the help.

  • Hosting multiple web sites.

    Dear members:
    I am considering OS X Server for a personal project and would like some advice to help me decided what route to take.
    My computer will soon be turned into a server hosting my web sites and some other services at my home office. I am thinking about OS X Server as I have done some research and found OS X to require quite a bit of work so that it can do virtual hosting.
    How simple is it to configure virtual hosting in OS X Server ? I am considering the latest Leopard version in case it matters. I am not experienced and wish to employ an application that will simplify this process.
    Any help will be very appreciated.
    Thank you,
    Joseph Chamberlain

    Joseph:
    Although I wouldn't touch any Web-server software other than Mac OS X Server, I should warn you that Apple occasionally favors "pretty" over "practical." I've used PCs and Macs since the Mac Plus was hot, and I've used OS X Server 10.3, 10.4, and now 10.5.3. The last is really excellent, with a gorgeous/powerful Server Admin user-interface, many supporting tools, and thousands of hardball features, but like many Apple "industrial-strength" software products, Mac OS X Server still contains a very few really BAD bugs -- or "oversights" if you prefer.
    Before taking the plunge (maybe you already did?), read up on troubleshooting OSX Server's Postfix-based mail service. Even the 10.5.3 upgrade can turn "easy setup" into major frustration; you can do everything by the book and still have weird mail-server glitches. Don't even get me started on documentation for and "centralized" management of Open Directory, Kerberos, etc. I will be migrating to SSL mail security to avoid the user-directory thrash.
    When trying to make OSX Server 10.5.3 (a clean install) host *multiple top-level Web domains under a single IP number*, Apple documentation online and on disc didn't offer enough setup detail and virtually NO troubleshooting. Google.com can find what's missing. This archived earlier forum thread saved my bacon....
    Topic : "multiple web sites"
    http://discussions.apple.com/thread.jspa?threadID=682507
    In a nutshell: a multiple-website installation of OSX Server requires careful interaction between the domain-name, IP#, port#, and aliases for each site. When I created my several sites. I relied on the default installation (and Apple instructions) which leaves a wildcard "*" asterisk in each site's Web>Sites>Aliases>WebServerAliases field (in Server Admin). No matter how I diddled with each site's domain-name, IP#, and port# (to create unique combinations), I couldn't force the individual domains to get served independently (despite their shared static IP#) until I DELETED the wildcard WebServerAliases for all the sites. Poof, now it works fine.
    Part of the problem is that Apple still publishes documentation on its legendary *drool-proof paper* ("do not expose your LaserWriter to open flame").

  • How do i link a flash file to a web site in dreamweaver 8

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0059_01C7A541.7942B2A0
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    Hi
    How do i link a flash file to a web site in dreamweaver 8
    Thanks
    ------=_NextPart_000_0059_01C7A541.7942B2A0
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.6000.16448"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3DArial
    size=3D2>Hi</FONT><FONT face=3DArial =
    size=3D2></FONT></DIV>
    <DIV><FONT size=3D1>
    <P><FONT size=3D3>How do i link a flash file to a
    web site in =
    dreamweaver=20
    8</FONT></P>
    <P> </P>
    <P><FONT face=3DArial =
    size=3D2>Thanks</FONT></P></FONT></DIV></BODY></HTML>
    ------=_NextPart_000_0059_01C7A541.7942B2A0--

    In Flash. There is no way to apply an HTML link to a swf
    file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dave" <[email protected]> wrote in message
    news:f3s8f0$cla$[email protected]..
    Hi
    How do i link a flash file to a web site in dreamweaver 8
    Thanks

  • How to read the data in a txt file on a web site?

    I want to extract the numbers located in txt files on a web site. It's a normal url. Not a ftp.
    Does anyone know how to do it?

    Hi Tom,
    What do you want to extract from the text file??
    I wanted to extract an IP address from a pearl script from my FTP server and this was the vi that I used .I dont know if you are trying to do the same?
    Here is the vi.It is in LV 7.1
    Hope its helps .
    Good luck.
    ohiofudu.
    Certified LabVIEW Architect
    Certified TestStand Developer
    Attachments:
    PublicIP-Adresse.vi ‏31 KB

  • Configuring multiple web sites in a single OC4J instance with 10g OEM

    Hi There,
    there doesn't seem to be a way of configuring multiple web sites within a single OC4J instance using the 10g Enterprise Manager Website, so can i assume that there's some performance related issues with doing this, or is it just a case of if you want multiple web sites, configure it manually?
    We currently use 9iAS release 1 (which has been configured to use multiple web sites - with normally 1 j2ee app in each website - in a single OC4J clustered instance, using mod_proxy to forward the http requests onto oc4j), but we are looking to migrate to 10g very soon...
    The initial configuration was done by an external company, so i'm not entirely sure of the reasons why it was chosen (perhaps so that if there was a problem with a single website, it wouldn't impact all our applications)..
    Does anybody else currently use multiple *-web-site.xml's in a 9iAS release 2 or 10g in a production environment, and if so did you encounter any problems with the OEM website (assuming you configured them manually)?
    Thanks in advance,
    Andy

    Hello,
    Something like this:
    New-OWAVirtualDirectory -WebSiteName "FBA"
    Enable the Basic authentication via running the following command:
    Set-OWAVirtualDirectory -Identity "yourservername\owa (FBA)" -BasicAuthentication $true
    Restart the IIS admin service in services.msc
    Thanks,
    Simon Wu
    TechNet Community Support

  • Since installing Adobe Creative Suite 4 I can no longer print Adobe files off a web site

    I can not print an Adobe file from a web site. I have to save it then reopen it to print.

    I'm using windows 7. The Acrobat that came with the Adobe Creative Suit 4 is Adobe Acrobat Pro. When I am on a web site that has a page in PDF I click on the printer icon and the print page comes up but the preview side is blank and will not print the page.

  • I'm unable to print pdf files from certain web sites. I have just changed to Mavericks

    i'm unable to print pdf file from certain web site. I just changed over to Mavericks.

    You will need to access that PDF on your computer first, before you can print it — unless that PDF is corrupted, which occasionally happens. Your printer needs to be configured and working.
    Default PDF web-browser plug-in in Safari, latest (Firefox/Chrome) also built-in.
    Click on the remote PDF link to open in browser
    On Mavericks, you will need to click through security challenges for the PDF
    File menu > Print
    Right-click on remote PDF file and then choose Download Linked File As...Open that file in /Applications/Preview.appFile > print
    Adobe Reader 11.0.04 PDF plug-in
    Same security challenges on Mavericks as first bullet
    With PDF imaged in browser, either select print icon from the plug-in toolbar, or mouse over the bottom one inch of displayed document and you will see a printer icon in the popup toolbar. Use that.

Maybe you are looking for

  • How does one scroll a JPanel?

    I have a drawing area in my GUI which is a JPanel on which I draw graphics. I have added scrollbars but I cannot get the JPanel to scroll. I tried setting the size (setSize) of this JPanel much larger than it appears within its JFrame but no go. Any

  • Corners stopped working

    My corners have suddenly stopped working. When I go to System Preferences-->Expose-->Active Screen Corners, they're still set the same way they were before they stopped working. Help!

  • OnLine Number Ordering Not Working

    Wanting to purchase a Skype Online Number, but after selecting Country (USA), and State (FL), area code drop-down list does not populate.  I've tried using a different State, and same thing happens. FIX?

  • Is there any way to report on Custom Object 3 other than lists?

    Looks like the answer is no but just wondering if anyone has come up with a brilliant work around. I guess the only chance is with Web Services, or is Custom Object 3 the red headed step child there as well? I read in an earlier thread that R15 fix/p

  • Why isn't email link not working for only one address?

    Windows 7, Outlook 10, InDesign CS6, Acrobat X Pro, version 10.1.5 I have a series of email addresses that work fine in the resulting .pdf (set to generate automatically), but there's one that either isn't recognized as an email address, or when it i