Handling computer specific path names - best way to handle?

I'm trying to develop something that will be deployed onto another system. I have to run some command line calls but the command to call the path will change depending on the machine. In the development environment it will be different than another location. I have thought of two possibilities but there are problems with both
1) Properties file.
Problem with this is that I will deploy an EAR file on location. This means extracting the Properties file out of the EAR and changing a line. Then, I'm using weblogic server and if the server is restarted, the app gets redeployed which means that the file will be redeployed and have to be changed again.
2) running a script to set environment variables
The command I have to call is using Runtime.getRuntime().exec() so this will open up a separate process and not have knowledge of the environment variables that may have been set up previously.
Any other ideas?

1) Properties file.
Problem with this is that I will deploy an EAR file
on location. This means extracting the Properties
file out of the EAR and changing a line.No, it could mean building the EAR file per deployment environment. So machine #1 might have a slightly different EAR than machine #1 will have. People do this all the time.
Then, I'm using weblogic server and if the server is restarted,
the app gets redeployed which means that the file
will be redeployed and have to be changed again.No it won't. The original EAR deployed to that server won't need to be changed, because it was already the correct EAR to begin with.

Similar Messages

  • I am giving away a computer, what is the best way to wipe out data prior to depature

    i am giving away a computer, what is the best way to wipe out data prior to depature

    Did the Mac come with two grey disks when new? If so, use disk one to erase the drive using Disk Utility and then re-install the OS from the same disk. Once installed, quit and when the new owner boots they can set it up as a new out-of-the-box Mac when they boot it up. The grey disks need to be passed on with the computer.
    If you need detailed instructions on how to erase and re-install please post back.
    If the Mac came with Lion or Mountain Lion installed the above process can be done using the Recovery HD as since Lion no restore disks are supplied with the Mac.
    The terms of the licence state that a Mac should be sold/passed on with the OS installed that was on the machine when new (or words to that effect).

  • Wife's computer died - what's best way to use G4 as interim?

    My wife's iMac G3/350's power supply recently died, and rather than replace it (at $250!), we are eventually going to buy her a new iMac. In the meantime, I have a PowerMac G4/350 she can use in the interim, but I'm wondering what the best sequence of actions is to move her from the old iMac to the G4 to her new iMac. I had the repair shop pop the HD from the iMac so I could install it in the G4 for the time being. This brings up my first question: I had previously installed a second, 160 GB HD with a new controller card (since the G4's BIOS would not recognize more than 128K). I use the 160 GB drive as a network backup drive, but have had to pop that out in order to put my wife's 7 GB iMac drive in so she could access her information. There is certainly room in the G4 case for a 3rd drive to the left (front) of the two already installed, but I'm afraid to force the parallel cable to the side to connect to it - is there a cabling solution that would allow me to have all three drives (the original G4 drive, the 160 GB drive, and the iMac drive) in the case? I realize there is also the option of getting an external case for either the iMac drive or the 160 GB drive, but to me it doesn't seem to be worth spending the $35 or so for the temporary availability of the iMac drive, since we won't really need it once we get my wife migrated to a new iMac.
    The second question concerns the most efficient method for getting her set up on the new iMac. Since she always ran OS 9 on her iMac, I don't think it will be as simple a matter as hooking both the G4 running off her iMac drive and her to-be-acquired new iMac to our network and running the transfer utility. Would it be best to manually transfer her files/email/etc. to the G4's drive, then do the same when we get the new iMac, or is there a better way?
    Thanks for your help on this multipart question.
    G5/dual 2.5 Ghz   Mac OS X (10.4.7)   Also G4/350

    Hello George -
    Since the iMac drive would just be in there temporarily while you transfer the information, I wouldn't worry about finding enclosure space for the 3rd drive.
    Once her OS X account is set up on the G4, I would connect the 7gig (internally or otherwise) and transfer her files into her account. From there, unless you had a specific purpose in mind for the 7gig, I would reformat it and toss it - make sure you have everything working on the G4 drive though first!
    Once you get the new iMac, you can use target mode (on the G4) and the Migration Assistant (on the new machine). Though I've only had to use it once, it seemed to do a decent job.
    Let me know if this helps and good luck!
    Matt

  • What is the best way to remotely access my sister in laws Mac who lives in another city to help her with her computer problems?

    as stated above
    What is the best way to remotely access my sister in laws Mac who lives in another city to help her with her computer problems?

    The best way? Get her to bring it to you, especially if she makes good cakes.
    Apples Back to my Mac isn't really suitable for this - it is designed for a single person who wants their Apple ID on the system. It would mean she would have to share hers with you & you would also have to setup her Apple ID on your Mac - it is messy & causes trouble with iCloud, iTunes etc.
    You can try Messages if she is able to begin a session with you, see the 'invite to share screen' in the menus, weirdly you need to use a service that isn't from Apple.
    Messages (Mavericks): Share your screen
    It may be better if you to setup LogMeIn or GoToMyPC. They should 'dial out' & maintain a constant connection so you can login whenever the Mac is powered up. It won't, require a human to initiate the process at the other end, just be aware that the router may cause issues depending on what is configured, you may need settings to enable automatic port forwarding - it really depend on which option you choose.

  • Best way to manage 2 iPods on one computer

    I know there are similar threads, but I didn't see my specific question answered, so here goes.
    I have an iMac that my wife and I share using separate user accounts (trust me, it's better that way). I already have an iPod nano that I use on my account exclusively. Now, I bought my wife a nano for Christmas and without thinking about it too much today I logged onto her account, plugged in her new nano and set up a new iTunes account under her name, thinking it would be best for her to control and manage her own music from the store. However, now I'm realizing that she can't copy any of the music from my Library into hers (even songs ripped from my CD's) to sync to her iPod. I was able to share my Library with her so she can play the songs in my Library, but I can't copy them into hers. Even if she re-rips songs from our CD's into her Library this seems like a waste of space to have duplicate copies of certain songs, and if she wanted to have certain songs I've already purchased it seems like she should have permission to use them under the "5-computer authorization" rules without having to purchase them again. Is that true, or just wishful thinking in today's DRM world?
    I've read some threads that discuss creating a "shared" iTunes folder that both accounts could point to and create separate playlists for each. I guess that would work, but now I've already associated her iPod to her independent iTunes account. Is there a way to "undo" that and associate it with my existing account. When I set it up earlier I had the option to log into my existing account and I chose to set up a new one. Was that a mistake?
    I apologize for the rambling, but I'd appreciate some advice on the best way to set up our system with 2 iPods and 2 user accounts. If I set it up to have 2 iPods under one iTunes account, accessed from 2 different user accounts on my iMac, would I then be able to copy music files freely between the two Libraries? If so, that's probably what I would want to do - but I need to somehow establish her iPod with my existing account. If not, I guess I should just keep it the way it is now since I can't share the music anyway.
    Sorry for the rambling...Merry Christmas to all!
    Allen

    Syncing is generally referred to as the "automatic transfer of songs and playlists" to the iPod from iTunes, and manual means you do it manually by dragging and dropping individual songs/albums/artists etc from iTunes to iPod.
    Which setting is better for your iPod(s) depends on many things. You could set both to manual and drag different playlists to different iPods.
    Or, you could keep the convenience of auto sync and choose to transfer "selected playlists" to each iPod. This setting can be found by connecting the iPod and when the summary screen appears, click on the 'music' tab, you will see the options to:
    "sync music" with either "all songs and playlists" or "selected playlists". Choose "selected playlists".
    Select the playlist(s) that you want to go to the iPod, and that's it. Then do the same with the other iPod.

  • Best way to handle cliet disconnection

    hello my friends.
    im working on a project that there is one server and it runs always and it should receive clients connection requests and handle their disconnection.
    i wrote my disconnect code on clients like below:
    private void button2_Click(object sender, EventArgs e)
    server.Shutdown(SocketShutdown.Both);
    server.Disconnect(true);
    server.Close();
    }// end of button2==disconnect
    but imidiately server program crashesh and i think its obvious. because there is still a socket on client. how can i handle this kind of coding on server.
    i thought to instead of disconnecting client by itself it send a string like "dis" and if server checked that name disconect that socket and remove that socket from the List.
    what you think. what is the best way to behave with a client

    Hi,
    I've done a great deal of work with mobile accounts in Snow Leopard and I'm now having a "play" with Lion. To be honest you have to sit down and think about why you need mobile accounts.
    If your user only uses one computer then your safer having a local account backed up by a network Time Machine, this avoids the many many woes that the Servers FileSyncAgent brings to the table.
    If your users are going to be accessing multiple computers on the network and leaving the network then a mobile account is good for providing a uniform user experience and access to files etc. However, your users will have to make a choice as to whether they want their iPhoto libraries on one Local machine (backed up by Time Machine) or whether they want their library to be hosted on the server and not part of the Mobile Home Sync schedule (adding ~/Pictures to the excluded items on the home sync settings).
    With the latter, users will be able to access their iPhoto libraries on any computer when they are within the network (as it's accessed from the users server home folder).
    With the first option the user would have their iPhoto library on one computer (say the laptop they used the most) but then would not be able to access it from other computers they log on to.
    iPhoto libraries are a pain, and I'm working hard to come up with a workaround. If your users moved over to using Apeture then you could include the aperture library as part of the home sync thanks to Deeport (http://deepport.net/archives/os-x-portable-home-directories-and-syncing-flaw-wit h-bundles/)
    He does suggest that the same would work with IPhoto libraries - but it doesn't for a number of mysterious reasons regarding how the OS recognizes thie iPhoto bundle (it does so differently compared to Apeture).
    Hope this helps...

  • Best way to write specific information to a file

    Hi there,
    I'm looking to write specific information from my program to 2 separate files.
    Before the program runs, it asks the operator for their info (name, password, run ID #, a couple safety checkboxes).
    So, I would like the first file to record log-in information (i.e. The operator's name, the date and time they accessed the program, and the Run ID #) all in a spreadsheet.
    I would like the second file to record data from the different components of the program ( 2 tank levels, a flow meter, and run ID #) in another spreadsheet.
    Any thoughts on the best way to do this? I've looked at using arrays to organize the info/data, and then write to spreadsheet, but I haven't quite figured it out...
    Thanks,
    Daryn

    For the first, you could convert everything to strings, then send an array of strings. For the second, just send an array of numbers.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Can you put two iTunes libraries on the same computer? what is the best way?

    Is it possible to put two iTunes libraries on the same computer?  What is the best way to do it so the two libraries are not connected?

    MSGTN wrote:
    Is it possible to put two iTunes libraries on the same computer?
    yes.
    What is the best way to do it so the two libraries are not connected?
    give them distinct names. launch iTunes while holding the option (⌥) key, click on choose library when prompted, and select the iTunes folder of the desired library.
    FWIW, there are 3rd party apps that help with managing multiple libraries, notably:
    PowerTunes
    iTunes Library Manager

  • What's the best way for a web app to handle logins and sessions?

    I'm deploying in JBoss, using JSF. As is often the case, I keep User information in an entity bean. My question is, what's the best way to handle this bean?
    My inclination is to create a login page with a LoginBackingBean atached to it. When the user attempts to log in, it will see if there is a User entity bean that corresponds to the given name and password. If there is no User bean that matches, obviously we show an informative error screen.
    But what happens if there is a valid user?
    In the plain old Servlet world (without EJB / J2EE) I would just put the User object (it's an object, not an EJB) into the HttpSession, and I would create a Filter that would check for the presence of that User object, and I would map the filter to something like /members/*, and that would be it. I would use Hibernate to persist the User object, and there would also be a filter that creates a Hibernate session and stores it in the Request so that the User object would work and persist.
    How do I do this within the J2EE / EJB world?
    My first thought would be to just do the same thing. Install the User bean into the HttpSession, and create a filter and do all the same stuff. Is that the right way to do it? It would work pretty well with JSF because I could just access things in the normal JSF way: #{user.firstName} would find the "user" object in the HttpSession scope. So that's good.
    One question that comes up from that is if the user makes some change to the User object that is in the Session scope, will the EJB automatically do the right thing and make those changes persistent? Is there anything else I need to do?
    I'm new to the EJB world, but from what I can see so far, it seems like it's the best way to think about a web application.
    Thanks

    hi ,
    i think the best way is to create java beans ,in that bean call your EJB ,
    and check the validation over there.
    and make that bean scope to session.
    in each and everypage try to check the session ,if it is not valid then forward to your login page...
    otherwise continue to give access to him like guest
    Regards,
    AfTaB

  • What is the best way to get PATHS from one Photoshop psd file to another?

    Hi! New on the site, and I signed up specifically to ask the best way to import one .psd file into another, including the paths on the paths palette.
    Almost all of my Photoshop drawings make heavy use of vector paths, which I then stroke using using PS natural-media brushes and the "stroke paths" function (usually with "simulate pressure" checked.) Also, my .psd files tend to be, um, HUGE... and I typically break up a whole drawing into separate PS files and then assemble all of them into one final finished graphic.
    I have no trouble moving raster stuff from file to file. Just put all the layers I want to transfer into a group and drag the group to the other .psd. Works fine, including layer masks. But I have not found a good way to get vector paths from the Paths palette of one .psd to another. Of course I can select paths and copy them to the Win clipboard, switch to the other .psd, and paste them back in. The drawback to that method is that I lose the correct size relation between the results of previously done "stroke paths" operations (on raster layers) and the paths that generated them. Sometimes the copied-in paths are way too large, sometimes way too small, never Just Right.
    As I'm sure most of you know, if you resize an entire Photoshop document from within PS, any paths it contains are correctly resized along with everything else. That's no longer true after grouped raster layers are dragged over to another document but paths are copied and pasted in. The size connection is lost. (Location placement, too.)
    I WANT those paths! After I bring a piece of a drawing into the full final drawing, what looked good when I was working on it separately often doesn't look right any longer and I want to re-stroke those paths using different brush diameter, opacity, etc., or maybe even a completely different brush.
    I've tried bring outside .psd files in as smart objects with the Place command but either that doesn't work or I'm not doing it right. Using Place, the paths in the Placed document don't come in at all.
    I'll be very grateful for any hints or strategies any of you knowledgeable folks can give me. Thanks very much!
    Jim
    Note, PS CS3 extended on Win 7 pro.

    Denny
    1. Connect the two macs - firewire, ethernet, sneakernet as suits you - and copy the iPhoto Library Folder from Old Machine to New Machine. Drag it from Home/Pictures to the same location on the new machine.
    2. Because all the files 'belong' to the account on the old machine, you have to update the file permissions: hence Download BatchMod from
    http://macchampion.com/arbysoft/
    And apply it to the iPhoto Library Folder using the settings found here:
    http://homepage.mac.com/toad.hall/.Pictures/Forum/BatChmod.png
    (Credit to Old Toad for this one).
    Note: This must be run on the new machine after copying the files over.
    3. Then launch iPhoto on the new machine.
    Regards
    TD

  • What is the best way to handle .mod files in premiere pro cs4?

    I recently got a JVC Everio GZ-MG130u and as I'm sure many of you are aware, it saves footage in the .mod format.
    I have googled this and found quite a few different solutions, but I'm just wondering if anything has changed since some of these solutions were posted, or in other words, what is the best way at this current point in time to handle .mod files in premiere pro cs4?
    As far as I know, the best thing to do is convert the .mod to .avi and then import it into premiere so it can be edited.. Is there a better way to do it than this? Also, by doing it this way, will I have separate audio and video tracks?
    Thanks.

    I have just done a bit of reading, here. All of the quotes that follow are from users who have posted in that thread.
    It seems that there isn't one solid answer on this subject. The thread that I linked to was started 2 years ago, and replied to just 4 ago, so it's relatively current.
    I noticed a couple different interesting statements:
    posted by mmontgomery:
    In the case of .MOD, you are actually getting a MPEG-2 file. The way
    video files work is that there is a codec (COmpressor/DECompressor)
    algorithm and a file wrapper (or extension). A JVC .MOD file is a
    MPEG-2 encoded file, with a .MOD extension.
    You're faced with two
    challenges, first the .MOD file type is only recognized and support by a
    few applications. I think we covered some of those already. The
    interesting thing about wrappers and extensions is that they can be
    dealt with in a variety of ways. Sometimes all you need to do to convert
    the video file to a compatible video file is to change the extension.
    In the case of .MOD files that's not enough. The .MOD wrapper apparently
    does a few more things than just bare a unique extension name. It
    requires a slightly more complicated method to convert that file. That
    is why there is supplied software and that certain third party
    applications have .MOD support.
    (posted 2 years ago)
    This seems to indicate that Ann's solution of simply re-naming the extension is not good enough, unless I am mis-interpreting what she meant.
    However, another user said:
    posted by futball8:
    I edit with Adobe Premiere Pro CS3. All I have to do is simply rename
    the .MOD files as .MPG and then import into PP CS3. It takes a small
    amount of time to conform the audio, but no file conversion is
    necessary. It's a pretty slick workflow and I've never encountered any
    problems editing them this way.
    (posted 5 months ago)
    One can only assume that simply re-naming the extension from .mod to .mpg works in some circumstances, and doesn't work in others. I assume it depends largely on the editing software being used. Perhaps there are still issues that futball8 was simply unaware of or never encountered.
    That said, there seems to be a couple of different real solutions to this problem that I have found:
    1. Simply use an editing program that supports .mod file format. While pe7 and pe8 supposedly support the .mod format, the following should be noted:
    posted by macksgarage:
    While Elements 'supports' these files, it is markedly unstable and  frequently crashes while using the files, though the application is otherwise reliable.  The solution I have arrived at is to repair the  container using ffmpeg. (see #3)
    (posted 5 months ago)
    2. Use a file conversion utility of your choice that will covert .mod to .avi, or another desired format. Import the resulting .avi file into premiere pro cs4.
    3. Use FFmpeg. This seems to be the best solution as it does not convert any audio or video:
    posted by macksgarae:
    If you are not familiar with ffmpeg, it may be a bit of a bear to
    learn, but it's not only useful for this, but functions as a video swiss
    army knife useful for splicing, muxing/demuxing, and rendering just
    about any format into just about any other format.
    ffmpeg is an open source project from the linux world, but it has
    been ported and is supported on windows.  Fetch it here and place it somewhere handy
    on your system.
    To rewrite the container into a nice, standards compliant .mpg file
    that doesn't make applications die, WITHOUT rerendering video or audio
    itself, I use this command.
    ffmpeg -i INFILE.MOD  -acodec copy - vcodec copy OUTFILE.mpg
    This not only renames the file, but actually rebuilds the container
    around unmodified video and audio data, yielding a file which works much
    more stably with Adobe applications, and presumably others as well, as
    ffmpeg's open source development goals result in very standards
    compliant files.
    (posted 5 months ago)
    Now, this seems to properly address the issues that can arise from simply renaming .mod to .mpg, as suggested by Ann. So from this point, I assume you can simply import the .mpg into Premiere Pro cs4 (or any other .mpg compliant program) and edit without issue, but it seems like I remember hearing something about Premiere not liking mpegs or something like that, so in that case, maybe it'd be better to skip this and go with option #2. But, it's been awhile since I've touched any NLE, much less premiere pro cs4, so I could be completely wrong and it may have no problems handling mpegs.
    All of the things that I've quoted here came from the same thread, so I don't know how accurate any of this is, but the people that have posted these things seem fairly knowledgeable. If someone reads all of this and can confirm or deny any of it, it would be much appreciated.
    Option 1 is not really an option for me, because I am sticking with premiere pro cs4 -- I'm not going to get another editor just because it has .mod support. That leaves me with options 2 and 3: Convert to avi, or change the file wrapper/extension properly with FFmpeg and then simply import the resulting .mpg file... Which is better? Or is there yet another solution that I am unaware of that would be even better?

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,
              I have a servlet in a web application that is deployed to a cluster, just
              wondering what is the best way to get the name of the node that the server is
              running on at run time??
              Thanks
              

              Please try to modify the following code and test for your purpose: (check Weblogic
              class document for detail)
              import javax.naming.*;
              import weblogic.jndi.*;
              import weblogic.management.*;
              import weblogic.management.configuration.*;
              import weblogic.management.runtime.*;
              MBeanHome home = null;
                   try{
                        //The Environment class represents the properties used to create
                             //an initial Context. DEfault constructor constructs an Environment
                             //with default properties, that is, with a WebLogic initial context.
                             //If unset, the properties for principal and credentials default to
                             //guest/guest, and the provider URL defaults to "t3://localhost:7001".
                             Environment env = new Environment();
                             //Sets the Context.PROVIDER_URL property value to the value of
                             //the argument url.
                             if(admin_url!=null){
                                  env.setProviderUrl(admin_url);
                                  //Sets the Context.SECURITY_PRINCIPAL property to the value of
                                  //the argument principal.
                                  env.setSecurityPrincipal(username);
                                  //Sets the value of the Context.SECURITY_CREDENTIAL property to
                                  //the value of the argument cedentials
                                  env.setSecurityCredentials(password);
                                  //Returns an initial context based on the properties in an Environment.
                                  ctx = env.getInitialContext();
                             }else ctx = new InitialContext();
                             home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                             ctx.close(); //free resource
                             // or if looking up a specific MBeanHome
                             //home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." + serverName);
                             DomainMBean dmb = home.getActiveDomain(); //Get Active Domain
                             ServerMBean[] sbeans = dmb.getServers(); //Get all servers
                             if(sbeans!=null){
                                  for(int s1=0; s1<sbeans.length; s1++){
                                       String privip = sbeans[s1].getListenAddress();
                                  sbeans[s1].getName();
                             sbeans[s1].getListenPort();
                                                 WebServerMBean wmb = sbeans[s1].getWebServer();
                   }catch(Exception ex){
              "Gao Jun" <[email protected]> wrote:
              >Is there any sample code? Thanks
              >
              >Best Regards,
              >Jun Gao
              >
              >"Xiang Rao" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Sure. You can use the Weblogic management APIs to query ServerBean.
              >>
              >>
              >> "Me" <[email protected]> wrote:
              >> >
              >> >Thanks for your reply, i was hoping to find a better way for example
              >> >a class in
              >> >weblogic API.
              >> >
              >> >Thanks
              >> >
              >> >"Xiang Rao" <[email protected]> wrote:
              >> >>
              >> >>Physical: InetAddress.getLocalHost().getHostName()
              >> >>Weblogic: System.getProperty("weblogic.Name");
              >> >>
              >> >>
              >> >>"Me" <[email protected]> wrote:
              >> >>>
              >> >>>Hi,
              >> >>> I have a servlet in a web application that is deployed to a
              >cluster,
              >> >>>just
              >> >>>wondering what is the best way to get the name of the node that
              >the
              >> >>server
              >> >>>is
              >> >>>running on at run time??
              >> >>>
              >> >>>Thanks
              >> >>
              >> >
              >>
              >
              >
              

  • SAP PI/PO 7.31 - Single Stack - Best way of handling 'TBDL' messages

    Hi All,
    I would like to know what is the best way of processing 'TBDL' messages that are shown in 7.31 message monitoring.
    One way I know is to resend the messages but if the volume is huge (100k+), is there a strategy to reprocess them automatically by creating a Job? AFAIK, a job only picks NDLV messages for reprocessing.
    Please share some information on handling such scenarios.
    (PS: I've been through many links with TBDL issue but strategy wise, could not find any concrete responses. One of them suggested cancelling all using SQL command. I would like to know if there are some other ways.)
    Thanks,
    Abhishek

    Hi Abhishek,
    1. TBDL message are handled automatically by the system. Is there a specific time frame(or any setting) under which they start getting delivered automatically? Or it waits for resource/thread recovery?
    - TBDL is an intermediate message status. Depending on the number of queues/threads for this adapter type, you will also have 5/10 messages in Delivering status. Something is preventing these messages from being delivered and this results in the backlog of messages in TBDL status. Only when the messages in Delivering status are processed will the threads be released and then become available for the messages which are backed up in TBDL.
    2. If messages remain in TBDL for a longer time than expected(like 3-4 days), is there a way to resend them? Any job configuration that can do this?
    - There is no way to resend TBDL messages. As above, this is an intermediate status. The focus should be on the messages in Delivering status and why these are not reaching their target and thus freeing up the threads for the backlog.
    3. I would like to understand what factors on sender/receiver side can cause this to happen? Any supporting/clarifying documents? (1808554 is already analyzed and we are on a higher patch level)
    - It is very difficult to answer this. There could be many different factors which could cause this to happen. Receiver system may not be available, network issues, bugs on SAP side etc. It really depends on the individual case. Best practice here would be to ensure any timeout settings are configured for the relevant adapter types. This can help prevent issues.
    4. Changing message status at DB level is advisable or not? If yes, then setting them to NDLV and reprocessing using a job is suggested?
    We do not advise to make any changes to message status at DB level. This option should only ever be used as an absolute last resort.
    Ultimately the best way to get to the bottom of this is capture Java Thread dumps and create a support ticket with SAP.
    Regards
    Mark

  • Best way to handle XML data

    I was hoping someone could tell me if I'm doing something stupid or a much harder way then needed.
    I have some data that is stored in an xml file. Probably 150 items (will stay around this number) with less then a dozen attributes per item.
    The name of each of these will be loaded into a list on a jsp. When clicking on an item the details will be displayed on the page below it.
    Right now my plan is to:
    !. read the file in on application startup and store the items in a collection of beans in the session, or maybe at application scope.
    2. Then in the jsp use AJAX and pass the items ID to a servlet.
    3. The servlet pulls the collection out of session or application scope and find the correct item and sends it back as xml.
    4. Then either parse the xml or use JSON to convert it to an object.
    5. Populate the fields on the jsp.
    I'm just worried that I'm doing something incredibly inefficient or stupid.
    With only 150 items would I be better served just loading all the items into a multi dimensional javascript array on loading the page and just get rid of AJAX all together?

    Comments are shown below preceeded by *******:
    I was hoping someone could tell me if I'm doing something stupid or a much harder way then needed.
    **** Yes, I think its much harder than it needs to be.
    I have some data that is stored in an xml file. Probably 150 items (will stay around this number) with less then a dozen attributes per item.
    ****** Normally, such data is stored in a database table (no xml involved). However, you can store them in a file if you want.
    ****** If you store it in a file, I suggest not using xml. Its an advanced topic. I suggest using a tab delimited file (you can use a text editor to create it).
    The name of each of these will be loaded into a list on a jsp. When clicking on an item the details will be displayed on the page below it.
    ***** ok, so far
    Right now my plan is to:
    !. read the file in on application startup and store the items in a collection of beans in the session, or maybe at application scope.
    ****** Your options are:
    ***** request scope: need to read the file each time the user needs the data. Not efficient.
    ****** session scope: data lasts as long as user is logged on. Good idea.
    ****** application scope: data lasts after the user logs off. Bad idea. takes up memory permidently. Must remove it from application scope when last user logs off.
    ****** Store it in a database: best idea, but takes time to learn.
    2. Then in the jsp use AJAX and pass the items ID to a servlet.
    ****** Dont use AJAX, its an advanced topic. Learn JSP and XHTML first.
    3. The servlet pulls the collection out of session or application scope and find the correct item and sends it back as xml.
    ****** send it back via request.setAttribute() and read it on the JSP via <useBean>. xml is not the way to go.
    4. Then either parse the xml or use JSON to convert it to an object.
    ****** dont use xml.
    5. Populate the fields on the jsp.
    ***** Yes. Note JSP should not contain business logic. Business logic should be done in a servlet. The servlet should put data in request scope
    for the JSP to populate itself. The data objects put in request scope should contain just data, no business logic functionality.
    I'm just worried that I'm doing something incredibly inefficient or stupid.
    ***** Best way to learn is to try stuff out and make your next project better than the previous.
    With only 150 items would I be better served just loading all the items into a multi dimensional javascript array on loading the page and just get rid of AJAX all together?
    ******** Javascript is an advanced topic. Its main purpose on the JSP is to handle simple onclick events from html tags and to do some basic client side validation.
    ***** I believe a book on JSP would be very helpful.

  • Best way to handle session timeout

    Hello All,
    oracle 11g, Apex ver 3.1.2
    I am bit confused about the sessoin handling mecahnism for the users .
    Which is the best way to handle session for the users is it programatically or by DBA admin level.
    What are the pros and cons going DBA Level and Programmatica level.
    Before hand I got to have some information on hand for justification.
    thanks/kumar

    Hi,
    I've done a great deal of work with mobile accounts in Snow Leopard and I'm now having a "play" with Lion. To be honest you have to sit down and think about why you need mobile accounts.
    If your user only uses one computer then your safer having a local account backed up by a network Time Machine, this avoids the many many woes that the Servers FileSyncAgent brings to the table.
    If your users are going to be accessing multiple computers on the network and leaving the network then a mobile account is good for providing a uniform user experience and access to files etc. However, your users will have to make a choice as to whether they want their iPhoto libraries on one Local machine (backed up by Time Machine) or whether they want their library to be hosted on the server and not part of the Mobile Home Sync schedule (adding ~/Pictures to the excluded items on the home sync settings).
    With the latter, users will be able to access their iPhoto libraries on any computer when they are within the network (as it's accessed from the users server home folder).
    With the first option the user would have their iPhoto library on one computer (say the laptop they used the most) but then would not be able to access it from other computers they log on to.
    iPhoto libraries are a pain, and I'm working hard to come up with a workaround. If your users moved over to using Apeture then you could include the aperture library as part of the home sync thanks to Deeport (http://deepport.net/archives/os-x-portable-home-directories-and-syncing-flaw-wit h-bundles/)
    He does suggest that the same would work with IPhoto libraries - but it doesn't for a number of mysterious reasons regarding how the OS recognizes thie iPhoto bundle (it does so differently compared to Apeture).
    Hope this helps...

Maybe you are looking for

  • Good morning,  which is the address I can use to send a complaint about a support??

    My name is Gabriela A. Certa L. i am from Venezuelan, ID number 18,180,219. And I speak to you this time, unfortunately with a negative critical to your business, the week of 25 to 31 July, a major drawback I spend with my MacBook Pro, MacBook Pro Mo

  • How to create a link on a biller direct screen for downloading a pdf file

    Hi, My requirement is to create link on biller direct screen, when I click on that link a pdf document will be downloaded in local system. I need help on that

  • Help with updating imageIcon in JTable

    Hi All Please I am hoping that some out there will know what is going on with this I am setting a Cell with a ImageIcon with this code         Object[] data = {             rSet.getString(1),             new ImageIcon("imagesTest/" + "check" + rSet.g

  • Enable 3rd party selection tab in infopackage

    HI, When i create my infopacakage for 3rd party datasource, my 3rd party selction tab is not enabled to give any inputs. Could anyone pls guide me how to get it enabled. Anamika

  • WebUtil privilages

    I am attempting to use WebUtil in my forms and am getting FRM-40039 error (Cannot attach library from C:\etc etc) I have read about WebUtil and the document mentions creating a database user WebUtil and excuting the create_webutil_db.sql script provi