Design/pitfall advice

HI.
First a disclaimer: I am VERY new to JAVA.
I'd like to describe to you what I have done and to ask
for general advice on style, methodology, etc..
There are two databases DB1,DB2.
There are three tables, ta,tb,tc in each DB.
where DB1.ta should = DB2.ta.
The program has three classes, one for each kind of table.
It brings down the data for each table.
The program checks the data between these sets of tables and
presents the differences to the user in modifiable Jtables.
there are one connection and 6 recordsets (one for each table)
existing at any one time.
The differences between DB1.ta and DB2.ta are presented in one JTable on its on JTabbedPanel, DB1.tb & DB2.tb are on their own, etc.
The user can see the differences and update the table of choice.
This all seems to work fine. What I am after here is any advice on style, possible pitfalls, etc.
If this sounds like a bad plan, can you describe a different approach?
thanks for your thoughts.

Hi,
You might want to post this at the JDBC forum:
http://forum.java.sun.com/forum.jspa?forumID=48

Similar Messages

  • Designer Install Advice Needed

    Hi,
    It has been a number of years since I used designer (6years in fact) but I want to try and get back into it.
    What is the simplest way to get a working designer implementation going. I don't have any oracle database (or any other products) installed at the moment.
    I have looked at the download section and the number of different versions of designer and databases is a bit daunting - a bit of help on what versions to download, install and in what order so as I don't jump down any blind alleys.
    I have a couple of computers running XP with a GB of Ram in each and many GB of free disk space. I would prefer to run the whole thing on one box if possible.
    Any advice greatly appreciated,
    Cheers
    JP

    JP,
    I would suggest that you pick the latest version; Designer 10gR2 (10.1.2.0.2). The complete certification information for Designer is on metalink (metalink.oracle.com, click on the Certify tab), but Designer 10gR2 is certified with 10.1.0.4 and 10.2.0.1 Oracle database versions.
    If you are running Windows XP, you can install both the DB and the Designer client on the same machine (in different Oracle Homes). But with 1GB of RAM, it might be a bit slow.
    - Suresh

  • SCCM 2012 Design Consideration / Advice

    I have been tasked with a SCCM 2012 Design.  We will be starting a fresh so I want to get this design right the first time and looking to you all on advice / Considerations I need to look at.  Any help/feedback is appreciated.
    Company Layout:
    1 Main Office (Corporate Headquarters)
    15+ Remote Locations with T1 Connections back to Main Office
    3 Remote Locations with 100MB Connection to Main Office
    2 Remote Locations with 10MB Connection to Main Office
    2 Remote Locations with T3 Connections back to Main Office
    300+ Remote Sales Rep (Work From home, coffee shops, etc...)
    Approxamitly 3500 Clients throughout the organization
    What we want to accomplish with SCCM:
    Hardware/Software Inventory
    Computer Imaging & Users State Migration
    Deploy Packages / Applications
    Application Portal (Self Service)
    Windows/Software Updates (Even to Remote Sales Reps)
    Manage Mobile Devices
    What are your thoughts on the design?  Do we run SQL on the CAS/Primary Site Servers or do we run it on a separate server? 
    Main Office = CAS (Probably Don't need), & Primary Site, & a Distribution Point for Internet Based Clients.
    Primary Site Roles:
    Site Server
    Component Server
    SMS Provider
    Site System
    Site Database Server
    Application Catalog Web Service Point
    Application Catalog Website Point
    Distribution Point
    Management Point
    Software Update Point
    State Migration Point
    Fallback Status Point
    Remote Offices do I do all Secondary Sites or Mix and match DP or do I make some of them Primary Sites?
    Secondary Site Roles:
    Site Server
    Component Server
    SMS Provider
    Site System
    Site Database Server
    Management Point
    Distribution Point
    Software Update Service
    State Migration Point
    Fallback Status Point
    Also do you agree with the specs I am thinking for each server role?
    CAS
    8 cores (Intel Xeon 5504 or comparable CPU) 
    32 GB of RAM 
    500 GB of disk space 
    Primary
    4 cores (Intel Xeon 5140 or comparable CPU)
    16 GB of RAM
    500 GB of hard disk space 
    Secondary Site
    4 cores (Intel Xeon 5140 or comparable CPU)
    8 GB of RAM
    200 GB of hard disk space
    Distribution Points
    2 cores (Intel Xeon 5140 or comparable CPU)
    8 GB of RAM
    200 GB of hard disk space 

    Based on that you'll have a total of approx. 3500 clients in your organization I do not see the immediate requirements of secondary sites but if you have sites with approx. 500 users a secondary site is a good idea.
    IOPS is the most important thing when looking at hardware requirements for a site server due to it being SQL intensive. And it is actually only the database file storage that requires high IOPS. Due to that measuring IOPS is more of an art than science I
    cant give you any numbers but SSD drives is nice to have :)
    Based on your list of hardware I guess you've found
    http://technet.microsoft.com/en-us/library/hh846235.aspx and
    http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigClientNumbers
    As you wrote and that other has written, do not use a CAS for this scenario.
    If you can pull of some SSDs I would say something like
    120 GB non-SSD for OS (remember, that pagefile needs some room too!)
    80 GB non-SSD for Program Files
    64 GB SSD for Database's
    64 GB non-SSD for logs
    500 GB non-SSD for Content Source
    500 GB non-SSD for Content Library
    Figures above is an estimate for your Primary Site Server based on the information you've given. I can not guarantee these figures due to forum post. The point of this post is to show you where you need SSD/lots of IOPS for good performance.
    I usually recommend you to run your system as virtual machines due to the fact that you can use snapshots while performing upgrades and other maintenance tasks.
    Tim Nilimaa | Blog: http://infoworks.tv | Twitter: @timnilimaa

  • Graphic Design Software Advice

    I have an IMAC G5 with the 'as it came out of the box' software. I am looking to do some T-Shirt designs and so was after a piece of software to assist. Nothing spectacular, just images and text and so I'm hoping not to spend too much money. I am new to Apple and so don't know too much about the software. Is there something already installed on the box that I could use or can someone recommend a simple (cheap of free) piece of software?

    Even though you won't be doing the printing, it's a good idea to print the seps. before sending the file off to a printer to make sure everything is separating correctly. Unfortunately, after taking a closer look at Intaglio that I mentioned above, it doesn't look like it will print seps. And it doesn't support Pantone spot colors. So it's probably not going to work for you. Strangdogs is correct - you probably won't find a vector program or any program that does what you want it to do without spending more money than you want to spend.
    I use the Adobe CS apps at work on a G5 and also Illustrator 8 via Classic. At home, I use Illustrator 8 via Classic without problems all the time. If you check ebay, you may be able to find a cheap copy of Illustrator 8. We got 2 copies at work that way for under $80 a piece. Just make sure the person you buy it from transfers the license to you. There is a license transfer form they need to fill out.
    Eric S.

  • General Design Structure  Advice

    I'm looking for a general strategy for my current project.
    I have a Module class with several sub classes. These modules
    are connected to each other with a Connection class. And I need to
    dynamically create and destroy these connections. For now, each
    parent module contains an array of all it's child modules. Each
    instance of the Connection class contains an array of the 2 modules
    it is connecting.
    Is this the best way of going about this? or should I be
    creating a global list of all the connections and all the
    modules?

    The nice thing about this upgrade is that we are moving from a system that has less storage to a system with more storage.
    This database isn't very large, and all the files on the entire system are under 200GB in total size. The data takes probably near 60GB, while the backup space is somewhere in the 80-90GB ballpark.
    My main goal with this disk configuration is to try and achieve the highest reliability possible to prevent future failures.
    Instead of trying to micro-manage the storage I thought an area for the FRA and the rest for the data on different disks and controllers would be a good approach because it keeps space available and reduces the possibility of volume space pressure.
    If you need anything else please let me know.
    Thanks!

  • Need design pattern advice

    HI all,
    Im trying to create a single router application that routes transactions to a number of Processing applications. Both applications reside on different machines. Upon system start up of the Processing application, the router will be notified and will register this application to its local registry.
    When a transaction comes in, the router will redirect transactions to the processing applications depending on the processing applications load factor.
    Im using jgroups and ha-jdbc to help me with group notification, how ever, i would like to know the best pattern to be used on Router applicaiton and Processing application.
    Thanks in advance.

    Thanks for the reply, but routers are not capable of
    detecting the load of an application as well for the
    heart beat of the communication.
    Any thoughts?an F5 will do exactly that:
    http://www.f5.com/
    better than anything you'll ever write.
    %

  • MPLS TE Network Design - Need Advice

    Please refer to attached diagram.
    TE tunnels is configured between Site A and Site B, fully meshed.
    But I have Site C, due to geographical near to Site B , the link is connect to site B PE routers, not to P router.
    Q: To reach site A shall I just build tunnel between C to A.
    Or, I just need C to B will do ??
    Assume packet will flow from C to B tunnel, exist then via tunnel B to A to reached network in site A.
    Regards

    Hi,
    it depends on your traffic. The tunnel endpoint will use an implicit-null label (PHP). Thus site B will perform a lookup on the "A-C" traffic. In other words: there is no end-to-end LSP between A and C, which would be required for example for a MPLS L3VPN.
    Regards, Martin

  • What is the best design to connect redundant Firewalls to redundant switches?

    Hi All,
    I would like to know the best possible design to connect redundant Firewalls(Netscreen,FortiGate etc) to redundant switches.I have dealt with Cisco FWSM's in which both the Firewall and switch is in the same chassis. So for the Vlan's behind the Firewall, we just create the L3 interface on the fwsm and do a static route in the switch. The Gateway IP will be tied to the primary fwsm and the failover happens through the network. But now i need to know the best possible design when i am connecting to a different vendor firewall.
    Let's say i have 5 vlans and all these vlan's are behind the Firewall. The redundant switches will have the L2 vlan's created and have a static route to the Firewall. I am proposing the attached design in which i will have L2 vlan's created on the switch and L3 on the Firewall. The Firewall's and the switch will be connected with one trunk port and an access port for uplink and downlink traffic. The two switches will be connected each other using a vlan trunk.The two firewalls will be connected using a redundancy vlan.
    I am not so sure about the working of other firewalls such as Netscreen and FortiGate. I am also confused with the traffic path that the frames will take by having this design.Please advice if you have any suggestions.
    Appreciate your help and advice.
    regards
    dathan

    subhash007 wrote:It's not 802.3ad link aggreagated interface. In the switch side, the ports will be configured as normal access ports and the bonding config will be done on the server side.
    To be honest, I don't understand how the Linux bonding mode can work without anything configured the other end.
    My understanding of 'bonding' comes from Multilink PPP (MLP) where the data stream is chopped up and split across two (or more) circuits. At the other end, a similar MLP-enabled device reforms the data stream from the multiple circuits, maintaining packet order. But this requires MLP-enabled 'bonding' devices at each end.
    Perhaps you could help me better understand the Linux bonding...
    subhash007 wrote:If any single homed server is connected to Switch 2, what will be traffic path for its data packets?Switch 2 ------------------> Switch 1 ----------------------> Active firewall                                   ORSwitch 2 ------------------> Passive Firewall -----------> Active Firewall
    If the firewalls operate in the same fashion as Cisco ASAs, then the inter-firewall link doesn't carry traffic. It's for failover detection and HTTP replication only. But like I said, I'm not familiar with this vendor's products.
    subhash007 wrote:Also will there be any change in traffic path if the trunk between Switch 1 & Switch 2 is converted to L3 routed interface? Since there is no VRRP, i can convert the trunk to L3 right?
    Same as above.

  • SCCM 2007 Migration to SCCM 2012

    Hello,
    I read http://social.technet.microsoft.com/Forums/en-US/58ba35e5-d84e-4741-8089-624f5269a2ca/sccm-2012-design-consideration-advice?forum=configmanagergeneral&prof=required with the following notes:
    Secondary vs. DP is a subjective call based on two factors: client count and available bandwidth. More clients and/or less bandwidths means secondary site, less clients and/or more bandwidth means DP. Both use a server OS so there's really no cost difference, just some added complexity for a secondary site. Without knowing the bandwidth, no way for me to be able to say one way or the other.
    As for IBCM, correct, it's no a primary site server, it's simply a site system that typically hosts an MP, DP, and SUP. The App Catalog Website Point is also applicable.
    Are you planning on managing legacy mobile devices or Mac OSX? If not, the Enrollment Proxy Point is not needed -- it's not applicable to IBCM anyway to my knowledge.
    Also, the FSP must be on a separate site system so that clients can communicate with it via HTTP.
    I have for now two sites:
    - 25,000 Desktops on one site
    - 1,500 Servers on the second site
    in SCCM 2007 I had three sites: One Parent doing the reporting and two child sites handling the inventory, distribution, etc... (No SUP do far)
    I have on each child sites 1 DP.
    What should be changed for SCCM 2012?
    What is "More Clients" or "Less Clients" ?
    "More Bandwidth" or "Less Bandwidth"?
    Thanks,
    Dom
    System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager

    Hello Dom,
    If you have Two Primary servers you may need to plan for a CAS (Central administration site), in SCCM 2012 when you have more than one primary server you need a CAS to connect them. But remember the CAS does not
    process any client data, DPs nor MPs (hardware nor software inventory), and bear in mind that a primary stand-alone can support up to 100,000 clients, and in SCCM 2012 the big idea is to simplify the hierarchy. So if you have a primary site you can manage
    a lot of clients, and you can separate them in your case in boundaries, boundaries in 2012 do two things: Site assignment and content lookup, but they only work with boundary groups, in which you set the limits in the boundary, and latter associate it with
    a boundary group.   
    You can then just have a primary server and remote DPs, and decide how the clients will look for content in the DPs with the boundaries and boundary groups. The bandwidth needs to be really important about sending
    packages between sites, or if the boundaries are not configured properly the clients can end up looking for content where it should not.  Also don’t forget about fallback packages and content, because DPs and packages can be set as fallback, so if clients
    cannot find in a local DP they will search those packages.
    Below a few references that may help you with your migration.
    Any more questions, please let me know.  
    References
    ==========
    Planning for Configuration Manager Sites and Hierarchy
    http://technet.microsoft.com/en-us/library/gg682075.aspx
    Planning for Sites and Hierarchies in Configuration Manager
    http://technet.microsoft.com/en-us/library/gg712681.aspx
    Migrating Hierarchies in System Center 2012 Configuration Manager
    http://technet.microsoft.com/en-us/library/gg682006.aspx
    VIDEOS
    ========
    Configuration Manager 2012: Plan, Deploy, and Migrate from Configuration Manager 2007
    http://technet.microsoft.com/en-us/video/configuration-manager-2012-plan-deploy-and-migrate-from-configuration-manager-2007.aspx
    Microsoft System Center Configuration Manager 2012: Plan, Deploy, and Migrate from Configuration Manager 2007 to 2012
    http://channel9.msdn.com/Events/TechEd/Europe/2012/MGT313
    Cheers,
    Renato S. Pacheco

  • Device for photon counting system

    Hi
    I want  to design a photon counter for my optical measurement (very low intesnity). I need experiences of design and advice to choose a suitable  counter : low rate to high rate (up to 100M counts /sec), little dead time..., TLL input. I was told about such a PCI counter card.
    Thanks

    Hi hanh,
    The PCI counter/timer board that matches the specifications you have given would be the PCI-6602. You can find more detail about it in the NI 660x Specifications. The 100 counts/sec would be possible but you will have to use the prescaler. More information on this process can he found in this article which also has links to examples. Take a look at this device and see if it matches what you need.
    Regards,
    Kent
    Applications Engineer
    Digital Multimeter Home

  • Lookout OPC Communication Problems

    I am running a Lookout process with an OPC server to connect to a
    ControlLogix PLC. My Lookout process will not always reflect the
    current state of hardware, i.e. simple Boolean objects do not update
    on the display control panel. I can, in some cases cause the display
    to change by changing the state of my hardware manually (actuating a
    limit switch for example) thus Lookout sees an event and updates the
    display. But this does not work in all cases so I have no way of
    knowing if the display is accurate.
    Similary, changing the position of Lookout switches and pushbuttons
    on the control panel will be reflected in the plc ladder logic but not
    write back to Lookout to report the change. This is true for both
    local and remote position source
    s. I should add that switching from
    OPC1 to OPC2 or OPC2 to OPC1 can cause some signals to reflect what
    hardware is doing but there is no definite consistency that one can
    point to that will identify the problem.
    Finally, communication between the OPC Server and the PLC is fully
    functional and verifiable. So there seems to be a fundamental flaw in
    my design any advice on this issue would be greatly appreciated.
    Leo

    Hello Leo,
    Have you tried turning On the Force refresh after write setting?
    Also, try polling the device periodically to force the updates.
    Regards,
    Khalid

  • Hi, i am a littl confused as I logged into creative cloud and bough the in design plan for a year but i cant seem to donwload it... there is a window that pops up and it says its downloading but its taking forever? any advice?

    hi, i am a littl confused as I logged into creative cloud and bough the in design plan for a year but i cant seem to donwload it... there is a window that pops up and it says its downloading but its taking forever? any advice?

    Hi Dima,
    Please refer to the help documents below:
    Troubleshoot Creative Cloud download and install issues
    Error downloading, installing, or updating Creative Cloud applications
    Regards,
    Sheena

  • Advice needed regarding Database design practice

    OK, here is my situation. I've started working for a company about 6 months ago. I'm a .NET developer with 12+ years of experience. Most of my experience with databases is with SQL Server. Recently I've discovered an design change with our Oracle database that our DBA made that I completely disagree with.
    We had a single Event table that holds records that pertain to all HTTP traffic on a network as HTTP Usage Event. There are multiple hardware units called 'Sensors' that monitor the network and report these HTTP events to the database. At some point not long ago, the table was holding just over a million records. Performance was suffering so the DBA decided to make a change to the database to accommodate. The change she made was to create a separate Event table for each sensor. Each sensor has an integer value as a unique identifier, so our database went from having a single Event table to now having Event_100, Event_101, Event_102, etc...
    So, we now have over 200 Event tables in our database. Anytime a sensor is added to the system, we need to add another table (actually two as there is a 2nd table that was duplicated in this same fashion).
    How do I present this to my boss and to the DBA in a way that I don't embarrass my boss (he approved the change) and without pissing off the DBA? I can't imagine that the table couldn't have been optimized as it was to take care of the issues with performance without so dramatic a change.
    Any advice would be greatly appreciated.
    Edited by: jreddy on Dec 15, 2010 6:51 AM

    There is a job to purge old data. Events are kept for 3 months. These jobs were actually part of the problem, as well as removing sensors from the system. In either of these cases, the deletion of the data (more so with the removal of a Sensor i.e. DELETE FROM EVENT WHERE SENSORID = X, was taking too long).
    I'm surprised that there have been people agreeing to this design. So, now we have 208 sensors, so 208 Event tables and another table named DATA_HASH duplicated 208 times. There may be a time when our database will be handling data from over 1,000 sensor units. Maybe even double that. Can anyone argue that having 2,000 event tables is the way to go? What if we need to add a new field to the table? Do that 2000 times?
    I've been looking at bit more at the data today. I found some event tables haven't got any data (0 rows) while others range in row counts of 2 million up to as much as 30 million? I've talked to SQL DBA's and they all think that Oracle should be able to handle billions of rows in a table.
    Also, just out of curiosity, I looked up the max size for a table in Oracle 10. I know the number of rows isn't the determining factor for this, but size of the data. I was astounded to find out the max size for data storage for a single table. 127 TB (yeah, tera bytes). Based on this size, it seems our data could be handled by 1 table, but then maybe I'm wrong.

  • Cocoa app design advice

    hello,
    as i'm studying cocoa i've created a test app and i'm looking for some advice/direction when it comes to design. this is what i've done so far:
    1. placed a custom view on my main window linked to my custom subclass "dropview" of nsview
    2. placed a table view on my main window linked to a "appcontroller" object
    with the custom view i can accept drags and when i do i use a nstask method to search for files and place these files in an array. then i want to display these files in my table view. here are my questions: since the array variable is defined in my nsview subclass what is the right way to send that information to my appcontoller object? so far i have made a declaration of this variable above the @interface dropview and used #import dropview.h in my appcontroller.m file. then when the app launches it tries to set the table view from the start before my array variable is defined, but once the array variable is defined how do i tell the table view to update? i have tried to tell my table view to reloaddata from my dropview class but the table view is linked to my appcontroller class. i hope this makes sense and any advice on how i will communicate between the 2 classes is greatly appreciated!
    thank you,
    rick

    You should create one servlet, which accepts the params of any form and passes them to the backend.
    In summary:
    The one servlet is a 'controller' servlet ( the 'C' in MVC design).
    It takes in all url requests for all JSP pages (never allow a user to directly call up a JSP page) or from a submit from a form tag on any JSP page, or from a click on a hyperlink. It verifies the person is logged in (authenticated) and has permission to view the JSP page it wants to view (authorization). If its not authenticated or authorized, it dispatches to an error page. If it is, it determines what JSP page the request is comming from and what it wants (example: update button was clicked). It then instansiates business logic and sends the JSP page's information to it. The business logic performs the work. The data coming back from the business logic is put in request scope by the servlet (not by the business logic) and the servlet dispatches to the appropriate JSP page (which will get data out of request scope to be displayed).

  • New to photoshop, looking for advice on creating a stencil design, can anyone explain how to do this

    Heya,
    So I'm hoping to get back into photoshop, my knowledge at the moment is pritty minimal, but i'm going to start learning how to use it again.
    I'm new to this forum and don't intend to come on here often for advice but i hope that someone would be kind enough to point me in the direction that i'm looking for, i would be very grateful.
    Firstly, i haven't yet decided which adobe photoshop product is best suited for what i'm looking for and i aim to go and explore the trials first to find out.
    I'm looking to create designs with software that doesn't really have any limits in terms of creating designs.
    I was wondering if someone could give me some links to a tutorial or something that explains how to create the stencilling effect in the image that is seen as a tree with a cityscape in the background, and possibly the other effects seen on the t-shirt. I know it might be a lot to ask but it would really mean a lot if someone could explain how you create effects like this.
    Here's the image:http://www.gifts.com/products/Kohls/Mudd-Tree-Tee?p=6886:1945256129:35
    I know that the image is small, it was the best i could currently find, i hope that you can still see it well enough.
    Thank you in advance
    I really appreciate it!!

    First you may want to google »photoshop tutorial distresssed«.
    As for combining images like that a combination of Blend If-settings (one can split the handles by alt-click-dragging them)), Layer Groups set to Blend Modes other than Pass Through and Grtadient Maps may be employed to maintain high editability.
    One could also just use the images as Layer Masks for Solid Color Layers (and use Levels or Curves to get the intended contrast), though.

Maybe you are looking for

  • ITunes has encountered a problem...

    Im having problems with my itunes, all of a sudden one day an error showed up saying "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience." And then It asked me if I wanted to send error report or don't send. We ar

  • How to set a welcome message for a user when he is login

    in my server i am creatin a user "john" in solaris10 box when ever he logins in to the server he should get a message like "welcome john" what is the option to set the message .... how can i set a welcome message for a user in solaris please guide me

  • HT2513 Why do some events sync and others don't?

    I have an iMac 27" running OSX 10.6.8 and a latest model iPod Touch which I have syncing with the iMac and is running iOS 6.1.2. I first noticed that they weren't syncing reliably when I lined up some Apple Store classes. I DLed the iCal events and d

  • Downloading Photoshop CC and getting constant Exit code: 06!

    This is super annoying Adobe I pay you per month for a subscription service that apparently is worthless. I have been trying to get my Photoshop CC to download for hours and every time around the 42% download this stupid error pops up. It's not my la

  • HT204406 How do I fix an error 4010 each time I start iTunes match?

    Just got Itunes Match and I have not been able to complete the process, I have roughly 11,000 songs about 70% are matched, any advice anyone can offer would be greatly appreciated.