Can JWS do this...? Architecture question

Hi,
I'm designing the architecture for a school board that is moving a COBOL system to a Java App Server system. Within the system there are approx 180 'Modules' - each module being a set of screens that allow a user to accomplish a task. For example, the Teacher Grading module allows a teacher to access their student records and maintain the student's grades.
I'm looking to use JWS for deployment of the front end but am unsure if JWS will support the framework I want to put in place.
From a UI perspective, as there are so many modules in the system I want to design the architecture in a way that allows each module to plug in to the existing framework.
The front end would consist of a container application that would house each module in a sort of tabbed view. As each module is added to the system so the user would see a new tab in the UI that housed the new module (depending on whether the users had permissions to access the module).
So the front end container would display the modules that the user can access, adding new ones as they are defined.
Question:
Is the server's JNLP file for the application static? If it was ammended to include new jars would this cause problems on the Client side post initial installation, or would it take it in it's stride and just upload the new jars as required?
What I want to do:
I was hoping that I could just ammend the JNLP file on the server to include the new Module (jar file), the Container app could then just get a list of class names from the App server that were applicable to the User. The Container app could then instantiate the class objects and the JWS would automatically upload jars any that were missing (using lazy loading), and subsequently add the new Module( jar) to it's list of versioned jars to update when required.
Question:
Is this possible to do using JWS?
Another possiblity:
1) Main application Container gets installed using JWS
2) User starts app and signs on
3) Container talks to App Server and determines which Modules the User has permissions to use
4) Container downloads missing or new Modules - jar files (maybe using javax.jnlp.DownloadService?)
5) Want JWS to subsequently evaluate downloaded Modules (and main app) for any updates - though this would happen at step 2.
Question:
Would an individual Module's jar file/s need to be referenced in the JNLP file to download it using javax.jnlp.DownloadService? I am thinking it would.
Things to note - it is not possible to define the app with all 180 Modules embedded as it may take years to recode all 180 COBOL Modules in Java. and the system it being implemented iteratively. Also few, if any users will have access to all 180 Modules. Users are part of Groups (Teachers, Superintendants, Subtitutes etc) and each Group only has access to a certain set of screens (Modules).
Any advice would be appreciated, as I would like to be aware of any potential problems before I define the architecture.
cheers
Ray

You are completely free to dynamically generate the JNLP file if you wish via a regular Java servlet. In fact Sun has available a simple servlet called JnlpDownloadServlet which you'll find in the jnlp-servlet.jar file in your jdk installation. So you could create the servlet and pass arguments to it giving the user id and it could generate it with the modules that this user has access to. You would then probably also generate arguments passed to the main() function which would tell your app what classes (modules) to load into your app.
The disadvantage of this approach is that your server has to keep track of what modules this user can use, and he would probably have to use the web site and another servlet to configure it. (Assuming the user has any control over what modules he can access).
However there may be a better way for you to proceed. If you create a static JNLP file that contains ALL the modules but with the download="lazy" option, then all modules will be in the JNLP but not downloaded unless necessary.
Then you can download the bits explicitly you want to use. (The DownloadService class) will tell you how to do this.... http://java.sun.com/products/javawebstart/docs/javadoc/index.html
You will need to have all the modules listed in the JNLP file. Whenever a user starts up the app it will refresh their copy of the JNLP file. Pass the list of available modules to the main() function within the JNLP file so that the app knows they are there.
If necessary have some arguments that indicate permissions on the modules within the JNLP file that are passed to main(). (e.g. --module=mymod1.jar,perm=teachers,students )
You may want to create a ClassLoader that accesses that jar file directly (passing in the URL)... (once it is downloaded via DownloadService) and loading information directly from each jar. e.g. have an info.properties file in the "root directory" of every jar file that explains what the entry point or points are for this module. That avoids having to pass even more info in the JNLP file (e.g. --entryPoint=com.foo.MyModule1). or else having some guessable naming scheme for classes. That is a good thing at least for entry points so that the module is completely self-contained describing its own entry points. That is an approach I've used before. But you wouldn't use it for permissions, because then you would have to download it before you could tell if you need it.
Now the application itself can manage its own modules and resources using whatever criteria you desire. (You could even give the user some control). If all your modules have a standard interface for launching them, you can dynamically load those classes on demand. Use DownloadService to download the jar for that module, and then use Class.forName() to access the entry point for the module. Use the java.util.prefs.Preferences class if you need to keep track of anything on the client side about modules.
If it were me, I'd have the code be able to work without webstart as well which is easier for local debugging. That shouldn't be a problem.

Similar Messages

  • "I can't support this architecture" Messege

    I know very little about computers so please bare with me. I Own a copy of Cs5 extended and just DL it, Now I downloaded it but when ever i try to open it i get this messge "You Can not open the Application " Adobe Photoshop CS5" Because it is not supported on this architecture" Also the little icon that represents CS5 is what looks to be papers with a circle and a line threw it.

    "I can't support this architecture"
    I have seen this. For me it meant an OS up date.
    But as SW said. It could also require a hardware update. AKA, a newer MAC. Sorry

  • When i ask a question on ebay and send, when i try to back tab it keeps insisting on resend how can i turn this off?

    you search items on ebay,ask a question of the seller and send it, i then want to return to my listing and the searched items, but firefox will only let me do this if i resend my question every time, it means all the messages i send asking a question are duplicated, how can i turn this annoying protocol off?

    Feedback? Did any of this help?

  • YOU CAN'T OPEN THE APPLICATION VIRTUAL DJ LE BECAUSE IT IS NOT SUPPORTED ON THIS ARCHITECTURE .. What can I do to Fix this??

    I have a Mac PowerPC G5 and i just installed the Version 10.5.4 to be able to install Virtual DjLE , and after I installed it, i try to open it and there was an error msg saying : " you can't open the application virtual dj le because it is not supported on this architecture"
    What can I do to resolve this? ... Can someone help me with this?? ..
    Thank you for your help!

    Hi, we're out of luck...
    MAC SYSTEM REQUIREMENTS
    MINIMUM system requirements:
    Intel® processor
    Mac OS X v10.5.x
    1024x768 resolution
    CoreAudio compatible soundcard
    1024MB RAM
    50MB free on the hard drive
    RECOMENDED system requirements:
    Intel® processor
    Mac OS X v10.6.x
    1440x900 resolution
    Multi-channel CoreAudio compatible soundcard
    2048MB (2Gb) RAM
    200MB free on the hard drive
    Additional requirements for Video mixing:
    ATI™ or NVIDIA® video chipset w/256MB of Dedicated DDR3 RAM
    Video must support dual-screen output
    Supported Operating System and Processor Platforms:
    MINIMUM: Mac OS X v10.5 Leapord on Intel processor platform
    RECOMMENDED: Mac OS X v10.6.x Snow Leapord on Intel processor platform
    Apple® Mac OS X 10.4.x Tiger or older are not supported
    Motorola® (PowerBook® G4) processor platform or older are not supported
    http://www.virtualdj.com/products/virtualdj/index.html
    Might see if the still have version 6.x here...
    http://www.virtualdj.com/download/updates.html

  • You can't open the application "Adobe InDesign CS4" because it is not supported on this architecture"

    A day or two ago I went through installing Adobe InDesign CS4 on Leopard OS X.5.8.  After what appears to be a successful installati
    on, in launching InDesign CS4 the message " You can't open the application "Adobe InDesign CS4" because it is not supported on this
    architecture" comes up".  Calling in to support and speaking with the agent who read through previous posts, suggested to me that I
    should try the same fix that has been suggested when I ran across an error when installing Adobe InDesign CS4 on another separate ha
    rd drive externally connected to this computer running Snow Leopard OS X.6.1 for the error reading: "Damaged &/or incomplete install
    ation" when launching afterwards.  The support technician told me to first delete with the uninstall Adobe InDesign CS4, InDesign.
    Following this I am told to run the CS4 Cleanup Utility.  I restart the computer each and every time after running each of the utili
    ties.  Now I am told to install InDesign as a trial version from the DVD and after installation to go ahead & enter the serial numbe
    r.  When launching InDesign CS4 after installation got back the same error as before: "You can't open the application "Adobe InDesig
    n CS4" because it is not supported on this architecture" comes up".  Followed KB404711 article and no success.  What else can be don
    e to fix this issue?
    This morning contacted Adobe Support regarding this response:
    After having a detailed reserach on your issue i acme to the conclusion
    that the problem you are having is not related to Adobe software but its
    in fact related to your MAC version ( OSX-5.8). While reseraching your
    issue i came across
    to many forums where a lot of postings were about the similar error but
    with different products the only comon thing was all the Errors were
    with Mac machine , also when you check the system requirements  for
    Adobe Indesign Cs4
    by going to the following link
    http://www.adobe.com/products/indesign/systemreqs/?promoid=DRHXE  you
    will find the Mac OS version supported are from Mac OS X
    v10.4.11–10.5.4. but we do support Snow Leoprad , so i would like
    to advise to you to either contact your system manufacturer or upgrade
    to Snow Leopard ( mac os x 10.6)
    I have been told that my case is being sent to Level 2 agents and that it can take 24-48 hours for a response.  In the meantime I decided to see what the Support Forums can do for me.  Until then I am down.  Thanks for the help.

    In the application folder there is a folder 'Adobe InDesign CS4' within which there is just the application file. I would expect there should be more file there??
    I've un-installed and installed again - still the same.
    Even downloaded the dmg again and done thwe whole thing over again.

  • I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account

    I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account as it seems to be the one my icloud space is attached to.  I haven't backed up my ipad or photos for a while. 

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.
    About 2-step verification of your Apple ID:
    http://support.apple.com/kb/ht5570
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    iCloud does not provide general file storage or backup, so you cannot back up your Documents folder using it. You will need to find a third-party alternative - this page examines some options (some are free):
    http://rfwilmut.net/missing3
    iCloud at basic level, with 5GB is storage, is free: you only pay anything if you want to increase the storage space.

  • HT204053 How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    You cannot delete the account from the server (partly to prevent the username from becoming available again and some-one else using it to pretend to be you).. Having disengaged your devices from it, go to http://icloud.com and delete any data in there such as contacts and calendars. Then just ignore it.

  • TS3147 I would like to print pdf architectural plans in the scale they were intended how can I do this?

    I would like to print architectural plans to scale from a pdf.  How can I do this?  Even just a section of the plan.
    thank-you

    Did you try Google?
    https://www.google.com/search?q=print+architectural+plans

  • I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so wha

    I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so what is the best card?
    Thank you

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
    Also see:
    https://discussions.apple.com/thread/6282459?tstart=0

  • I just got a notice to update my firefox to 4.0 and when I downloaded the new software it indicated: that I can't open the application "Firefox" because it is not supported on this architecture. Any ideas about what might be wrong and how to fix it?

    I just got a notice to update my firefox to 4.0 and when I downloaded the new software it indicated: that I can't open the application "Firefox" because it is not supported on this architecture. Any ideas about what might be wrong and how to fix it?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • My wife's iTunes ID will no longer work.  Tried to reset password but did not get email, tried to reset by answering personal questions' but will not accept the correct date of birth.  Has it been hacked?  How can I fix this?

    My wife's iTunes used ID will not work.  Tried resetting the password, but email was not received.  Tried using personal questions method, but would not accept the correct date of birth, so could not go any further.  Has her iTunes ID been hacked?  How can I fix this?

    Thanks for that advice @randers4.
    I linked through and submitted my info as a "topic not covered" in the iCloud section. After entering the serial number of my MBP it turns out I wasn't eligible for technical support (though I don't think this is hardware related support) and the final suggestion was to take my computer into an Apple store. I called my local Apple reseller and asked for assistance. The customer service rep was very nice but unable to help, so suggested I call Apple Support on 1300 321 456. I did so and, again, spoke to two very polite and helpful customer service people (I was transferred to security services). I didn't have to be on hold to speak to either rep for more than a few seconds! After trying a few different things, he worked out what was happening...
    So, to cut a long story short, to solve the problem in my OP, all I had to do was log out of iCloud in my System Preferences and log back in using my current Apple ID. [Edited to add that I had to sign out of everything I was currently signed in to with my Apple ID before logging out and in again.]
    Problem solved!
    Message was edited by: NotBaconBits

  • I currently have an old version of Photoshop Elements, it is version 5.0.  I recently upgraded from my old Windows XP computer to a new Windows 7 computer.  My question is:  Can I install this version 5.0 on my new windows 7 computer without any problems?

    I currently have an old version of Photoshop Elements, it is version 5.0.  I recently upgraded from my old Windows XP computer to a new Windows 7 computer.  My question is:  Can I install this version 5.0 on my new Windows 7 computer without any problems?  my email is:  [email protected]  Thank you!

    Do not know about 5, but, just installed PE 6 on I7 64 bit and it works.

  • Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?

    Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?
    <Edited by Host>

    Look at your receipt. Does it say unlocked? It is possible to purchase both locked "sim free" and unlocked iPhones from Apple.
    ONLY the carrier an iPhone is locked to can legitimately unlock it.
    IF your receipt says that it was supposed to be unlocked, and it is not, call AppleCare. They should be able to straighten it out.

  • Just downloaded beta 4 and get a msg saying does not work on this architecture, I'm on a Mac Powerbook G4 running OS 10.5.8. Can I somehow uninstall and go back to the latest version, without losing all my stored data (bookmarks, etc.) if so how?

    That's about it. Whenever I try to launch the beta version I get the won't run on this architecture message.

    Firefox 4 requires at least OS X 10.5 and an Intel Mac.
    You can re-install Firefox 3.6.15 and it will automatically use your existing bookmarks.

Maybe you are looking for

  • Error while posting asset in F-90

    Hi While posting the asset in tcode F-90 iam getting below error. Pls suggest me. Contact your system administrator (table error) Message no. AA463 Diagnosis There is an inconsistency between the posting keys entered for Asset Management and the defi

  • Windows 7 Printer Sharing

    I have a HP PSC 2410 connected to a computer running windows 7.  Win 7 detected and installed the printer just fine and there are no issues printing.  I have a laptop running XP and I'll be darned if i can get the Win 7 computer to spool print jobs f

  • Can I get back the original filename even though the file is missing

    I imported 900 RAW images from my desktop into Lightroom, edited them, renamed the filename, and exported them into JPGs. Since I no longer needed the RAW images on my desktop I moved them over to an external hard drive. So now the images are still v

  • How to create a database from dfj zip file

    Hi, I have created a database template via DCA from PC-1 which has got oracle 9i and it has produced a file with extention dfj. I am trying to create a new database using this dfj file on a different pc which has oracle 10g. 1- How can i use dfj file

  • Which JDK doc to read up for more info on array ?

    The title says it all. I need to know what other properties does an array has. For instance, we can use "x_array.length" to find out no.of elements in x_array. Is there a property to tell how many dimension does the array has ? The ".length" only giv