Need Help..what should i use for this

hello friends, i have to write a program which will load an xml file reader class at run time and depending on the content of xml file i'm going to generate mapping.. e.g xml file- <MyMapping> <ATO> <security type=int> </ATO> <FIX> <symbol type=String> </FIX> </MyMapping> Now i want to change the content of xml file without restarting my running application..changes should be reflected at runtime... also my xml file will contain nearly 1000 lines..so in this case which technique should i use whether i use JAXB which will give the classes of my xml file or any other ?? Also if i use JAXB whether JAXB gives classes corrsponding to my xml nodes (e.g ATO.java as per above example).

daitkarsachin wrote:
hi ,
here is my question again..my xml will have
<Message>
<ATO>
<somefiled="X" type=int value=35 />
</ATO>
<FIX>
<somefiled="Y" type=String value=50 />
<FIX>
</Message>
Now first i have to parse this xml ..then my java program is going to accept value from user ..and depending on user specified value i've to use either ATO or FIX fields...e.g if user value is 35 then my program should use fields within ATO node.
You will read the XML structure into some kind of memory model. When the user supplies a value you will search for a matching value (likely from a collection such as a map or list) and return the value in that object that you locate.
what should be done for this ..
See above.
and what if i change values in my xml file..will i have to restart my application to load xml again ?
If you change the file on the filesystem, you should simply be able to re-parse the XML file and update your in-memory model. If you instead update your in memory-model, you can serialize the model back to XML on the filesystem. Neither needs to necessarily have anything to do with application start-up (other than the fact that you would normally read in the XML model then, but updating is a separate concern, as would re-reading it).
- Saish

Similar Messages

  • What cable to use for this?

    I am trying to hook up my xbox 360 to my Macbook pro, and I am unsure of what cable to use for this. Composite cables.

    Hi there Dsc, i tried to do so b4, but with limited success, now the problem is like been told you, MBP is not design to accept INPUT video signals, i got something called EYETV coast me about 120$, but the resolution that XBOX accepts is much higher than MBP screen can afford, i got this message when i tried to hook it up ( the dash board came up from the xbox ): YOU NEED TO ADJUST YOUR SCREEN TO A HIGHER ADJUSTMENT BEFORE YOU CAN PLAY GAMES ON THE CONSOL or so, but thats my experience any way, if you succeeded please let me know, by the way i asked the same Q b4, just search my questions and you will see the answers on my question. hope this helped.

  • What should be done for this ?

    hi ,
    here is my question ..my xml will have
    <Message>
    <ATO>
    <somefiled="X" type=int value=35 />
    </ATO>
    <FIX>
    <somefiled="Y" type=String value=50 />
    <FIX>
    </Message>
    Now first i have to parse this xml ..then my java program is going to accept value from user ..and depending on user specified value i've to use either ATO or FIX fields...e.g if user value is 35 then my program should use fields within ATO node.
    what should be done for this ..
    and what if i change values in my xml file..will i have to restart my application to load xml again ?

    I have changed your XML to make it well formed. Please refer this further in this reply.
    Well Formed XML:
    <Message>
         <ATO somefiled="X" type="int" value="35"/>
         <FIX somefiled="Y" type="String" value="50"/>
    </Message>
    daitkarsachin wrote:Now first i have to parse this xml ..then my java program is going to accept value from user ..and depending on user specified value i've to use either ATO or FIX fields...e.g if user value is 35 then my program should use fields within ATO node.
    what should be done for this ..A simple XPath Query can do trick for you, it can give you ATO or FIX element according to user specified value. XPath query can be:
    // replace ##user_specified_value## with value user enters.
    String xPathquery= "/Message/child::*[@value='##user_specified_value##']";
    daitkarsachin wrote:and what if i change values in my xml file..will i have to restart my application to load xml again ?Not necessary to restart application but you need to parse or reload updated XML file again.

  • I can't install any software,it said iOS 4.3,iOS 5, etc required.what should I do for this iOS....????

    I can't install any software,it said iOS 4.3,iOS 5, etc required.what should I do for this iOS....????

    Connect it to iTunes on a computer and check for updates.
    (74556)

  • What widget is used for this Site-of-the-Day?

    My Muse website is for my design business, and I need to show several pages of design samples (covers, logos, tech art, etc.). I think a slideshow widget will work best, but I have problems with the built-in ones (another forum entry probably). I like this presentation from an Adobe Muse Site-of-the-Day (http://du2design.com), and like that the thumbnails "fade" back while the selection is in the front. I can't find any widget that does this; the thumbnails disappear completely. Can you tell me what widget was used here, or how one was modified? Thanks. Here is a screenshot of the effect.
    (not sure how to add an image here)
    file://localhost/Users/jbaumgartner/Desktop/sample.tiff

    Anshul,
    Thanks for the help. I changed the widget I had to your suggested one, and I think it's what I need. However, I still have problems with it which I don't seem be able to resolve. Most of the elements of the widget I can access and will be able to change (color, size, position, etc), but there are a couple of things I don't see options to solve.
    1. I "Placed" 20 cover samples into the widget, and they loaded OK and show in the Assets window. None of them are in the thumbnails, only the various gray tints. How can anyone select a sample or even see the samples that are presented? I can find no way to make the thumbnails reflect the samples.
    2. As I said, I placed 20 samples. The thumbnail container loaded all 20 items (tints), but the container just extends to the right outside the site dimensions in a single row. I don't see anyway to make the container multi-rows and stay within the boundaries of the site. This is how the example was presented, 15 samples with 3 rows of 5.
    3. My site has a static menu area in the upper left of the page for navigating the site, a master item. In design mode, the page has the widget placed to the right of this area, but in Preview mode (and also browser mode), the slideshow samples appear to the left of the position and overlap the menu area. I don't see any way of fixing this. Changing the position of the target area in the container further right makes no difference, it still Previews to the left of Design position and overlaps the menu.
    I think this widget may work for my needs, but not if I can't resolve these issues listed above. I'd appreciate any help with this. Thanks,
    John B

  • Need help with Photoshop and "Licensing for this product has stopped working" message. Adobe fix isn't working.

    I am still using CS3. A while back I received an error: "Licensing for this product has stopped working" for my CS3 programs. I used the recovery program suggested by Adobe and was able to get Illustrator, Flash and Dreamweaver to work, but I still can't open Photoshop or In Design. I went back to the Adobe site and did every other trick they suggested to fix the error, but nothing has worked.
    I then tried to uninstall photoshop from my CS3 suite (so I could reinstall) but got a JavaScript Alert: "Critical errors were found in set up. Please see set up log for file details." Seeing as I am not the best with the behind the scenes technical stuff, I have no idea what this means or where the set up log even is. Any help anyone can provide?
    I have had CS3 installed on my computer for over a year. I started having problems about 4 months ago.

    I am having similar problem.  Can't open any of CS3 programs after trying to download Dreamweaver Trial, which wouldn't work because "couldn't remove DLM extention" error message.  So now I can not run Illustrator, Photoshop, or even Adobe Reader.  These are properly licensed for about a year. I get "License for product has stopped working".  Have 2 pending cases open with Adobe support (one for Dreamweaver trial, one for license problem) since 8/3 with NO ANSWERS - It says answers within 1-3 business days.  Was on phone support hold today for over 3 hours before line went dead with no help.  What is up with adobe support?  Can anyone help?

  • What should I use for my global_name and sid_name for my listener.ora,

    I do tnsping system2 from system1 and I got an error ORA-12535: TNS:operation timed out
    So, I issue a command as below on my system2.
    lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 22-MAR-2010 12:20:36
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 22-MAR-2010 12:20:26
    Uptime 0 days 0 hr. 0 min. 11 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=1521))) *# I block my IP here, I don't want to post my IP*
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully

    There is no firewall between system1 and system2.
    This is my tnsnames.org configuration:
    SYSTEM2TNS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = xxx.xxx.xxx.xxx)(Port = 1521)) *# I don't want to post my IP, so I block it*
    (CONNECT_DATA = (SERVER = DEDICATED)
    (SID = orcl)
    lsnrctl statusLSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 22-MAR-2010 12:20:36
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 22-MAR-2010 12:20:26
    Uptime 0 days 0 hr. 0 min. 11 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=1521))) *# I block my IP here, I don't want to post my IP*
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully

  • Is Flash what I should be using for this simple animation?

    Hi I have a fairly simple question...
    Im working on a project which started with simple drawings of
    a particular animal. One of the drawings ive done involves the
    motion of part of this animal. The next portion of this assignment
    requires me to begin working digitally, and recreating these
    drawings precisely in Autocad.
    The problem is that I need essentially create a storyboard of
    images showing the motion of this animal in detail. So essentially
    im going to need 40+ frames showing this motion. It would be the
    equivalent of creating a flip book animation, but im going to be
    tiling all these frames next to eachother.
    Now as opposed to drawing 40+ separate images I had the idea
    to use Flash to produce these images for me.
    Heres essentially what I want to do:
    - Scan the drawings ive done
    - Reproduce them digitally through Autocad
    - Import these drawings into Flash (either as Autocad files
    or I can convert them to Illustrator files)
    - Basically have two images... 1 at the start of the motion
    and 1 at the end of the motion, and use flash tween's to
    extrapolate the motion in between.
    So ideally I could create 40 frames, with the 1st keyframe
    showing the beginning of the motion, the 40th showing the final
    stage of motion, and each frame in between providing me with the
    separate drawing that I need.
    Any thoughts or advice on how I can go about doing this? I
    havent used Flash in years so im still relatively unskilled with
    it...
    Thanks so much for your help!!

    I agree with Gibbah. Flash doesn't do magic with tweens. Of
    course, you can try. But if you're looking for NATURAL motion, then
    it needs to be drawn naturally-by hand.
    Sure, you can try it in Flash, but at best it will help you
    to tween every 4th drawing or so (so you'll still need 10 key
    drawings), and you'll spend ages tweaking the tweens, since (I
    repeat) Flash doesn't do magic with tweens, nor does any other
    software. You're talking of 4-legged animal movement, which I
    assume includes walking, which is a pretty complicated thing: 4
    legs, each double-jointed, plus the feet, then a body which bends,
    and the head and neck which move up and down. You'll have to
    separate each leg, the body and the head, at the very least, tween
    each of these, then go back and fix where the tweens come out all
    screwy.
    As for scanning, you can scan line artwork (preferably very
    clean lines done with pen or dark pencil) and then vectorize them
    directly in Flash. No need for the Autocad stage.
    To be honest, I think you'll find it faster to do the 40
    drawings individually. Check a good reference book such as the
    famous Eadweard Muybridge (yes, I spelled it correctly) photos of
    animal movements, and then you can rotoscope these (that is, trace
    them). You'll end up with less frustration and a gorgeous animation
    which looks natural, not machine-made. You could do the tracing
    directly in Flash as well, using the onion skin mode to help
    you.

  • What loop should I use for this?

    for (int j=0; j<8; j++) {
                                source.setBackground(EXIT_COLORS[j]);
                                if (j==7)
                                     break;
                                }[/code
    okay, what i'm trying to do here, is display a color object from an array EXIT_COLORS[], which has 8 colors in it. Now I only want to display all of these colors 8 times. right now I can only diplay the last color or the first...I tried double for loops, and it didn't seem to work either...if you have an idea please help                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    sorry about that...I dont' need a break...I'm just trying different things to see if it'll work...
    see, the problem is, that every time my method runs i want one specific color to be displayed on a button, the next time it is ran, i want the next color in the array to be displayed...until the end of the array is reached, then I don't want any more to be displayed...But I can't figure out how to do this...
    here is my method:
         private void updateTiles() {     
                 // Now draw the tiles accordingly
            for (int r=0; r<size; r++) {
                 for (int c=0; c<size; c++) {
                      JButton aButton = view.getFloorTileButton(r*size + c);
                          if ((aButton.isSelected()) && (mode == EDIT_WALL_MODE)){
                               aButton.setBackground(Color.gray);
                      else if((aButton.isSelected()) && (mode == SELECT_EXITS_MODE)){
                          for (int j=0; j<8; j++){
                                aButton.setBackground(EXIT_COLORS[j]);
                       else if(mode == WAIT_MODE)
                           aButton.setBackground(Color.white);
                 // Set the text for the floor tile if it needs to be set
                     // Set the background color for the floor tile
            // Display the path if necessary (in Part C)
         }

  • 1,1 running Lion with XP Boot (re-install and what should i use for recovery disk or usb stick)?

    i am trying to give my 1,1 mac pro a little love and would like to keep this machine running lion. i also have a boot camp installation of XP on it.
    1. can anyone give me instructions on how/whether i can basically do a fresh install of Lion on this machine and minimize the system so it is not cluttered up with all my previous software etc, etc while still maintaining the original XP boot camp partition which i really need to have?
    2. can anyone clarify for me what i should have on hand /if/ i need to boot into recovery mode or some other safe boot mode? i recently ran into an issue where i may have had to use the old Disk Utility format function and there was a reference to booting using the DVD install disks. however i am really confused as to what i should have on hand. ALSO the last time i had to do something on this machine i was told to boot into the Recovery Partition and it appears for some reason (perhaps because i had a "non-standard" windows 7 boot camp installation on the drive at the time??) that there was no recovery partition created when i upgraded to Lion.
    - /anyway/ i am finding that i have the two ORIGINAL install disks for the mac pro on hand, a Max OS X Leopard and a mac OS X Snow Leopard DVD on hand but i am thinking that i should be creating some kind of USB stick similar to the one i created with yosemite? actually, i am not even sure what this USB stick for yosemite is for but i guess i can use it to boot into safe mode or something?
    THANKS for any help as i'd like to get this business under control a little better in case i have an issue.
    i'd also like to install Lion so that there is a Recovery Partition if possible and i think this may be possible if i don't have the windows 7 partition in the machine when i do a fresh install. any help would be great. thanks.

    You have to go out of your way to build the Installer Disk yourself. But this tool makes it easy, and this site contains instructions:
    http://diskmakerx.com
    the bootable installer is basically to re-install the OS if i have to
    Yes.
    the recovery partition is somehow for fixing a problem
    Recovery can go and get you the software and re-download it and start the Install, and allows the use of Disk Utility and can reset passwords.
    or is there some overlap?
    Yes. Both give you access to the Utilities that used to be on the Installer DVD. Disk Utility to Repair or initialize and a few other tools that can allow you to set up to install on an otherwise-bare disk or change your password.
    is "Safe Mode" something completely different
    Safe Mode is a way to start the fully-Installed Operating System in a special way. It first does one pass of Disk Utility (Repair Disk) against the Boot Drive. [Normally this would require booting from a different drive to make repairs.] Then it loads a minimal set of Apple-only kernel extensions, and uses a one-size-fits-all screen resolution. Then it demands your Username and password to proceed.
    From there you can fix settings, use the Finder to add or delete things, and check operation with minimal extensions versus all your daily-use extensions. Very helpful for debugging extension conflicts and graphics settings problems, and fixing damaged settings. The next Restart builds a new extensions cache.

  • What functionlity to use for this business requirement ?

    Hi Experts,
    We have following requirements in our system
    1. PRODUCT A will have component that are interchangeable. lets say components X, Y and Z.
    2. PRODUCT B will also have the same component which is interchangeable (X, Y, Z)
         X. Y and Z componets will appear on alternative BOM of A and B.
    3. Product C has component X. This means that unlike the first two cases, C can only have X
    4. There is a generic code W which actually just mapped to X, Y and Z.
    5. All demands of X, Y and Z should sum up to generic code W
    6. Procurement knows that generic code W pertains to X, Y and Z and thought that X, Y and Z are interchangeable so he can order any of these 3 components in any quantity.
    7. Problem is on Product C because unlike in Product A and B, Product C is using component X exclusively. So if procurement ordered only lets say component Z, then Product C will noy have component X to use.
    We thought of using FORM FIT FUNCTION of product interchangeability with components X, Y, Z and generic code W as part of one class and generic code W as the leading material but we end up with the problem we have in item #7.
    I hope you can help me brainstorm what fuctionlaity we can use in order to meet above requirements. Thanks.
    Regards,
    Mylene

    Mylene,
    You have created your own problem.  By your own statement, X/Y/Z are not interchangeable in all cases, and yet you are telling your Purchasing people to treat them like they are.
    I don't know what is a 'generic code', but it sounds like  'W' is outside of your A/B/C BOMs, and you are buying something for which there is no MRP PrReq.......Tsk Tsk. 
    What business benefit are you getting by using "W"?
    If you don't want to change any of your Bills of materials, then make X the primary component on A, B, C.  Forget about W, just buy X every time.  Manually issue Y & Z to the permissable orders as requirements permit.  Once the stock of Y, Z is used up, there is no further issue.
    Or, perhaps X is the more expensive of the three.  Then, turn W into a real part in your BOMs, and stock it as such, separately from X.  The Purchasing specs of W remain: 'either X or Y or Z'.  Put W into your boms for A and B.  Leave X in the BOM for C.
    Regards,
    DB49

  • What Should I Use for

    Hi everybody,
    I wanted to ask something about a technical and theoretical.
    I have a project that includes creating a website like an e-learning site.
    it must have these,
    -4 type of users (admin, teacher, student, guest)
    -4 types of permission
    for example, teacher can prepare tests, quiz for his/her students and can publish it on site,
    students can join the lessons he/she selected, can view her/his own history on lessons
    -the users adjust some personal settings like background and fonts
    - site contains sounds, videos, slides, e-books and can upload from a client or can share a link from external and publish them at all.
    i need a suggestion, i'm planning to work over this project with flash+php+mysql. And also i have to say that i'm newable at web sites, i know that some systems, CMS (Content management systems) can make some easily and you can have the chance of customize it.
    i ask for for suggestion for creating this site. i'm planning to use Flash+Php+Mysql with a CMS programme. What do you suggest to me i'm sorry for my english, and thank you for everything from now..

    Search "Moodle"
    Its free/open source and it should meet your needs
    Nathan

  • H.246 (MPEG-4) versus .AVI? Which one should I use? What should I use for audio?

    Hey guys, I'm fairly new to AAE. Actually, I've had the trial for only 8 days now. I just got a capture card so I could record BF3 gameplay on the Xbox 360. I've spent sometime doing missions and whatnot, recording gameplay, so I could bring it into AAE and edit it. Now I just heard that AAE is more compatible with MPEG-4 files than with .AVI files. I'm not sure about this, but I do know that when I RAM preview with .AVI files or MP3 files, the audio is always cutting in and out.
    My question is, should I record and edit my gameplay with H.246 (MPEG-4) or should I be using .AVI files instead? What's important to me is the quality of the video, and how well it works with AAE (I don't want it to flicker in/out)
    But also, what's the best audio file format? As in, best quality and compatibility, also I don't want audio being cut in/out when I preview it.
    Thanks!

    Use AVIs. H.264 is a compressed delivery format and not necessarily meant for editing. Same for you MP3 - AE is simply rubbish at dealing with them. Use WAV instead. Do a little reading here on this forum. These topics have been covered many times.
    Mylenium

  • What should I use for Logic Training??? Book(s) and or videos

    Hello Guys,
    Real old school SVP & PT user just installed LP and am loving it!!! I installed L6 years ago and cold not get my brain around it. This time it's a bit different... I see it it this time but could use some help. Are there any books or videos you guys could recomend.
    Thanks in advance,
    Prio
    MacBook Pro 17" w/ 002   Mac OS X (10.4.8)  

    hi
    i'd second the above recommendation.
    The martin sitter book (apple series ) for Logic pro 101 is great and even though i'd been using logic for 2+ years when i last read it i found lots of useful tips. I've bought the second book (Advanced Logic pro) again part of the apple series.
    I've bought some of the macpro videos (www.macprovideo). The videos in general are BRILLIANT!
    Unfortunately, you've just missed the sale...but they are well worth the full price.
    The sculpture, ultrabeat and plugins videos i can vouch for are really really useful.
    If you want some help around the basics of logic then the martin sitter video 101 looks good - but i prefered the book as it comes with the files to work along with.
    check out the demos on their website & happy training!
    btw, there are another series of logic videos (Ask videos i think) - seem good but i found them a little dry (the demos) and i found macpro videos easier to follow personally. Others vouch for askvideo so it depends on your particular learning style.

  • What should i use for programming on Java (+)........

    I wanted to know whether i would better use JBuilder or Java SDK to compile my files??? Are there any advantages in using JBuilder???

    Dear RingRose,
    I started learning Java about 1 1/2 yers ago.
    I learned Java and JBuilder at the same time.
    It is kind of like learning weight training and football at the same
    time. They do complement each other but are also different.
    That is probably not much help but I can tell you that
    now that I have learned the basics of Java JBuilder IDE makes my life
    easier by quickly identifying where my errors are .
    They are numerous other reasons for using JBuilder but I am not an expert to list all the right reasons.
    Go for it !
    Stan

Maybe you are looking for