Can you suggest a Design pattern for moving a desktop app to  web?

Hi,
I have been asked to move a desktop applciaiton which has Serialized files as persistant layer in to Web, can anyone suggest me a good design pattern to accomplish this.

I dont know what data is in the files, but I suggest looking at creating a set of database tables, normalize them, and copying the data to the tables (via java). Have a DBA review your database schema design if possible before copying the data. Then, use MVC design as I describe here:
http://forums.sun.com/thread.jspa?messageID=10786901
Once you get experience in the MVC design described above, your next project can use MVC with a framework such as Java Spring (a more advanced topic). You should read a book cover on Spring to cover on it first.

Similar Messages

  • Why can you not use Apple Pay for purchases in the App Store or iTunes?

    To make a purchases in the App Store or iTunes, it appears you can only pay by entering Mastercard, Visa, Discover, or AmEx information.   If you select none and try to make a purchase, you will again be prompted to enter this information.  I would like to use my Apple Pay account to pay for Apps/tunes, but that doesn't  seem possible.  It seems this negates one of the primary benefits of Apple Pay, which is to make purchases without turning over your credit card information to the merchant, in this case Apple.  I know you can pay with Touch ID, but that is only authoring payment from your credit card information you have on file.

    Hello ToastyFlake,
    It sounds like you are wanting to use ApplePay to purchase content from either the iTunes or App Stores. According to the following article, you are correct. ApplePay is for in-app (if the app supports it) or purchasing from a retail store. 
    Set up and use Apple Pay
    Pay with Apple Pay in stores
    On iPhone 6 and iPhone 6 Plus, you can use Apple Pay in stores that accept contactless payments. Look for one of these symbols at checkout:
    Pay with Apple Pay in apps
    On iPhone 6, iPhone 6 Plus, iPad Air 2, and iPad mini 3, you can use Apple Pay to pay within apps when you see the “Buy with Apple Pay” or “Apple Pay”  button as a payment method. Look for these buttons in apps:
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • New to the MAC world - can you suggest a new drive for my G4?

    Hi, I'm a newcomer to the MAC world after using Windows for years. I'd long wanted to make the switch and now my chance has come I'm absolutely delighted.
    At the moment I'm still finding my way around but I already have an idea about upgrade choices and the first is to replace the Hitachi GD-7000 DVD-ROM drive. It appears to be unable to read at least one commercial DVD and has problems with some data CDR/RW's from my collection (the same discs work fine in numerous standalone players and other DVD drives).
    Although I live in a "region 2 zone", I buy lots of region 1 films via Amazon and out of 7 discs tried using VLC only one worked (they all work on my PC's) - is this because of regional coding issues such as RCE or rather the Hitachi's age?
    I realise that ultimately the drive will have to be replaced and I would appreciate it if you could please offer suggestions on suitable drives.
    Thanks,
    Jay
    PowerMac AGP Sawtooth   Mac OS X (10.3.9)   512MB RAM Dell 17" Monitor
    PowerMac AGP Sawtooth   Mac OS X (10.3.9)   512MB RAM Dell 17" Monitor

    Thanks a lot for all the feedback, I've visited the links that you posted for me to check out and tomorrow I'm going to buy the Pioneer DVR-110D. As Malcolm stated, it can be picked up very cheaply (£23!)
    http://www.yoyotech.co.uk/productinfo.php?cPath=10_34&productsid=567&osCsid=5032a3a66dd48b74203e6699d03a3fbd
    Thanks again,
    Jay

  • Can you suggest a suitable RIP for HP Designjet Z3100.

    The workload on our Designjet Z3100 has grown to the point where we need to increase the productivity of the printer.  I believe adding a RIP to the workflow would help, both in terms of accuracy of setup and minimising paper waste (through nesting).  Can I add an embedded RIP to the Z3100, does HP supply an external RIP or is there a third party RIP that is supported / recommended?

    HI jaksnz,
    You might have better luck with your question if you post on the Designjet Business Forum as this printer is a business unit and not a consumer unit.
    Also here is a link to the Business Support Center for your printer.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • HT1222 My mouse pointer in finder is not working by double clicking on the application.I have to double click and select open for opening the application.Can you suggest me some settings to fix this problem?

    My mouse pointer in finder is not working by double clicking on the application.I have to double click and select open for opening the application.Can you suggest me some settings to fix this problem?

    Hi,
    Try this ... reboot your Mac and see if double clicking works again.
    Also, you can just select the Application you like to open and hold down the Command+O to open.
    Also, did you check your setting for the mouse in system preferences.
    Dimaxum

  • Can you suggest a workflow for me?

    While I love the file organization and keywording functions of Lightroom, I want to use only Adobe Camera Raw and Photoshop for processing.  I'm struggling with how to develop a workflow that would include Lightroom, but only for organization purposes.
    It seems that every Lightroom workflow tutorial, article or video always insists on making use of the "Develop" module, which I do not want to use.  Can you suggest a workflow for me?  For instance, which first thing would be best....import my Raw files to a file on my hard drive or import my Raw files into Lightroom.  I would prefer working out of Lightroom for post-processing, as I mentioned, but I want to be able to update my Lightroom catalogue with my changes.  Any suggestions would be greatly appreciated.  Thank you!
    Dave

    What is your workflow, now, with Bridge/ACR/Photoshop?  What value-added does Lightroom bring to the Bridge/PS/ACR workflow you currently have, and what do you feel LR doesn’t do well that causes you to want to use Bridge/ACR, instead?
    The XMP file will save the Develop settings between LR and ACR.  ACR will read settings from the XMP files (as long as you have the preference set not to store the settings in a central camera-raw database) whenever you are in Bridge or ACR and ACR will write to the XMP files whenever you click Done to exit, or choose Update XMP or whatever the menu items says.
    LR can be told to Synchronize metadata settings, or you can explicitly read and write to the XMP files.  LR also reads from the XMP files when you import, and writes to them in the background if you have Automatically write XMP files (or whetaver the phrase is) enabled in Preferences.
    If you want to live I both worlds then you need to think about what you’re doing with what XMP files, when, so you don’t overwrite something you work on in the other program.  As others have suggested, this is harder than if you just used LR or Bridge/ACR for everything.

  • HT4528 I need an app to download ringbacks for my 4S. Can you suggest one?

    I need an app to download ringbacks for my 4S. Can you suggest one?

    Ringback tones are managed by your carrier, check with them to enable the feature.

  • Can you suggest a good compatible modem for Airport?

    Can you suggest a good modem that is compatible with airport express?

    Just to add to turbo..
    Your modem is maybe cable.. which is not adsl..
    Or adsl which is not fibre..
    Or perhaps wireless and not adsl
    Or satellite and not wireless.
    Or vdsl and not satellite
    Or is it direct copper and not vdsl
    Or it could be cable.. and we start around again.
    A good modem is more than likely supplied by your ISP.. although that is not universal.. some hint of ISP and broadband type is a big step forward.

  • Is there a design pattern for this?

    I'm looking for a solution to a design problem I have.
    For a restaurant booking system I need a number of different opening times describing when you can and cannot book. These opening times are essentially Jodatime Period objects. There's a set of opening times spanning a week and these are repeated for every week (a default set of opening times) however it's possible to override these opening times say for a specific day.
    The domain model would be something like a Restaurant class holding 2 Lists of OpeningTime objects one for defaultOpeningTimes and the other for overiddenOpeningTimes the overidden ones get used if they exist for the requested time period. However the database model would be a bit messy as I'd have 2 lists mapping to the same table (OpeningTime). Is that a good idea? Perhaps there's a design pattern for this, if someone could point me in the right direction I'd be very grateful, or perhaps this is the best solution? Thanks!

    jduprez wrote:
    But why do you put the logic in the database too (I'm no DB expert and I didn't know these concepts until I read your post, but that's what a dynamic view based on derived values looks like to me): performance (1 round-trip instead of two)?Hi jduprez. Long time no speakee.
    I guess part of it is that I spent many years as a DBA and modeller, and really appreciate what it's taught me about design. Also, databases are (or should be) designed from the ground up to provide data-directed requests optimally, and include all sorts of nice stuff like transaction handling that aid consistency, as well as speed.
    That said: I HATE SQL. Think Coliseum, with that emblazoned in 60-foot high letters around its walls, and it might come close to just how much I hate that so-called "language". I hate its form; I hate it's inconsistencies; I hate the fact that something like what OP is trying to do is NOT an easy task (and might involve the creation of a table that simply contains Dates, just in order to satisfy Boolean logic).
    However, once you work it out, a database view (at least from the database's standpoint; JDBC I'm not so sure about) is just like any other Table - and that I DO like.
    Programs are good at processing parameterized (ugh) temporal information; databases are good at persistence and high volume. Those two may meet at some point, but I reckon it's going to take another Codd (or Joda) before it does.
    - that's clearer to 90% of the dev team (my biased numbers, based on 50% of Java developers having decent knowledge of SQL and much less than that having the advanced SQL knowledge which I rank your suggestion at)Sounds to me like you'll get the solution that matches the skills you have then. Is that what you really want, if a better one is available?
    - that doesn't require investigating the if of your suggestion (JDBC support)Agreed, but only because my JDBC knowledge isn't what it could be. I'd also be surprised if it doesn't support access to a named view, since they were designed to be equivalent to Tables.
    - the Op is using DAOs, so it's possible, if profiling does show this is hampering performances, to change that with no impact on the client code that calls the DAO.There's no doubt that a database solution is much higher level than a programming one; but, as I said, it's what they were designed to do. And tinkering around with program optimization has the feel of a "hacker's solution" to me. Not that there's any particular problem with that - I do it quite often when I have no control over my source - but I also try to keep in mind what the "actual" problem is.
    Winston

  • What is the best design pattern for this problem?

    No code to go with the question. I am trying to settle on the best design pattern for the problem before I code. I want to use an Object Oriented approach.
    I have included a basic UML diagram of what I was thinking so far. 
    Stated simply, I have three devices; Module, Wired Modem, and Wireless Modem.
    In the Device Under Test parent class, I have put the attributes that are variable from device to device, but common to all of them.
    In the child classes, I have put the attributes that are not variable to each copy of that device. The attributes are common across device types. I was planning to use controls in the class definition that have the data set to a default value, since it doesn't change for each serial number of that device. For example, a Module will always have a Device Type ID of 1. These values are used to query the database.
    An example query would be [DHR].[GetDeviceActiveVersions] '39288', 1, '4/26/2012 12:18:52 PM'
    The '1' is the device type ID, the 39288 is the serial number, and the return would be "A000" or "S002", for example.
    So, I would be pulling the Serial Number and Device Type ID from the Device Under Test parent and child, and passing them to the Database using a SQL string stored in the control of the Active Versions child class of Database.
    The overall idea is that the same data is used to send multiple queries to the database and receiving back various data that I then evaluate for pass of fail, and for date order.
    What I can't settle on is the approach. Should it be a Strategy pattern, A Chain of Command pattern, a Decorator pattern or something else. 
    Ideas?

    elrathia wrote:
    Hi Ben,
    I haven't much idea of how override works and when you would use it and why. I'm the newest of the new here. 
    Good. At least you will not be smaking with a OPPer dOOPer hammer if I make some gramatical mistake.
    You may want to look at this thread in the BreakPoint where i trie to help Cory get a handle on Dynamic Dispatching with an example of two classes that inherit from a common parent and invoke Over-ride VIs to do the same thing but with wildly varying results.
    The example uses a Class of "Numeric"  and a sibling class "Text" and the both implement an Add method.
    It is dirt simple and Cory did a decent job of explaining it.
    It just be the motivation you are looking for.
    have fun!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Choice of design pattern for data acquisition system

    Hello all
    I have a trouble about selecting the suitable design pattern / architecture for a data acquisition system. 
    Here is the details of the desired system:
    There is data acquisition hardware and I need to use it by observing parameters on User interface. 
    the data acquisiton period, channel list to scan should be chosen on User interface. Besides, there are many user interface interactions. e.g. if user selects a channel to add scanlist, then I need to enable and make visible some other parts on user interface. 
    When user completes the channel selection, then he will press the button to start data acquisition. Then I also need to show the scanned values on a graph in real time and log them in txt file.
    I know that I cannot use producer consumer pattern here. because the data acquisition loop should wait for parameters to scan channels. and it works in a given period by user. so the user interface loop performs higher rate then consumer loop (data acquisition loop). it means queue will be bigger bigger. if I use notifier it will loss some data come from user interface. 
    is there any idea about that ? is there any suitable design pattern for this case ? 
    Thanks in advance
    best regards 
    Veli BAYAR
    Embedded Systems Software and Hardware Engineer 
    "You live in a graphical world. Why not program in one?"
    Solved!
    Go to Solution.

    johnsold wrote:
    Veli,
    I recommend the Producer/Consumer model with some modifications.
    You might need three loops.  I cannot tell for sure from your brief description.
    The User Interface loop responds to the user inputs for configuration and start/stop of acquisition.  The parameters and commands are passed to the Data Acquisition loop via a queue. In this loop is a state machine which has Idle, Configuration, Acquisition, and Shutdown states (and perhaps others). The data is sent to the Processing loop via a different queue. The Processing loop performs any data processing, displays the data to the user, and saves it to file. A notifier can be used to send the Stop or shutdown command from the User Interface loop to the other loops.  If the amount of processing is minimal and the file write times are not too long, the Processing loop functions might be able to occur in the Timeout case of the UI loop Event structure.  This simplifies things somewhat but is not as flexible when changes need to be made.
    I am not sure that a Design Pattern for this exact setup exists but it is basically a combination of the Producer/Consumer (Events) and Producer/Consumer (Data) Design Patterns.
    Lynn
    Check out this thread: http://forums.ni.com/t5/LabVIEW/Multiple-poll-case-structures-to-event-help/td-p/2551309
    There are discussions there about a 3-loop architecture that may help you.
    Jeff
    Jeffrey Zola

  • Design Pattern for execution queue

    Anyone know of any good design patterns for using a JMS Queue and MDB's
              as async
              execution queue which maintains execution order by some key
              

    Enforced ordering on redelivery will be supported in the
              next release, but only if the application clamps the pipe-line
              size down to its minimum and the MDB pool size down to one.
              I don't think enforced ordering is supported in the current release.
              We are looking at least partially addressing the general design
              pattern below in the release after next. I don't think I can
              get away with being more specific. (Sorry.) Currently, I
              think something along the line of Larry's solution is the only way to
              accomplish it. Interestingly, the recent thread started
              by "[email protected]" on correlating requests and responses
              seems to be somewhat related.
              Tom, BEA
              Larry Presswood wrote:
              > Well you are both correct however we have something which works
              > however it does involve some threading primitives which generally is not
              > a good idea
              > inside wlas but seems to work.
              >
              >
              > Generally have a singleton on the server which has slots for each key
              > with message
              > numbering for each message and force a wait if message for key is out of
              > order
              > during fifo processing rules. IE do what things you can do in parallel
              > but gate for
              > the last step.
              >
              > I think there is a general remote execution pattern out there.
              >
              > The general problem to solve is this:
              >
              > In a messaging system you want to process messages for each key/session
              > in order however
              > with a large number of sessions its possible to parallel messages for
              > different sessions
              >
              > Otherewise you can either create custom queues or a topic with a
              > selector and then
              > create custom consumers which does not behave as well from a resource
              > perspective
              > as MDB's do.
              >
              >
              >
              >
              >
              >
              >
              > Nick Minutello wrote:
              >
              >>I may be completely wrong - but I think that Larry is referring to the inherant
              >>out-of-order message consumption that you get when using MDB pools to consume
              >>from a Queue.
              >>
              >>In short, the only design pattern here is to deploy the MDB to only one machine
              >>in the cluster - and set the pool size to 1.
              >>
              >>In-order execution is incompatible with the parallel execution that MDB's give
              >>you.
              >>
              >>-Nick
              >>
              >>
              >>
              >>Tom Barnes <[email protected]> wrote:
              >>
              >>
              >>>Hi Larry,
              >>>
              >>>Generally, I think it is best to have a seperate queue per key if the
              >>>
              >>>number of keys is small. This prevents starvation of a particular
              >>>message. For example when handling message-priority, low priority gets
              >>>
              >>>an MDB pool of size 1, high priority gets and MDB pool of size 10.
              >>>
              >>>Note that WebLogic JMS allows a queue to specify a sort-order keys based
              >>>on arbitrary message fields. Note that the in-flight message pipe-line
              >>>
              >>>between server and asynchronous clients is unsorted.
              >>>
              >>>Tom, BEA
              >>>
              >>>Larry Presswood wrote:
              >>>
              >>>
              >>>>Anyone know of any good design patterns for using a JMS Queue and MDB's
              >>>>
              >>>>
              >>>>as async
              >>>>execution queue which maintains execution order by some key
              >>>>
              >>>>
              >>>>
              >>
              >>
              >>
              >
              

  • Design pattern for display configurable UI

    Hi,
    We have a UI requirement where a form (page) needs to display different components based on where the form is being accessed from.
    For e.g. If the form "X" is accessed from "abc" form then it has to display a dropdown and a list box. If the same form "X" is accessed from "xyz" form then it has to display one more dropdown in addition, along with the list box.
    The validations to be done on "X" form also depend on from where it accessed from.
    Can someone please guide on how should the form be designed (e.g. how should the input parameters be taken etc)? Is there any design pattern already in place which I can refer to?
    Thanks in advance.

    Can't think of a pattern for this, merely, several patterns to deal with smaller concerns, such as "differentiate behavious based on the current state or on a parameter".
    I would point out that you probably shouldn't design each form to depend on where it is called from, but merely on what parameter it is called with. For example (assuming your foms are JSPs in a Web application), you can pass a parameter in the URL, but it would be awkward that the parameter be "origin=xyz", instead it should be "detailedOption=true". That seems more evolutive, so that if you ever need the second drop down to be displayed when the form is called from another page "efg", you don't have to modify the form.
    Now if you are worried that page "abc" and "xyz" have to know that they have to call (hyperlink to, or forward to) X which the correct value of "detailedOption", you can still have them call dedicated pages "XafterAbc" and "XafterXyz", and let your URL mapping, or dedicated controller code, map "XafterAbc" to "X?detailedOption=false".
    J.

  • Design pattern for unprotecting and reprotecting sheets with VBA?

    Many macros can't run when a worksheet is protected, so when I develop an Excel workbook that has protected worksheets, I have to unprotect worksheets when macros are called and then reprotect the worksheets once the macro has completed.
    The current design pattern I use for this is the following:
    I look at each procedure individually and consider which sheets need to be unprotected for it to run. Then in each procedure I write:
    Sub Test()
    Dim bSheet1Protected as boolean
    Dim bSheet2Protected as boolean
    bSheet1Protected = Sheet1.ProtectContents
    bSheet2Protected = Sheet1.ProtectContents
    bSheet1Protected.Unprotect
    bSheet2Protected.Unprotect
    '''The rest of my code
    if bSheet1Protected then Sheet1.Protect
    if bSheet2Protected then Sheet2.Protect
    End Sub
    But I imagine that maybe there are better ways of doing this. What is your preferred design pattern for unprotecting and reprotecting sheets with VBA?

    Hi JP3O,
    I think it is a good practice to unprotect the worksheet before execute some code and protect it back after the code execute finished.
    >>But I imagine that maybe there are better ways of doing this. What is your preferred design pattern for unprotecting and reprotecting sheets with VBA?<<
    I am not able to find a better way since we always need to unproect the worksheet if some code didn't not executed successful when the worksheet is proected.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hi, We are a physiotherapy practice trying to use i-cal as a clinic diary systaem for 15 therapists. We need to block out availability of therapists but cant do this? How can you block someones diary out for specific times on i-cal? Any help please..

    Hi, We are a physiotherapy practice trying to use i-cal as a clinic diary system for 15 therapists. We need to block out availability of therapists but cant do this? How can you block someones diary out for specific times on i-cal? Any help please..

    iCal is designed for personal use, and isn't really meant to handle this sort of situation.
    The best suggestion I can offer, though it's a trifle untidy, is: create a calendar for each therapist, giving each a different colour. Enter the availability for each therapist - if it's on a weekly basis you can make them repeating events. Then add the individual appointments, which will show alongside in the daily view. In this example, the 'purple' therapist is available from 1030 to 1700 and has appointments at 1200 and 1500.
    If you have more than a few therapists available at any one time it's liable to look a bit messy, but it's the best I can think of at the moment.

Maybe you are looking for

  • Can you get your money back from canceling a pre-order?

    I recently pre-ordered an album that I no longer want.  I canceled the pre-order but my current balance on my account hasn't changed.  I spent $17 on the album, and want to know if there is any way that I can get that back. Thanks, Logan

  • Is CAL required for SharePoint Foundation 2010?

    Is extra CAL required for uploading/downloading docs using SharePoint Foundation 2010? We already have Licensed Windows Server 2008 R2. Ours is an intranet application which will be accessed by 400 intranet users. If CAL is required then can i use on

  • ORA-12519 TNS:No appropriate service handler found!

    Dear All, I am facing a strange problem since yesterday and it happened for 4 times now. My database is 10gR2 and Linux is the operating system. There is not much load on DB but some users while connecting to DB get this error: ORA-12519 TNS : No app

  • Leopard HD qs

    Hi All I am going to instal Leopard next week and would like your views on my setup plans. I use my MAC for photo work (Aperture), surfing and iTunes. I plan on using a 500G HD for Time Machine and a 160G HD for backing up Aperture using Vault. I thi

  • Help with Annotations in iMovie to Quicktime Pro to iPod Workflow

    This is what I want my content to do: a) play in a webpage b) be downloadable and open automatically in iTunes/play on iPod c) additionally, I want the content to be annotated, so that when it is download and opened in iTunes automatically (rather th