Opinion of creating s/w for using JDBC

Hi,
Can anyone pls give opinion regarding this case.
I plan to create a JDBC s/w which is used to connect to linux server.The Database that i m going to use is mySQL for storage and use red hat linux 9.0 for client platform.
My questions are :
1) I have to install the JDBC s/w in three different places and insert or retrieve data from DB(DB is placed in another place).What kind of JDBC s/w should i create?Is it just create normal JDBC s/w and set URL in Properties file in order to connect to DB?
2) What is the different between J2SE(in writing s/w) and J2EE?
3) Can i use J2SE to write this s/w?If no,pls give some opinion.
4) What are the possibilities/better ideas(including technologies that i use) that i can do in order to implement this client/server system?
Thanks in advance for replying this message.
Regards,
marcalena

Hi duffymo,
I appreciate for your opinions.
Yes i agree with your ideas/opinion.Three app need to update immediate to centralize DB in order to update latest information.I know the important of this.
Can i do it in this way?
Three app is connected to Internet,but i am not going to create app in JSP/Servlet,since i am not that familiar with those technologies.
My idea of creating these 3 app are instead of using JSP/Servlet i create app by using J2SE technologies.Yes they will be connected to Internet,for certain purposes(for instance update latest information to centralize DB) i would use java.net package which set URL that could point to centralize DB and update/retrieve information instead of using JSP/Servlet).Then the rest of the features which are provided by app i will make it offline(features that are used within a branch,besides of updating latest information to centralize DB).
So the scenario will be:
Each app does its own jobs offline(like calculation,make reservation and etc),but when app needs to update/retrieve latest
information,i would use java.net to fulfill the purposes.
My question are:
1) Is my idea good enough to make app work?If no,that means i really need to use JSP/Servlet to accomplish those tasks,can you give me ideas of creating app(overall picture of network architecture,and the ways of how they are interacted).
Thanks in advance for duffymo.
Regards,
marcalena

Similar Messages

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • Can 10G express be used to create an application for use with a 10G instanc

    Hi
    Can 10G express be used to create an application for use with a 10G instance? I am new to Oracle 10G. I like the interface for creating applications, maintaining users, etc. Can this tool be pointed at a regular instance of 10G so that applications can be created against a regular 10G database not the express database?
    Can PL/SQL proceedures that are created in 10G express also be migrated to a 10G database?
    Thanks in advance
    Dean-O

    Can 10G express be used to create an application for use with a 10G instance?Yeah, that's the whole point from a marketing perspective ;)
    Can this tool be pointed at a regular instance of 10G so that applications can be
    created against a regular 10G database not the express database?Yes but it's a different version. Check out:
    http://www.oracle.com/technology/products/database/application_express/index.html
    Can PL/SQL proceedures that are created in 10G express also be migrated to a 10G database?Yes they can!
    ~Jer

  • How to create SDA file for using AXIS Framework in the SOAP Adapter

    Hi experts,
    I have the following question:
    How I can create the SDA file aii_af_axisprovider.sda for using the AXIS Framework in the SOAP Adpater described in http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm ?
    I have downloaded the files axis.jar, commons-discovery-0.2.jar, commons-logging-1.0.4.jar, commons-net-1.0.0-dev.jar and wsdl4j-1.5.1.jar. But how to create the SDA file aii_af_axisprovider.sda? Which tool I have to use for this? It is enough to compress these 5 jar-files in the sda file or need I further files with further information (meta information etc.)?
    Thanks and best regards
    Christopher

    Hi Christopher,
        Check this discussion if you have not checked already.
    Re: NTLM Authentication dosent work with XI ?
    Regards,
    Ravi

  • How to create a BOM for use in purchasing

    Hello Experts
    We are a University, and I have been asked to create something similar to a bill of material for using on a purchase order.
    We purchase light bulbs from a supplier, but each bulb also incurs a 15p disposal charge and this charge has to be shown as a separate line item on the purchase order.  So we want to create a material that when used pulls through an additional line for the disposal charge.  Also the light bulbs are held in stock and are issued out to departments, therefore the cost of the light bulb and disposal charge must be charged out too.
    Thanks

    HI,
    Bills of material are best used when there are components that are relevant. They CAN be used for things like you mention here but I am not sure that it will help your business requirements.
    I would suggest that you consider adding the charge as a new pricing condition.
    That way the total cost of the item will be the price plus the disposal charge. If you use a separate line on the PO the cost of the disposal will not be connected to the cost of the bulb and so when you issue any they will use the cost without the disposal charge.
    SO I would create an info record and enter the details of the price and then add in a surcharge condition type (for the disposal cost).
    That ay whenever you order these bulbs from this vendor, the system will propose the cost including the disposal cost.
    Steve B

  • Create a Task, for use in "Deferred Task"

    I am in the processing of creating Deferred Tasks for my Update-User workflow.
    I know how to create these easily. My problem is : the actual "Task" itself, which will be called upon from the Workflow.
    I don't know the proper syntax for it.
    For instance, below is the code I am using for my "Send Email Task". This task is supposed to send an automatic email notification.
    *<?xml version='1.0' encoding='UTF-8'?>*
    *<!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>*
    *<!-- MemberObjectGroups="#ID#Top" authType="UserAdminTask" createDate="Thu Jul 16 15:22:08 EEST 2009" extensionClass="WFProcess" name="Send Email Task" visibility="invisible"-->*
    *<TaskDefinition name='Send Email Task' creator='%STARTUP%Configurator' createDate='1247746928617' lastModifier='%STARTUP%Configurator' lastModDate='1247746928617' repoMod='1247746928170' primaryObjectClass='TaskDefinition' wstype='ProvisioningTask' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='3600' resultOption='delete' visibility='invisible' progressInterval='0'>*
    *<Extension>*
    *<WFProcess maxSteps='0' audit='true'>*
    *<Variable name='user' input='true'>*
    *<Comments>&#xA; A user view. This is required.&#xA; </Comments>*
    *</Variable>*
    *<Variable name='backgroundProvisioning' input='true'>*
    *</Variable>*
    *<Variable name='provisioningRetryButton' value='true' input='true'>*
    *<Comments>&#xA; Set to "true" to enable the inclusion of a Retry link&#xA; in the task result if the provisioning fails.&#xA; </Comments>*
    *</Variable>*
    *<Variable name='approvals'>*
    *<Comments>&#xA; Returned from the Lighthouse Approval process. Contains the&#xA; approval structure. The approvals.approved variable set if&#xA; all approvals were successful. This is passed into the Notify&#xA; process later for post-provisioning notifications.&#xA; </Comments>*
    *</Variable>*
    *<Variable name='userCreated'>*
    *<Comments>&#xA; Set to "true" from the Provision workflow when the&#xA; Lighthouse account has been created.&#xA; </Comments>*
    *</Variable>*
    *<Variable name='sunset'>*
    *<Comments>&#xA; Object containing information for registering a sunset date/time.&#xA; </Comments>*
    *</Variable>*
    *<Variable name='error'>*
    *<Comments>Set in the event of unusual processing errors.</Comments>*
    *</Variable>*
    *<Variable name='options'>*
    *<Comments>Options to pass to the provisioning task regarding resource&#xA; provisioning.&#xA; </Comments>*
    *</Variable>*
    *<Transition to='end'>*
    *<Comments>&#xA; Terminate if we encounter unusual errors (not provisioning errors).&#xA; </Comments>*
    *<ref>error</ref>*
    *</Transition>*
    *<Activity id='0' name='start'>*
    *<Transition to='Notify'/>*
    *</Activity>*
    *<Activity id='1' name='Notify'>*
    *<Action id='0' name='Email' application='com.waveset.provision.WorkflowServices'>*
    *<Argument name='op' value='notify'/>*
    *<Argument name='template' value='Send Email Now'/>*
    *</Action>*
    *<Transition to='End'/>*
    *</Activity>*
    *<Activity id='2' name='end'>*
    *<WorkflowEditor x='428' y='275'/>*
    *</Activity>*
    *</WFProcess>*
    *</Extension>*
    *<MemberObjectGroups>*
    *<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>*
    *</MemberObjectGroups>*
    *</TaskDefinition>*
    I am not sure if my syntax is correct?
    Any tips?

    Thanks again, sbalu.
    I may have found the error (although, I don't understand what it means).
    Something about *"Missing View"*
    Catalog#format() Entry locale=null, key=SES_WORKITEM_MISSING_VIEW, defVal=SES_WORKITEM_MISSING_VIEW
    20091126 08:28:22.701 TaskThread(0x0052fecf) Catalog#format() Info parameters=null
    20091126 08:28:22.701 TaskThread(0x0052fecf) Catalog#format() Info tmp=null
    20091126 08:28:22.701 TaskThread(0x0052fecf) Catalog#format() Info pattern=Missing view id.
    20091126 08:28:22.701 TaskThread(0x0052fecf) Catalog#format() Info msg=Missing view id.
    20091126 08:28:22.701 TaskThread(0x0052fecf) Catalog#format() Exit returned= Missing view id.
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#addTaskResult() Entry name=Send Email Task, ti=TaskInstance:Send Email Task tdalton
    20091126 08:28:23.092 TaskThread(0x0052fecf) Catalog#format() Entry locale=null, key=SES_WORKITEM_MISSING_VIEW, defVal=SES_WORKITEM_MISSING_VIEW
    20091126 08:28:23.092 TaskThread(0x0052fecf) Catalog#format() Info parameters=null
    20091126 08:28:23.092 TaskThread(0x0052fecf) Catalog#format() Info tmp=null
    20091126 08:28:23.092 TaskThread(0x0052fecf) Catalog#format() Info pattern=Missing view id.
    20091126 08:28:23.092 TaskThread(0x0052fecf) Catalog#format() Info msg=Missing view id.
    20091126 08:28:23.092 TaskThread(0x0052fecf) Catalog#format() Exit returned= Missing view id.
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#addTaskResult() Exit void
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#launchTask() Data executeOnce= false
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#launchTask() Exit returned= false
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Exit returned= false
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#endObject() Entry no args
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#endObject() Exit void
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#processObject() Exit returned= false
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#processDeferredTasks() Data idOrName== #ID#6BF7-:B3702F65421:491FD113-:D0E4376B71977D1D
    20091126 08:28:23.092 TaskThread(0x0052fecf) DeferredScanner#processDeferredTasks() Data nameOrId== ukaila
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processDeferredTasks() Data object lastMod= 24
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processObject() Entry obj=User:ukaila
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processObject() Data tasks= [ { accountId=ukaila, task=Send Email Task, name=Send Email Task, date=11/25/2009 11:15:00 } ]
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processObject() Data task list object= { accountId=ukaila, task=Send Email Task, name=Send Email Task, date=11/25/2009 11:15:00 }
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Entry obj=User:ukaila, trig={ accountId=ukaila, task=Send Email Task, name=Send Email Task, date=11/25/2009 11:15:00 }
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Data start= 11/25/09 11:15 AM
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Data _now= 11/26/09 8:28 AM
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Data task definition= CSC Send Email Task
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#startObject() Entry obj=User:ukaila
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#startObject() Entry type=User, nameOrId=ukaila
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#startObject() Exit void
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#startObject() Exit void
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Data task template= null
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Data task definition= TaskDefinition:Send Email Task
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#processTrigger() Data task template= TaskTemplate:null
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#launchTask() Entry obj=User:ukaila, trig={ accountId=ukaila, task=Send Email Task, name=Send Email Task, date=11/25/2009 11:15:00 }, tt=TaskTemplate:null
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#launchTask() Data taskName= null
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#launchTask() Data generated taskName= Send Email Task ukaila
    20091126 08:28:23.123 TaskThread(0x0052fecf) TaskTemplate#setTaskName(String) Entry no args
    20091126 08:28:23.123 TaskThread(0x0052fecf) TaskTemplate#setTaskName(String) Exit void
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#launchTask() Data orgName= null
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#launchTask() Data owner= null
    20091126 08:28:23.123 TaskThread(0x0052fecf) DeferredScanner#launchTask() Data subjectLength= 29,650
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#create(Element) Entry element=[Map: null]
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Entry element=[Map: null]
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info elname=Map
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info classAtt=null
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info classAtt=null
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info regName=Map
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Exit returned= com.waveset.util.XmlObjectFactory$Registration@1edf84f
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#create(Element) Info handler=com.waveset.util.XmlHashMap@493dca
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#create(Element) Entry element=[Locale: null]
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Entry element=[Locale: null]
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info elname=Locale
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info classAtt=null
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info classAtt=null
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Info regName=Locale
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#getConstructor() Exit returned= com.waveset.util.XmlObjectFactory$Registration@77a748
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#create(Element) Info handler=com.waveset.util.XmlLocale@1876e5d
    20091126 08:28:23.123 TaskThread(0x0052fecf) XmlObjectFactory#create(Element) Exit returned= en_US

  • My software can not create with thinapp for use in workspace

    i have problem appear  this error when i am create a software with thinapp for workspace for all of them i get this error when click on save
    Could not copy file C:\Users\Administrator\NTUSER.DAT -> C:\Program Files (x86)\VMware\VMware ThinApp\Captures\GOM\%drive_C%\Users\Administrator\NTUSER.DAT
    Could not copy file C:\Users\Administrator\ntuser.dat.LOG1 -> C:\Program Files (x86)\VMware\VMware ThinApp\Captures\GOM\%drive_C%\Users\Administrator\ntuser.dat.LOG1
    i have login with admin domain user (Administrator) now what is the problem ?  i have attached error appear this error for most of spftware that i want to create with thinapp and can not sync any of these software in workspace
    Best regards
    babak

    thanks
    i readed that post but it was not usefull i do all of these steps on the other host and it work fine just on the other host my os is windows server 2008 r2 but on that machine which get eror my os is server 2008 r2 sp1
    i think it is not very important
    in addition when we create a software for workspcae with thinapp it have to create 4 files .dat , .alt , .msi , .exe  but here when get error just create 3 file  .alt can not create

  • HELP:Problem in creating a temporary CLOB using JDBC connection pooling

    Hi All,
    i am inserting a large xml document in an xml type column by creating a temporary clob of this document
    tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
    I am not having any success getting the following statement working using a JDBC connection pool rather than a hard coded URL connection
    it works with:
    "jdbc:oracle:thin:@server:port:dbname" connection
    Does NOT work with:
    datasource.getConnection()
    Does any one know how to successfully get this to work?
    urgently plz........

    Hi Dharmi
    Here is a quote of Dafna's post in [another thread in this forum|Re: Copy VC controls]
    CE7.1.1 will be released at September 2008 for ramp-up customers.
    There are many improvements and new capabilities in the new release of Visual Composer for CE7.1.1. Among the new features you can find:
    The missing features from Visual Composer 7.0 (Html view, portal Eventing support (EPCM), JDBC, Undo/Redo, and more..)
    Many layout & modeling improvements
    Additional ALV table functionality - export to Excel, switch to chart, configure ALV behavior at design time
    Integration of Visual Composer in Eclipse - additional entry point to the Visual Composer models from the NWDS. This integration provides the option to add a WD component (in case of missing functionality in Visual Composer), as a black box component to the Visual Composer model. Right-clicking the component will open the Web Dynpro perspective for creating/modifying the component.
    Regards,
       Shai

  • Creating a GUI for use on an Ethernet Network

    I'm designing a data logger to log voltage, current and temperature data on a reserve battery string while it's being charged. The logger will have the capability to be viewed remotely via Ethernet. With that said, I'd like some advice regarding the GUI for the remote PC which will be used to view the logger. Will it be easier to create the GUI using LabView or another high-level language  (Java, C++ etc)? (Note: I have some programming experience in C (though I've never written/created a GUI) and I've never used LabView).
    Solved!
    Go to Solution.

    Hi Joe1373.  In general, for a small one-off project, I would suggest you go with a language you know.
    In this case it sounds like whatever you choose you will have a learning curve, so I would recommend
    LabVIEW if that is a possibility cost-wise.  LV has a lot of built-in support for GUI development so
    you can make realtively sophisticated GUIs without a whole lot of work/learning.
    There are time-limited evaluation versions of LV available for download.  I would take a look there, especially
    the examples.  Find something a little similar to what you want to do, then change the GUI on the 
    example to more closely match your ultimate objective to get a feel for the GUI development in LV.
    This forum is a great resource with some very helpful developers, so come back with questions.
    There are also many professional developers available to assist if you have a budget or inclination
    towards that direction.
    Matt

  • Creating interactive quizzes for use in InDesign CS6 DPS ebooks

    Hi
    Are there any Adobe products that I can use to create interactive quizzes that I can just drop into InDesign when producing ebook apps using the DPS. We’ve tried creating the quizzes in Adobe Presenter and Captivate, but couldn’t get the output to work in InDesign.
    Ideally, I'm looking for a quiz generator that has a choice of question types and a input interface to enter the question details, much like that found in Adobe Presenter.
    Any suggestions would be welcome.
    Thanks

    Neil,
    I'm not a Captivate user but I downloaded the trial version, built a simple quiz and published it as per James’s instructions.  I unchecked the box so that the timeline isn’t shown during the quiz.  Since I’m not really familiar with Captivate, this might seem like a stupid question. Is there a way of not showing the initial screen with the play button and timeline at the bottom, so that the user would just see the first slide of the quiz in the publication?  I also see the timeline on the Results slide.  Can I turn that off?  Or should I be posting this question on the Captivate forum?!
    Thanks,
    John

  • Is there an easy way to create simple forms for use in iweb?

    or a template?
    I need to create a reply form on the site I am working on.
    thanks

    After a few days of working on this issue the tutorial is updated to make the form be sent from within the webpage with extra form additions available as well!
    The form is fully customizable for background color or image background, there's no ads or service to sign up for, all you have to do is copy and paste a code into your html and enable cgi and/or php on your host with some additional small tweeks here and there to put it all together. Basically it's the do it yourself way.
    *The form on the tutorial link provided still opens the Email app when the form is submitted but we have tested this method on our other sites using the same procedures mentioned with successful results.

  • How to create a dialog for use by an Excel AddIn?

    I know the basics of Excel AddIns, but have no idea how to design, implement and later display an internal dialog.
    The "Smart Quote Paste" function below is done, and it does not need any parameters. The function corresponding to the "New Project" button, however, needs to create a number of spreadsheets, provided by the user.
    TIA.

    Hello Travis,
    For example:
    const string message =
    "Are you sure that you would like to close the form?";
    const string caption = "Form Closing";
    var result = MessageBox.Show(message, caption,
    MessageBoxButtons.YesNo,
    MessageBoxIcon.Question);
    // If the no button was pressed ...
    if (result == DialogResult.No)
    // cancel the closure of the form.
    e.Cancel = true;
    If you want to customize it on your own, you can add a new Windows Form to the project and then add the required controls. After creating an instance of the form in the code you may show it using the Show or ShowDialog methods.

  • Required jar files for using jdbc adapter

    Hi all,
    I have an XI scenario in which i need to send a msg from XI to Oracle 8.0 server.
    For this i am using the JDBC adapter.
    Can anybody pls tell me which are the jar files needed for doing so.
    Thanks in advance.
    Regards
    Neetu

    Neetu,
    You will need to deploy the classes.zip file using the SDM. More details on how to configure the JDBC adapter can be found at
    How to Install and Configure JDBC adapter
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10

  • Do i need a web server for using JDBC?

    I read every article about jdbc but i cannot get it working. It looks like everything is good with the program. So the problem is in required components.
    Do i need a web server to get it woking? Or it is enough to have Eclipse, jdbc driver in classpath?
    Tell me about how that url is working.
    For example i have url with localhost. Who is handling that adress? Database? Can you explain what component answers for access to my database through this url parameter. THnx in advance)

    I am using PostgreSQL
    import java.sql.*;
    public class JDBCTest {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
               String url = "jdbc:posgresql://localhost:5432/postgres";
                   Connection con;
                   Statement stmt;
                   try {
                        Class.forName("org.postgresql.Driver");
                   } catch(java.lang.ClassNotFoundException e) {
                        System.err.print("ClassNotFoundException: ");
                        System.err.println(e.getMessage());
                   try {
                        con = DriverManager.getConnection(url,
                                                      "postgres", "1111");
                        stmt = con.createStatement();
                        con.setAutoCommit(false);
                        /*String insertStore1 = "INSERT INTO test1 VALUES (" +
                          "newval,1);";
                        stmt.addBatch(insertStore1)
                        int [] updateCounts = stmt.executeBatch(); */
                     ResultSet rs = stmt.executeQuery("SELECT * FROM test1");
                        System.out.println("Table test1:");
                        while (rs.next()) {
                             int storeNo = rs.getInt("second_column");
                             String first_column = rs.getString("first_column");          
                             System.out.println(storeNo);
                             System.out.println(first_column);
                        rs.close();
                        stmt.close();
                        con.close();
                   } catch(BatchUpdateException b) {
                        System.err.println("-----BatchUpdateException-----");
                        System.err.println("SQLState:  " + b.getSQLState());
                        System.err.println("Message:  " + b.getMessage());
                        System.err.println("Vendor:  " + b.getErrorCode());
                        System.err.print("Update counts:  ");
                        int [] updateCounts = b.getUpdateCounts();
                        for (int i = 0; i < updateCounts.length; i++) {
                             System.err.print(updateCounts[i] + "   ");
                        System.err.println("");
                   } catch(SQLException ex) {
                        System.err.println("SQLException: " + ex.getMessage());
                        System.err.println("SQLState:  " + ex.getSQLState());
                        System.err.println("Message:  " + ex.getMessage());
                        System.err.println("Vendor:  " + ex.getErrorCode());
    }1 ) Also i have installed PostgreSQL 8.2 , and its running in my services as "PostgreSQL Database Server (postmaster)"
    2) I included postgresql-8.2-505.jdbc3.jar into classpasth from eclipse (added it as external library)
    3) I have added tcpip_socket = 1 to postgresql.conf
    4) I have
    # IPv4 local connections:
    host all all 127.0.0.1/32 trust
    host all all localhost/32 trust
    # IPv6 local connections:
    #host all all ::1/128 md5
    in my pg_hba.conf
    ==========================
    Finally
    And i get error: no suitable sql driver
    but i don't get System.err.print("ClassNotFoundException: "); as you can see in my code means my classpath is correct...

  • Creating Plugin Modules for Use with Compiled Code

    Hi all,
    While programing a data analysis package in Labview, I've run into a problem that I don't really know how to answer.  It goes something like this: my program receives data from measurement devices in the form of ASCII or binary files, which I must then process and evaluate.  The problem is, the data files can have a variety of different formats.  Right now, I only know of 4 or 5, but more could literally be added at any time.
    My thought is this: I'd love to have some sort of modular plugins for reading the data files.  In other words, I could have a subfolder under my application's space in the "Program Files" directory.  The subfolder would contain any number of "ReadFileX.xxx" modules.  Upon initiation, my code would scan that folder, determine the possible formats (based on the *.xxx files therein), and be capable of reading any of the files.  Ideally, the user would select a file, I would note its format, and call the appropriate plugin module to handle reading the data into my code.
    What is the best approach for doing something like this?  I looked (briefly) into using DLL's, but (from what I can tell) I would need to explicitly define the function name and the inputs / outputs in the "Call Library Node" function.  This would appear the break the modularity feature, as I want to be able to load the software, and then develop new plugins down the road when the need arises.  I also found some information on source distributions (in an LLB).  This option would probably work, but my efforts at coding a basic test of VI-Server were met with errors.
    Does anyone have any experience performing a similar task?  If so, would you share your knowledge / secrets with me?  I would be extremely grateful for your feedback.
    Thanks!
    Mark

    Mark - there is a Coding Challenge currently going on, and I have submitted an entry that shows how to dynamically instantiate a class based on a class that resides on disk. Specifically, you're going to be interested in "Get LV Class Default Value.vi" under the "Cluster, Class, and Variant" palette that allows you to create an instance of an object based on the path of the .lvclass file. The class you load is going to be what's called a child class of a parent class (or base class), where the child class implementation overrides the function of the parent class. The "Get LV Class Default Value.vi" is very loosely analogous a Class Constructor.
    You can deploy your application having implemented all the base class functions, then subsequently develop and deploy new classes to reside in a "plugins" folder without needing to change the original app code.
    If you find that contest entry helpful, consider dropping a vote, huh? The LabVIEW Communities have had access errors sporadically the past few weeks, so if you get a "Server Error" you may need to try again later. There's also going to be Forums maintenance today and tomorrow.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

Maybe you are looking for

  • REPORT FOR MATERIAL MASTER

    HOW TO write a report in Material Master that outputs Material valuated stock grouped by Material type and Plant. The output shows Material Number, Storage Location and Unit of Measure and description in addition to group totals.

  • Import failed in Con System

    Hello everybody, I did some development using the NWDS (JDI installed). After i have checked in my application / activated it and released it it was shown in the import queue at the Consolidation Tab of the CMS application. So far everything worked g

  • Compressor 4.1.2 BluRay Encoded File is too big - Help!

    I just encode a 4 hours of HD footage using compressor's Bluray output (H.264 Video & AC3 Audio).  It took near 10 hours of seemingly wasted time.  I am working with 25g blurry discs and the H.264 File Size is 27.71 gigs.  So now I need to re-encode.

  • Cheap and worthless photo.app program

    How?! How it was possible on to treat the buyer so many devil-may-carely?! People, for years bought your production, kept the most high points, saved, edited and sorted the photos, and not on 1 gigabyte! How it was possible, it is simple to take and

  • Satellite A100 doesn't recognise Epson printer sx125

    Hi Hoping someone can shed some light. Got a new printer Epson sx125 but having bother installing.. My laptop (Satellite A100) will not recognise it when I insert USB. I have updated drivers etc but nothing.. I tried the printer on computer upstairs