Getting automatic updates from database

Hi,
Not sure if this is the correct place to post this as it is databse and Java related, but here goes, please let me know if there is a better place for questions like this.
I currently have a servlet based server using http comm's to a flash movie client, everything is currently working fine, I now need to push data from an oracle database to the client.
I have 2 questions:
1:
Using Oracle, does anyone know the best way to get Oracle to let me know in the Java of a data change? Triggers? I am currently only using Servlets and would like to keep it as simple as possible, only using EJB's etc... if it's the only way.
2:
I have looked into 2 ways of pushing this data to the flash client, one is the standard socket architecture, this is fairly standard and easy to implement and understand, but it needs a port to be open for this comm's, in an internet situation this might be a problem. The other idea is to use a ServletAdapter and keep the http connection from the Flash to the a Servlet open pushing data to the client as needed. Does anyone have any opinions on these 2 ideas?
Any help/discussion on these 2 questions would be greatly appreciated.
Thanks in advance.
Phil Maskell

i have a working example in 8i, but i cannot understanad it now :( it was a time of experimenting and the rmi, socket and also a class loading thing were all in there!
there were quite a few things to do eg. the triggers, the sqlj, the permissions., not to mention the clients and servers. it may be simpler now but i would not know.
it still runs, i tried it again but difficult for me to explain now and the code is too embarassing to show!
You mention rmi, I now have a trigger working, do you
have any examples or links on how to call Java code
with RMI in Oracle PL/SQL.

Similar Messages

  • Office 365 x64 Click-to-Run Not Automatically Updating from Network Share

    We are piloting Office 365 x64 and pointing the clients to a network share (see config file below) for updates.  When we subsequently download the updates to the share the clients will not automatically install them.  If we manually do so from
    within an app (File > Account > Update Options > Update Now) it works fine.  The ACL and Sharing permissions allow Everyone and Domain Computers read-only access (in addition to some other ancillary accounts).  I've tried manually running
    the Office Automatic Updates from Task Scheduler and left the box running overnight.  I've rebooted, logged back on, closed and opened the app several times.  Nothing happens, just always sits at the current version.
      Anyone have any ideas?
          Thanks,
             Bryan
    Here's the UpdateURL registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration\UpdateUrl = \\<SERVERNAME>\Office_365\Pilot
    ProPlusx64.xml:
    <Configuration>
    <Add OfficeClientEdition="64" >
    <Product ID="O365ProPlusRetail">
    <Language ID="en-us" />
    </Product>
    </Add>
    <Updates Enabled="TRUE" UpdatePath="\\<SERVERNAME>\Office_365\Pilot\" />
    <Display Level="None" AcceptEULA="TRUE" />
    <Logging Name="OfficeSetup.txt" Path="%temp%" />
    <Property Name="AUTOACTIVATE" Value="1" />
    <Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
    </Configuration>
    Here's what I think is the log file:
    Timestamp Process TID Area Category EventID Level Message Correlation
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x554 Click-To-Run Telemetry aqkhc Medium {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","ExeVer":"15.0.4615.1002","SecuritySessionId":"0","ModulePath":"C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe","CommandLine":"/service","Bitness":"64","IntegrityLevel":"0x4000"}
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x554 Click-To-Run Telemetry aqkhe Medium {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","OSVersion":"6.1","SP":"1","ProductType":"1","ProcessorArch":"9","Locale":"1033"}
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run annt7 Medium ProcessPool::Initialize - Initializing Main Process Pool
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run annuf Medium SystemProcessPool::DoInitialize - Initializing System Process Pool
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run anntv Medium ConfigurationManager::Initialize - Initializing ConfigurationManager
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run annt4 Medium Pipeline::Initialize - Initializing pipeline with PipelineServerName: "ClickToRun_Pipeline" and InstallationPath: "C:\Program Files\Microsoft Office 15"
    05/01/2015 11:21:11.154 OFFICECL (0x550) 0x568 Click-To-Run annt1 Medium Orchestration::Initialize - Initializing Orchestration
    05/01/2015 11:21:11.201 OFFICECL (0x550) 0x568 Click-To-Run annto Medium ApiServer::Initialize - Initializing ApiServer for endpoint: C2RClientAPI_Server_System
    05/01/2015 11:24:50.661 OFFICECL (0x550) 0x828 Click-To-Run annty Medium ExecutionContext::QueueScenario - Set executing scenario to UPDATE
    05/01/2015 11:24:50.661 OFFICECL (0x550) 0x828 Click-To-Run annuz Medium TaskFactory::TryLoadScenario - Start loading UPDATE scenario
    05/01/2015 11:24:50.661 OFFICECL (0x550) 0x828 Click-To-Run annu0 Medium TaskFactory::TryLoadScenario - Loading UPDATE scenario is successful
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0x828 Click-To-Run amavh Medium ScenarioController::Initialize - requested display level: False
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0x828 Click-To-Run annua Medium ProcessPool::QueueTaskItem - Task SCENARIO:{AC2F0D89-6518-48E9-A0D9-EF039C456034} is being scheduled to run in this process
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0x828 Click-To-Run aoicd Medium ExecutionContext::QueueScenario - Successfully queue scenario UPDATE.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run annua Medium ProcessPool::QueueTaskItem - Task UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0} is being scheduled to run in this process
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run annvj Medium Worker::TaskExecutionThreadProc - Task SCENARIO:{AC2F0D89-6518-48E9-A0D9-EF039C456034} completed with TaskState TASKSTATE_EXECUTING.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run annu6 Medium TaskGroup::DoHandleWorkerCompleteEvent - Task {AC2F0D89-6518-48E9-A0D9-EF039C456034} complete event is handled by task {AC2F0D89-6518-48E9-A0D9-EF039C456034}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run apm4n Medium TaskGroup::Finalize - Task AC2F0D89-6518-48E9-A0D9-EF039C456034 is not finished.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run Telemetry amb0n Medium TaskUpdateDetection::ApplySettings: Beginning Update Scenario. {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","TargetVersion":"UNDEFINED","InstallID":"C5912794-7300-4A10-840B-575B03DB98F8","TaskId":"77176F9C-873B-4A7D-8051-EBEB52DDE8B0","TaskState":"TASKSTATE_EXECUTING","UpdatePathType":"CUSTOM","TaskType":"UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0}","Scenario":"UPDATE","TriggeringUI":"UNDEFINED","TaskCaller":"SCHEDULEDTASK"}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run Telemetry aoh6s Medium TaskUpdateDetection::Execute: Ending Update scenario, task trigger source disabled. {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","InstallID":"C5912794-7300-4A10-840B-575B03DB98F8","TaskState":"TASKSTATE_EXECUTING","TaskId":"77176F9C-873B-4A7D-8051-EBEB52DDE8B0","TaskType":"UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0}","Scenario":"UPDATE"}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run annvj Medium Worker::TaskExecutionThreadProc - Task UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0} completed with TaskState TASKSTATE_FAILED.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4b Medium Task::DoHandleWorkerCompleteEvent - Setting Task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0) Task State to (TASKSTATE_FAILED)
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run aqkg7 Medium Task::DoHandleWorkerCompleteEvent - No event is specified for task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0)
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run Telemetry apm4e Medium Task::HandleTaskStateFailed - Handling TaskState (TASKSTATE_FAILED) for task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0). {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","InstallID":"C5912794-7300-4A10-840B-575B03DB98F8","TaskState":"TASKSTATE_FAILED","TaskId":"77176F9C-873B-4A7D-8051-EBEB52DDE8B0","TaskType":"UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0}","Scenario":"UPDATE"}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apkpk Monitorable ScenarioController::CheckProcessPool - Failed to get/create ui process pool, and we are not the ui handler. Cannot process event
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run annu6 Medium TaskGroup::DoHandleWorkerCompleteEvent - Task {77176F9C-873B-4A7D-8051-EBEB52DDE8B0} complete event is handled by task {AC2F0D89-6518-48E9-A0D9-EF039C456034}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {AC2F0D89-6518-48E9-A0D9-EF039C456034}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4a Monitorable Task::DoCancel - Can't cancel task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0) because it is in TASKSTATE_FAILED state
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (57173191-24E0-42E1-96F4-914AF8CFD1D5) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (AA63EED2-70B9-4E21-952C-9CFB09EC37C0) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {D1506E3F-4B2A-41D3-913B-FA3E889CE20D}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {539BA5C1-BC18-4D11-AF61-CF6EDC58DC33}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (D1E1E548-917D-4D75-8AE5-FC76856C66DC) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {9A54EEBA-7B8D-4BD5-8EFE-D21E58FFFEE3}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {9C141B7D-2B22-4C33-9C5C-F6F3394AD19E}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {501487AD-0A47-419D-AF30-B9E616A4579B}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {0270BAF9-3CE0-46EE-A3FE-099ABC06BC14}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (F0E5AF5D-5D82-4370-A2A6-C064CBC39247) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 0270BAF9-3CE0-46EE-A3FE-099ABC06BC14.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 501487AD-0A47-419D-AF30-B9E616A4579B.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (A5E75ADF-8BF1-44C4-8900-1BE6070EB609) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 9C141B7D-2B22-4C33-9C5C-F6F3394AD19E.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 9A54EEBA-7B8D-4BD5-8EFE-D21E58FFFEE3.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 539BA5C1-BC18-4D11-AF61-CF6EDC58DC33.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task D1506E3F-4B2A-41D3-913B-FA3E889CE20D.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task AC2F0D89-6518-48E9-A0D9-EF039C456034.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task AC2F0D89-6518-48E9-A0D9-EF039C456034.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run annt0 Medium ExecutionContext::ResetExecutingScenario - Reset executing scenario

    Hi,
    I replied in the other thread:
    http://social.technet.microsoft.com/Forums/office/en-US/e9e6be40-fb92-4734-9f94-9dee5599b1d8/office-365-pro-plus-2013-update-wont-apply-automatically?forum=officeitpro#c156ed8c-f65c-450c-9e0f-85f0de513c20
    It seems when the install finished it added an extra Office\Data to the path. My path should be \\hsbswpush02\GPsoftware\o365\Office\Data\15.0.4551.1005
    but it shows
    \\hsbswpush02\GPsoftware\o365\Office\Data\Office\Data15.0.4551.1005
    If I edit the path and delete the extra Office\Data Office 365 ProPlus updates from my network location. I cannot figure out why it is adding the extra Office\Data to the path.
    My config file looks like this:
      <Updates Enabled="TRUE" UpdatePath="\\hsbswpush02\GPsoftware\o365\Office\Data" />
    have you tried omitting the \Office\Data element, from the Updates element ?
    http://technet.microsoft.com/en-us/library/jj219426.aspx#BKMK_UpdatesElement
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Forgot whether automatic updates are included when you update Flashplayer.  Update was fine, just didn't see where to click to get automatic updates.

    Forgot whether automatic updates are included when you update Flashplayer.  Update was fine, just didn't see where to click to get automatic updates.  Please advise whether I need to do anything or not.  Thanks.

    If you are using Windows:
    You must be logged in from an Administrator account not a Standard account.
    Click on START, then Click on CONTROL PANEL, then be sure the View is set to Large Icons not Category.
    Click on the Flash Player Icon. The Flash Player Control Panel should come up.
    Click on the UPDATES tab. Now you can verify or select automatic updating.

  • How to get string value from database table using Visual Studio 2005?

    Hi,
    Im developing plugin in illustrator cs3 using visual studio 2005. I need to get the values eneterd in database. Im able to get the integer values. But while getting string values it is returning empty value.
    Im using the below code to get the values from database table
    bool Table::Get(char* FieldName,int& FieldValue)
        try
            _variant_t  vtValue;
            vtValue = m_Rec->Fields->GetItem(FieldName)->GetValue();
            FieldValue=vtValue.intVal;
        CATCHERRGET
        sprintf(m_ErrStr,"Success");
        return 1;
    Im using the below code to get the values.
    AIErr getProjects()
        char buf[5000];
        int i;   
        std::string  catName;
        ::CoInitialize(NULL);
        Database db;
        Table tbl;
        errno_t err;
        err = fopen(&file,"c:\\DBResult.txt","w");
        fprintf(file, "Before Connection Established\n");
        //MessageBox(NULL,CnnStr,"Connection String",0);
        if(!db.Open(g->username,g->password,CnnStr))
            db.GetErrorErrStr(ErrStr);
            fprintf(file,"Error: %s\n",ErrStr);
        fprintf(file, "After Connection Established\n");
    if(!db.Execute("select ProjectID,ProjectName from projectsample",tbl))
            db.GetErrorErrStr(ErrStr);
            fprintf(file,"Error: %s\n",ErrStr);
        int ProjectID;
        int UserID;
        int ProjectTitle;
        char ProjectName[ProjectNameSize];
        if(!tbl.ISEOF())
            tbl.MoveFirst();
        ProjectArrCnt=0;
        for(i=0;i<128;i++)
            buf[i]='\0';
            int j=0;
        while(!tbl.ISEOF())
            if(tbl.Get("ProjectID",ProjectID))
                fprintf(file,"Project ID: %d ",ProjectID);
                ProjectInfo[ProjectArrCnt].ProjectID = ProjectID;
                sprintf(buf,"%d",ProjectID);
                //MessageBox(NULL, buf,"f ID", 0);
                j++;
            else
                tbl.GetErrorErrStr(ErrStr);
                fprintf(file,"Error: %s\n",ErrStr);
                break;
            //if(tbl.Get("ProjectTitle",ProjectName))
            if(tbl.Get("ProjectName",ProjectName))
                MessageBox(NULL,"Inside","",0);
                fprintf(file,"ProjectTitle: %s\n",ProjectName);
                //catName=CategoryName;
                ProjectInfo[ProjectArrCnt].ProjectName=ProjectName;
                //sprintf(buf,"%s",ProjectName);
                MessageBox(NULL,(LPCSTR)ProjectName,"",0);
            else
                tbl.GetErrorErrStr(ErrStr);
                fprintf(file,"Error: %s\n",ErrStr);
                break;
            ProjectArrCnt++;
            //MessageBox(NULL, "While", "WIN API Test",0);
            tbl.MoveNext();
        //MessageBox(NULL, ProjectInfo[i].ProjectName.c_str(),"f Name", 0);
        ::CoUninitialize();
        //sprintf(buf,"%s",file);
        //MessageBox(NULL,buf,"File",0);
        fprintf(file, "Connection closed\n");
        fclose(file);
        for(i=0;i<ProjectArrCnt;i++)
            sprintf(buf,"%i",ProjectInfo[i].ProjectID);
            //MessageBox(NULL,buf,"Proj ID",0);
            //MessageBox(NULL,ProjectInfo[i].ProjectName.c_str(),"Project Name",0);
        return 0;
    In the above code im geeting project D which is an integer value. But not able to get the project name.
    Please some one guide me.

    As I said in the other thread, this really isn't the place to ask questions about a database API unrelated to the Illustrator SDK. You're far more like to find people familliar with your problem on a forum that is dedicated to answering those kinds of questions instead.

  • Cannot get all updates from iTunes software

    Hello. There is a strange problem.
    Sometimes, when I open iTunes from my computer, a small number will be displayed after "Apps".
    When I click the "Apps", I can also see that there are some updates available from the bottom link text.
    But after I click that bottom link, I cannot get all programs which need to be update listed. When I update all listed, iTunes still says there are some apps to be updated, but when I click that bottom link, only a text "No updates are currently available. To check for updates for another Apple ID, sign in with that Apple ID."
    At that time, I can get all updates from my iPhone - Apple Store. So all have to do, is update all apps from my iPhone and sync it back. But if some apps are not installed on this iPhone, I have no way to update it.
    BTW, I've tried to click Store - Check for available downloads from iTunes on my computer. It's useless in this case.
    Any solution? Thanks.

    It think its a bug. I got the same results under MX 7.0.2.
    The topic of maxrows recently came up on another thread. I
    did some searching and according to TechNote 18339 there was a
    change with maxrow
    "<cfquery maxrows=N> bug. ColdFusion MX (until ColdFusion
    MX 7.0.1 CHF2) didn't pass maxrows to the underlying driver
    (statement.setMaxRows())"
    Given the results you're getting, it sounds like CF is
    applying the maxrow to all of the resultsets, not just the one
    where maxrows was declared. I suspect cfstoredproc's usage of
    statement.setMaxRows() is incorrect. Thats just a guess though.
    Bottom line, I think you'll need handle it manually.
    Personally, I would recommend placing the row count logic in the
    stored procedure (if possible). The overall results will be more
    consistent and you won't have to worry about this kind of issue
    again.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000314.htm
    http://www.remotesynthesis.com/blog/index.cfm/2006/3/23/Maxrows-Issue-in-CFQuery

  • Have a error in getting the values from database randomly

    Hi to all
    I am new member to this community and new to java programming, i am the one of them who got benefited through this site , with that hope i am asking u to clear my doubt.
    Actually i want to get the data from database randomly, i dont have problem either in database connection and generating random number,its working fine. but when i have to get the data from database with generated random no using absolute function , i am getting an exception
    eg : rs.absolute(2);
    i could not move to the second row of my result set.
    not only absolute function whatever the function i am using except next method, getting exception.
    my code :
    package practical;
    import java.util.*;
    import java.sql.*;
    public class gen {
         Connection con;
         Statement s;
         ResultSet rs;
         public void get(int t)
              try
                   rs.absolute(t);
                   String question=rs.getString("question");
                   System.out.println("Random question : "+question);
              catch(Exception e)
                   System.out.println("get error");
         public void ran()
              Random r=new Random();
                   for(int i=0;i<10;i++)
                        int j=r.nextInt(10);
                        System.out.println("random value : "+j);
                        if(j!=0)
                             try
                                  get(j);
                             catch(Exception e)
                                  System.out.println("ran error");
         public void connect()
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con=DriverManager.getConnection("jdbc:odbc:ds","sa","server");
                   s=con.createStatement();
                   rs=s.executeQuery("select question from qa");
                   ran();
                   con.close();
              catch(Exception e)
                   System.out.println("error");
         public static void main(String... strins)
              new gen().connect();
    }

    but i acheived through the code which is pasted below but i have to close the database connection for every iteration.
    package practical;
    import java.util.*;
    import java.sql.*;
    public class gen {
         Connection con;
         Statement s;
         ResultSet rs;
         public void get(int t)
              int c=0;
              while(c!=t)
                   try
                   rs.next();
                   c++;
                   catch(Exception e)
                        System.out.println("next error");
              if(c==t)
              {     try
                        String question=rs.getString("question");
                        System.out.println("Random question : "+question);
                   catch(Exception e)
                        System.out.println("iteration error");
         public void ran()
              Random r=new Random();
                   int j=r.nextInt(10);
                   System.out.println("random value : "+j);
                   if(j!=0)
                        try
                             get(j);
                        catch(Exception e)
                             System.out.println("ran error");
         public void connect()
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con=DriverManager.getConnection("jdbc:odbc:ds","sa","server");
                   s=con.createStatement();
                   rs=s.executeQuery("select question from qa");
                   ran();
                   con.close();
              catch(Exception e)
                   System.out.println("error");
         public static void main(String... strins)
              for(int i=0;i<10;i++)
                   new gen().connect();
    }

  • If I reinstall my FCE 3.5 from the original discs, will I be able to get the updates from Apple?

    System has begun crashing (dropping-windowshade, message to shut down computer) during attempted capture or render.  Hardware has been checked out and is OK.  Other OS functions seem to be working.  I have a bootable clone from the most recent period of good function, and also my original install disc for FCE. 
    If I need to try reinstalling FCE, are the updates still available from Apple?
    If I can't restore FCE 3.5, is there anything I can use with my OS 4.11 MBP that will be able to access my FCE 3.5 project files?  My 3+TB of underwater clips, stored on external drives as QT movies? 
    Any guidance appreciated.  This forum helped me out a lot when I first started - didn't expect the end to come so soon & hope there's a feasible workaround!
    Thanks,
    Sharron S.

    If I reinstall my FCE 3.5 from the original discs, will I be able to get the updates from Apple?
    Yes, via Software Update
    Here is an article on how to Uninstall FCE HD  You could also use  FCS Remover (note there are different versions depending on what version of OS X you have - be sure to select the correct version)
    If I can't restore FCE 3.5, is there anything I can use with my OS 4.11 MBP that will be able to access my FCE 3.5 project files?
    - FCE project files - only usable with FCE or FCP.  Not iMovie or FCP-X
    - All your clips, however, can be used with almost anything including iMovie, FCP, FCP-X, QuickTime, etc.

  • After getting an update from 10.6.8 many of my programs were no longer able to open. How can I undo the update or solve this problem another way?

    After getting an update from 10.6.8 many of my programs were no longer able to open. How can I undo the update or solve this problem another way?

    Do you have a bootable clone from prior to the update? If so, roll back with that.
    Are your apps that won't open PPC and do they need Rosetta? Do you need to activate Rosetta?
    Have you considered reinstalling 10.6 from your install disc and then coming forward with the 10.6.8 Combo Updater, then doing software update and not including whatever it was you installed that caused this propblem?
    By the way - what update was it that caused this problem?

  • Unchecking automatic updates from App Store

    Hi
    Having heard the problems with 10.1.3, and tho it's too late, it's not too late for the next updates: How do I uncheck automatic updates from App Store?
    I've looked and don't see where or how.
    best
    elmer

    System Preferences>App Store

  • How Do You Filter, Or Stop Automatic Updates From Windows or HP to a Windows 8, 2000 Notebook PC.

    I would like to know how I can see automatic updates from Windows or HP before they go into my computer?  The reason is, is that these auto updates mess up my IE and my printer software.  I have a HP 2000 Notebook PC, Windows 8, 64 bit.  I would like to be able to filter or see these updates before they go in my computer.  Is there anything I can do, or a setting I can set?
    Thanks,
    Susie

    Hi Mikipups,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP 2000 Notebook and issues  Microsoft updates. Here is a fix from Microsoft.
    Type Update in the Start Menu search box, select Windows Update from the top of the menu and in Windows Update select Change Settings on the left side of the window.
    Hope this helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Getting image path from database( Remote server)  & display in jsp page

    hai frnds,
    i have one doudt regarding in my web application Development
    . I want to Getting image path from database( **Remote server**) & display in jsp page here iam forwarding my control through Servlets
    how this will passiable
    Thanks in Advance
    SonyKamesh
    [email protected]

    hai
    I think ur doubt will be...
    1) Getting a Image From Remote Server( & U stored a only path name in Data Base)
    2) Image r stroed in saparate Drive( Not in Webroot-- where u Created domine )
    Please Any Help Will be Appriciated
    [email protected]
    Edited by: Sonykamesha on Dec 18, 2007 11:02 PM

  • Windows 2012 r2 not able to get windows updates from WSUS 2012 r2

    One of our windows 2012 R2 server is not getting windows updates from WSUS 2012 R2 but other 2012 R2 are getting updates.
    I found on windowsupdate log on the server saying "WARNING: Failed to get Network Cost info from NLM, assuming network is NOT metered, error = 0x80240037"
    Not sure what is the issue.

    I believe the warning isn't really relevant in this case. Could you post a recent section from the windowsupdate.log from that machine?
    0x80240037 WU_E_NOT_SUPPORTED The functionality for the operation is not supported.

  • How to get automatic updates for P750 custom build

    I recently purchased a custom built P750 and want to sign up for automatic updates. There is no option for just a P750 which is my complete model number.
    8GB ram
    I7 2.20GHz
    Windows HP SP1 with all updates installed at this time.
    How can I get automatic updates for this machine and operating system and if so, how do I get signed up for those?
    Should I just choose a model number and pretend it is the model I have? Which number should I choose?
    Jon
    Solved!
    Go to Solution.

    Satellite P750 (PSAY3U-0RF03H)
    All computers in the same part-number family (PSAY3U) are essentially the same. The drivers and utilities for this one should work.
    Satellite P750-BT4G22 (PSAY3U-08703H)
    So go here.
    Hmm. Not many there. So let's go to the equivalent part-number family in Europe (PSAY3E).
    Get those here.
    Lots of ways to wiggle.
    -Jerry

  • I made a new apple id and after that i cant get my updates from my iTunes on my pc. How can I do to get it back

    I made a new apple id and after that i cant get my updates from my iTunes on my pc. How can I do to get it back

    Sign out from the new Apple ID with iTunes on your computer and sign in with your old iTunes account with iTunes.

  • I'm having problems getting my updates from the App Store. Nothing is showing up.

    I can't get my updates from the App Store . The screen is completely blank . Anyone have a solution ?

    The update server is down; try this temporary workaround
    App Store>Purchased>Select "All"
    Note: Look out for apps that have the word "Update"
    http://i1224.photobucket.com/albums/ee374/Diavonex/9c256282736869f322d4b3071bbb2 a82_zps51a6f546.jpg

Maybe you are looking for

  • Mac Mini DVI Monitor Problems

    Hi all, I'm running OSX10.8.5 on a Mac Mini 2.5 GHz Intel Core i5 with 4 GB 1600 MHz DDR3 memory and Intel HD 4000 512MB graphics. I've just upgraded my monitor from a VGA 17" to an AOC E2462VWH 24" monitor, plugged into my computer via DVI with a Th

  • Daily Outgoing Payment Report

    Hello, We have a Query shown below that allows us to view Incoming payments made each day to an invoice. SELECT T2.CardCode [BP Acct#], T2.CardName [BP Company Name], T2.DocNum [Invoice #], T1.DocDate [Receipt Date], T2.DocTotal [Invoice Sum], T0.Dcn

  • Unable to post cancellation invoice into accounting

    HI Gurus, In STO scenario, the billing document has created with the freight value 500 USD and later we want to change the freight value so we created the cancellation invoice with referene to the above billing document.But in cancellation invoice th

  • Quicktime Pro Really Slow to Load Movies

    Hi, Anyone have any idea why after getting Quicktime pro it is so slow to load movies? I have an iMac with 2Gigs of Ram, less than a year old... I read about the disk permissions thing, but it doesn't seem to have helped... Thanks in advance!

  • My iphone is disabled and itunes is asking password i don't remember it

    my iphone is disabled and itunes is asking password and i don't remember it