Applet problem of databse connectivity on different databse server

Hello Friends
I am working on chat application using applet.
But simple applet throw exception for different database server than application server.
So how can solve this problem ?
Is Signed Applet a solution ?
If yes how to develop signed applet ?

Basically it's not a good idea for applets to try and talk to databases etc. directly. Your applet talks to the sever via http and the server takes care of any database activities etc..
For a start, your database shouldn't be visible through your firewall, and it's likely, even if it was, the user's site's firewall would block it anyway.
If it could get the connection your database would be wide open to hacking.
In principal you could enable a connection by signing the applet, or by modifying the client policy file but it's not the right way to go.
And if this is just a local application on a controlled set of machines then what's the point in using an applet, when a GUI program would be more flexible and powerful?

Similar Messages

  • Connecting to different SQL Server servers?

    I'm very interested in trying out (using) SQL Developer, but have a problem connecting to 2 different SQL Server servers on my laptop. I have both SQL Server 2005 and 2000 installed. I can connect to my default server (2005 - localhost), but how can i connect to my second server - localhost\SQL2000?
    Thanks.

    In these, there has has to be different ports set up for each server. so default is 1433, but this can be set as administrator and set differnt ports for each server. In the latest builds we have support for native authentication so this should ease issue like this somewhat.
    Barry

  • Server cleanup wizard problem - unable to connect to the WSUS Server Database.

    I'm trying to run server cleanup wizard.. it starts to run and then after a while it gives me this error:
    The WSUS administration console was unable to connect to the WSUS Server Database.
    Verify that SQL server is running on the WSUS Server. If the problem persists, try restarting SQL.
    System.Data.SqlClient.SqlException -- Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    The statement has been terminated.
    Source
    .Net SqlClient Data Provider
    Stack Trace:
       at Microsoft.UpdateServices.Internal.BaseApi.SoapExceptionProcessor.DeserializeAndThrow(SoapException soapException)
       at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPSearchUpdates(String updateScopeXml, String preferredCulture, ExtendedPublicationState publicationState)
       at Microsoft.UpdateServices.Internal.BaseApi.Update.SearchUpdates(UpdateScope searchScope, ExtendedPublicationState publicationState, UpdateServer updateServer)
       at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetUpdates(UpdateScope searchScope)
       at Microsoft.UpdateServices.UI.AdminApiAccess.UpdateManager.GetUpdates(ExtendedUpdateScope filter)
       at Microsoft.UpdateServices.UI.AdminApiAccess.WsusSynchronizationInfo.InitializeDerivedProperties()
       at Microsoft.UpdateServices.UI.AdminApiAccess.WsusSynchronizationInfo.get_NewUpdatesCount()
       at Microsoft.UpdateServices.UI.SnapIn.Pages.SyncResultsListPage.GetSyncInfoRow(WsusSynchronizationInfo syncInfo)
       at Microsoft.UpdateServices.UI.SnapIn.Pages.SyncResultsListPage.GetListRows()
    Thanks

     Some questions:
    Are there any other databases running on this Std Edition SQL service?
    [a] Yes there are, we have Kaspersky enterprise DB, Report Server DB and local application DB.
    Are there any other services running on this WSUS Server?
    [b] Yes there are, we have Active Directory, Kaspersky enterprise, SQL Server 2005, and WSUS all on the same server.
    How many days since your WSUS server was first installed?
    [c] It's been about a year now.
    What is the physical size of the SUSDB.mdf file?
    [d] 9,666,752 KB
    What is the hardware configuration of this machine, including disk drives?
    [e] Intel Xeon 1.86, 2GB Ram, HD C: 39GB - E: 25.2, running Windows Server 2003 R2 SP2.
    How many client systems are you servicing from this WSUS Server?
    [f] Around 40.
    What products/classifications are you synchronizing.
    [g] Windows XP-vista, Windows Server 2003, Office 2003-2007, SQL Server 2005.
    Okay, for starters, you have an underpowered/overextended machine running Active Directory, ASP.NET, and a database server, all on a sub 2GHz CPU with 2GB RAM, and not enough disk spindles. The machine has had WSUS running for about a year and is 9GB in size.
    There's no doubt in my mind that some of your performance issues are directly related to disk and database fragmentation.
    There's also no doubt that some of your performance issues are directly related to memory starvation.
    I'd suggest the following long-term fixes:
    1. Get a second machine. Make it a dedicated database server. Provision it accordingly to support servicing multiple database applications.
    2. Lacking #1, this machine needs more memory. It also needs more disk spindles. At a minimum the databases being serviced should be on a dedicated physical drive; ideally there would be two dedicated drives allocated for supporting database services. The
    For the short-term fixes, do this:
    1. During after-hours time, if you don't already have one, build a temporary machine that can act as a DC/GC, while you take this machine temporarily offline.
    1. Shutdown the Update Services service, SQL Server database engine, and any other services dependent on the SQL Server database engine (Kapersky, and other reporting applications). Disconnect from the network to temporarly eliminate DC traffic. (You could also shutdown the AD services, but disconnecting the network cable is ever-so-much easier.) Defragment ALL drives.
    2. Restart ONLY the SQL Server service. Obtain this SQL script to Reindex the WSUS Databases.
    3. Restart ONLY the Update Services service. Attempt the Server Cleanup Wizard again. Run it in two passes. Pass 1 performing everything except  remove unused updates. Pass 2 running only remove unused updates.
    4. After completion of the Server Cleanup Wizard, reconnect the machine to the network and resume all other services.
    5. If you're able to complete #3, secure the services of a well-qualified DBA to determine if there are any misconfigurations in your SQL Server setup that would account for why your WSUS database is 9GB in size -- such as improperly configured autogrowth parameters. Based on the products you're updating and only forty clients, 9GB is about 3x the maximum size I would expect to see in a WSUS database. It's possible this is simply caused by excess unused updates, it's possible it's caused by fragmentation, it's probable it was caused by unnecessary autogrowth of the database due to insufficient update maintenance. You'll want a DBA to assist you in shrinking that database after you successfully run the Database Maintenance and Server Cleanup Wizard.
    Lawrence Garvin, M.S., MCITP(x2), MCTS(x5), MCP(x7), MCBMSP
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2009)

  • Connect to different Oracle server and database in PL/SQL code

    Hi,
    There are two oracle servers and databese, A and B. I need to read data from database A and insert those data to databse B. Is there anyway I can do it in PL/SQL program?
    Regards,
    Shiva

    In a SQL*Plus session, [connect string] is generally a TNS alias (i.e. in the command "connect scott/tiger@orcl", orcl is a TNS alias). I don't know if it is possible in some release to have a fully qualifies TNS entry (i.e. connect scott/tiger@(DESCRIPTION=(ADDRESS=(...)) ), but it is certainly uncommon. Depending on the version of Oracle, there are various ways to configure a client to resolve a TNS alias, but local naming is the most common, so I'll assume that is what you're using...
    If you are trying to query a remote database, you would either have to
    - Create a database link (i.e. CREATE DATABASE LINK db_link_name ...) and refer to the database link name in your SQL statement
    - Embed the full TNS entry in your query (i.e. SELECT * FROM emp@(DESCRIPTION=(ADDRESS=( .. .)) )
    If you choose to create the database link, one of the things you have to specify is the TNS alias (or the fully qualified TNS entry). If you specify a TNS alias there, you would generally have to ensure that the TNS alias existed in the tnsnames.ora file on the database server where the database link is created.
    Justin

  • Problem creating a connection pool for mssql server

    Hi
    i downloaded the microsoft type 4 driver for JDBC and i have installed it. now i am trying to create a connection pool for MS Sql server but each time i ping i keep getting an error telling me
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket
    please can someone help out on this
    Ifeanyichukwu

    I assume that you installed the driver correctly. You did go into the app sever admin and set the JVM path? You do this by going to Application Server | JVM Settings | Path Settings and putting in an entry for Classpath Prefix.
    If that is done and it's not something basic like your database isn't turned on, then it must be your settings. To to Sun's site and search for dbping. http://developers.sun.com/prodtech/appserver/utilities/dbping/dbping_overview.html
    Deploy this program and run it. It is a very simple tool that lets you test different property settings. Play around with different settings until you get a ping.
    If that doesn't work post your connect pool settings.
    Good luck
    Mike

  • Problem with socket connections through a proxy server.

    People,
    I set the system properties to use a proxy server so my application can fetch data from servers located outside my local network:
    System.setProperty("socksProxyPort", port);
    System.setProperty("socksProxyHost", proxy_addy);Then, when I attempt to stabilish a connection:
    s = new Socket(this.getHost(), port);It hangs.
    I appreciate any help since my available Java documentation is quite obscure regarding proxy servers.

    Is the proxy on another machine? Try it's IP. If
    not, replace 'proxy' with 'localhost'.
    - SaishYes, it is another machine.
                byte x[] = {(byte)aaa,(byte)bbb,(byte)ccc,(byte)ddd};
                s = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(InetAddress.getByAddress(x), 8080)));
                s.connect(new InetSocketAddress(this.getHost(), port));Again, it hung.

  • Time Machine: Backup folder changing size when connected to different computers

    Can someone please help me wrap my head around why the size of my Time Machine backup folder changes when connected to different computers? I tried to be as thorough as possible.  Thanks in advance for taking the time to read this.
    I made a backup of my one laptop (MacBook Pro running 10.6.8) before installing Mavericks.  The backup folder size is 258.56 GB and it is on a 1TB WD external.  There are no other computers backed up in this folder.
    Last night, I tried to copy the backup folder to another 1TB WD external and ran into the “you can’t do that” message.  After some researching, I came across articles explaining how Time Machine handles HDs and, in order for me to copy my backup folder, the drive I want to copy the folder to needs to have the “Ignore ownership on this volume” deselected.
    Okay, so here is my situation: I have the “Ignore ownership on this volume” deselected and journaling is correct on the drive I want to copy the backup folder to.  So I can continue working on my laptop, I want to use a different computer to copy the backup folder from one HD to the other.  The problem I’m having is each computer I own is showing me a different backup folder size O.o.
    (1) The computer I want to use – a Power Mac G5 Quad running 10.4.11 (non intel) – is showing a backup folder size of 592.7 MB, but the HD shows there is 258 GB being used.  When I drag copy, I only get a 592.7 MB backup folder.  For some reason, the backup folder is the only folder acting this way. I compared other folders from the same and different externals and all the sizes match up perfectly no matter the computer they were connected to. How is this possible?
    (2) My second option - Mac Pro (early 2009) running 10.9.4 – is showing a 256.15 GB backup folder size.  Very close, but not 258.56 GB.
    (3) My last option is to use the computer I’m trying to stay away from, the MacBook Pro running 10.6.8.  This is the computer I backed up and is showing me the correct folder size = 258.56GB.  As I mentioned, I'd like to work on my laptop while copying the backup folder using one of my other computers.
    I am able to drag and drop from each computer, but the folder size depends on the computer I’m using.  I don’t understand why I can't do a simple drag and drop of a 258 GB folder.
    Many thanks!!

    The directory files that you are seeing are not real. They are links to the actual backup files that are stored in a hidden directory on the drive. If you were to look at the same drive on a pc, you would see the folders and you would a list files that are in the folders but the files would all be 0 byte files and Windows will tell you the file is empty because there is nothing there but a link which Windows does not understand.
    So the point is you can't just copy the backupd files. The best solution that I know of (and maybe someone else will chime in) for copying them is to mirror the drive with something like Carbon Copy or some other program.
    See this site for more information about time machine and how it works: http://pondini.org/OSX/Home.html

  • Problems in internet connection in Lumia 710

    I have problems in internet connections in Lumia 710... I have to reset the phone everytime for the connection to work properly...
    Solved!
    Go to Solution.

    I can let you know this is not a known issue with the Windows ecosystem as the Lumia range of devices, the hardware itself maybe different specification but the ecosystem is the same. Also I myself have 710 and have never had this issue and am based in the UK so the statement from your network provider is false. Who is your network provider?
    What I recommend you do is take your device to your nearest Nokia care point to have the device inspected. You can look at the link below for the nearest one:
    http://www.nokia.com/global/support/locations/
    Also did you ask your network provider for a new sim? Was the phone purchased off line or part of a contract?
    Finally are you 100% sure your data plan is active? Also go into settings and mobile network and make sure data connection is on and highest speed is set to 3G
    Regards
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Thank you all for the responses. By process of elimination, I think the problem is the connection to the express in between the extreme and dock. I bought another express and tried it at dock, no luck, I then replaced new express where the one is between

    I have an airport extreme and express setup. My extreme is in my 2nd floor office with windows facing the water. My dock is about 250 ft away down a very steep hill. I have the express about 100 ft down the hill in an electrical waterproof box attached to a tree as high as I could install. The signal is weak and I'm thinking I might have to buy another express. Any thoughts on the best setup for me. I ultimately want to control speakers(hard wired in) down at the dock with my iphone. I have a receiver coming with airplay built in.
    Thank you all for the responses. By process of elimination, I think the problem is the connection to the express in between the extreme and dock. I bought another express and tried it at dock, no luck, I then replaced new express where the one is between extreme and dock, no better. I unplugged the express between extreme and dock and there was no difference. So I believe I am connecting to the airport express or extreme that is inside the house. Again because when i approach express that is halfway I reconnect. so if you can understand my chaos, I believe the express in between is not really connecting to the extreme inside my house. Yes, No? So I need to know how to know if the express half way down the hill is getting the connection from the the extreme in the house. This is wearing me out!!!!!

    You are asking several different questions. If you need to store your photos, music, and movies on an external volume, you certainly can. Any externally connected hard disk drive will work, connected either directly to your Mac or to your Time Capsule as a shared volume.
    You should not rely upon using that as a backup device though. Although you certainly may use it for both purposes, it is a better idea to have dedicated backup devices for a variety of reasons not limited to redundancy. You would not want to simultaneously lose all your pictures as well as your backup. If they are all on the same device, that could happen. Furthermore, a backup cannot back up the volume on which it is running.
    As for adding an Extreme or Express, using its LAN port for your iMac, and then enable Internet sharing so you can effectively use the iMac as a "hotspot", you can do that too, but I am unclear on what benefit you believe this arrangement would convey for you.
    An Extreme's Guest network is separate from its Main network; that is the reason for having it.

  • Email server problem - failed to connect to server

    Since Friday 27th August I've been having trouble connecting to the email server for my BT Yahoo account. It simply can't find the server, even though none of the account settings have changed and it has worked fine for years. Weirdly, sometimes it works and emails come through (so the settings are obviously fine) but then it will stop working for no apparent reason. I use Thunderbird as my email client, but I tested the account in Outlook Express and it gives the same error. The account works fine over webmail, and through my iPhone, however.
    It seems like this is a DNS error rather than software related - is there anything BT-related that could be causing this, or any simple fixes? I've tried rebooting the HomeHub but that doesn't seem to have made a difference. I work from home, so this is a really annoying problem.

    Lynx wrote:
    Interesting - we have exactly the same problem. Haven't been able to download for days. This has happened with two different computers with different anti-virus systems - so one assumes it's not suddenly that. I can access my e-mail online and reply (having to bcc myself, so when it does eventually work I have copies on my outlook express. It was working perfectly one night and the next morning just stopped - nothing happened in between.
    I have tried to find out what the error number means, but no-one - not even BT's Help section - seem to have the solution. Have you ever seen the Eddie Izzard sketch on YouTube? This is definately one of those moments!
    If you find a solution - would really appreciate you posting it on here, so I can fix mine. Will do the same for youi.
    Hi.
    This sort of problem is hard to determine. It could be a few things, including a corruption of the mail account (which can last for a short time or a number of days), it could be a local problem - which you've ruled out by the different computer check, or perhaps a "stuck" email - say one which is spam/virus attached and the online checking systems failing to pass through it, or possibly a stale IP address.
    The latter 2 are easy to check, the first via webmail and see if there is anything near the "top" of the list that may cause a problem, moving to a new folder, and try again. The last can be tried by power cycling the router to get a new IP address. Disconnect the broadband and router for say 15 minutes and then reconnect to try again.
    If there was a major server problem, there would be lots more complaints.
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Hi, my computer is not detecting any display, i'd been having this problem since i connected my computer to a tv, the tv burned up, and after that my port doesn't detect anything at all?? Was that the problem can I fix it.I have the lion 10.7.5.

    Hi, my computer is not detecting any display, i'd been having this problem since i connected my computer to a tv, the tv burned up, and after that my port doesn't detect anything at all?? Was that the problem can I fix it.I have the lion 10.7.5. Dont know if I changed settings or something.

    Hello,
    It isn't the fw in Network you want o use or look at, that's for something completely different.
    My first suspect is the Power Adapter on the LaCie has gone.
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>Firewire, what is listed there?
    Reset the Firewire bus
    If your Firewire or USB isn't recognizing any device.  A solution which has worked for some whose hard drive became invisible in 10.4 was simply to follow these four steps to reset the Firewire/USB bus:
    1. Shut the machine down.
    2. UNPLUG the power lead to the computer and any firewire/USB drive or devices.
    3. leave it for 10 minutes.
    4. Connect back up and reboot.
    http://www.macmaps.com/firewirebug2.html

  • Connecting to different databases

    Hi,
    Is there any one JDBC driver that connects to different databases (SQL Server, Oracle, Informix, MS Access, DB2..etc)
    Can anybody Pls help me for the above problem, its urgent

    There are some drivers, which supports several DBs
    look for them here:
    http://industry.java.sun.com/products/jdbc/drivers
    Paul

  • SSL Load Balancing (Java applets problem)

    Hi,
    I have implemented loadbalancing of two webservers using CSS 11503.
    Servers are containing SSL pages which need to be loadbalanced.
    I have tried configuring the content rule for ssl using
    port 443
    application ssl
    advanced-balance ssl
    commands.The site opens properly using the VIP address (checked the SSL certificate issued by one of the servers. ) and I am able to see all the TABS on the same.The real problem starts when I am trying to upload a file to the server using the VIP address.
    The moment I try to upload a file the session shifts to the second server and prompts for new certificate issued by the second server.
    One more thing which I would like to mention here is that while uploading the file, JAVA is used.
    i.e.the files are being uploaded using JAVA applets.
    If anybody has encountered this kind of problem kindly suggest on the same.
    Would appreciate if you send the solution on [email protected]
    Any configs needed plz contact me on the above e-mail ID.
    Thanks,
    Pankaj P.

    HI Pankaj,
    depending on your Java applett it might be possible that the applett opens a new connection. therefore depending on your total configuration it might be possible taht another server is used.Even worse if you do SSL-offloading the applett might tell the user to do http instead of https. I suggest that you check with a sniffertrace what is happening:
    1) is there a new connection setup while the applett runs
    2) is it again http or https and if https is it a new https session which will be again balanced not depending on the original https session.
    Hope that helps
    regards,
    Joerg

  • Applet problem in JSP

    Hi,
    I display an Applet from a jsp with this code :
              <jsp:plugin type="applet" code="client/ui/ClientApplet.class"
                   archive="Client.jar" name="LeHall"
                   height="100%" width="100%">
    It works perfectly in Internet Explorer,
    But not in Mozilla :
    It asks me to install a plugin : and there it searches for a plugin,
    then it says that it can't find one.
    I tested the same applet in PHP pages on the same computer,
    it works in Internet Explroer and in Mozilla too, without the need of a plugin for Mozilla,
    Could someone Help me with this please ???

    This isn't a "problem" so much as a different interpretation of what "height" represents. "Height" in the context of Mozilla is the height of the rendered document, not the height of the window.
    For example, if your page only has one line of text, then the "height" of your document would be that one line.
    To play with this idea even further, let's assume your document is so long, that it extends past the viewing area (i.e. you have a scroll bar on the side). If you specify a height of 100%, theoretically Mozilla would assume the entire height of the document. What would IE do?

  • SQL Server 2000 - JDBC + Java Applet problem

    Hai
    I have some problem connecting my SQL server database with Java.
    I use Applet to make my interface.
    I use Windows 2000 server.
    Here is my program listing :
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.sql.*;
    public class VLookup extends JApplet {
    String database = "jdbc:odbc:Driver={SQL Server};SERVER=Windows2000;uid=sa;pwd=;Database=User-Phone Database";
    String user = "sa";
    String password = "";
    Statement s;
    Connection c;
    JTextField searchFor = new JTextField(10);
    JLabel completion = new JLabel(" ");
    JTextArea results = new JTextArea(40, 20);
    public void init() {
    searchFor.getDocument().addDocumentListener(new SearchL());
    JPanel p = new JPanel();
    p.add(new Label("ID to search for :"));
    p.add(searchFor);
    p.add(completion);
    Container cp = getContentPane();
    cp.setLayout(new BorderLayout());
    cp.add(p, BorderLayout.NORTH);
    cp.add(results, BorderLayout.CENTER);
    try {
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    c = DriverManager.getConnection(database, user, password);
    s = c.createStatement();
    } catch(Exception e) {
    results.setText(e.getMessage());
    class SearchL implements DocumentListener {
    public void changedUpdate(DocumentEvent e){}
    public void insertUpdate(DocumentEvent e){
    textValueChanged();
    public void removeUpdate(DocumentEvent e){
    textValueChanged();
    public void textValueChanged() {
    ResultSet r;
    if(searchFor.getText().length() == 0) {
    completion.setText("");
    results.setText("");
    return;
    try {
    r = s.executeQuery("SELECT " + "Tipe " + "FROM " + "Time " + "WHERE " + "(Tipe Like '" + searchFor.getText() + "%') "
    + "GROUP BY " + "Tipe " + "ORDER BY " + "Tipe " );
    if(r.next())
    completion.setText(r.getString("Tipe"));
    r = s.executeQuery("SELECT " + "ID_Pengguna, Phone_Number, Tipe " + "FROM " + "Time "
    + "WHERE " + "(Tipe ='" + completion.getText() + "') "
    + "GROUP BY " + "ID_Pengguna, Phone_Number, Tipe "
    + "ORDER BY " + "ID_Pengguna, Phone_Number " );
    } catch(Exception e) {
    results.setText(searchFor.getText() + "\n");
    results.append(e.getMessage());
    return;
    results.setText("");
    try {
    while(r.next()) {
    results.append(r.getString("ID_Pengguna") + ", " + r.getString("Phone_Number") + ", " + r.getString("Tipe") + "\n");
    } catch(Exception e) {
    results.setText(e.getMessage());
    public static void main(String[] args) {
    JApplet applet = new VLookup();
    JFrame frame = new JFrame("User ID");
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e){
    System.exit(0);
    frame.add(applet);
    frame.setSize(500, 200);
    applet.init();
    applet.start();
    frame.setVisible(true);
    } ///:~
    And java catch error like this : access denied (java.lang.RuntimePermission access ClassInPackage.sun.jdbc.odbc)
    What is wrong ??
    Is there any problem with my DNS ? 'cos I don't know how to set up my DNS.
    Can u help my with this problem ??
    Thank's

    You need to read up on what applets are capable of. Applets generally cannot open connections to things like databases due to sandboxing. There are a couple of ways to get around this. The applet can connect to a servlet on the same machine from which it came and have the servlet do the database accesses. Alternately, you can create a signed applet which allows you to get around some of these sandboxing issues.If tried to make localhost on my computer ( by setting my IIS configuration setting, and using Configure SQL XML Support in IIS I've created a new http://localhost/skripsi to my SQL database.
    Is there any command that I have to add to my program listing so the applet can work as I wish ??
    Is there any way to use applet to connect my database withaout using servlet, and can u explain siggned applet to mey ??
    Sorry, I don't really know java very well.
    driver type 4 ??

Maybe you are looking for