How to set a new attribute in th Servlet Context from an external app.

Hi,
I need to do an external application that can access to the servlet context to recover/modify some attributes. Anybody know how can I do it?.
I've revised some mBeans thinking that they can serve me the servlet context, but I have not viewed anything related.
Best Regards
Antonio

I'd say your best bet is adding another servlet and mapping to your application that presents a REST interface to this information. You could return application-scope data in a small XML document, and you could send attribute names and values with request parameters.
It's not practical to dynamically change the actual init-params of the servlet context.

Similar Messages

  • Logging Swing attributes like size and position from an external app

    Hello,
    I'm currently thinking about how to implement some kind of logging application which will log the JComponent properties like size, position and visibility of another running Java application.
    I want to do this to collect AOI (area of interest) data for eye-tracker based software evaluations.
    This would of course be easily accomplish-able through implementing some kind of logging directly into the application. However, I would like to log positions for gui components for any Java Swing application without having to modify it.
    So what I'm basically looking for is some way to access a running Java Application's instances. In a static way this can be done by generating a heap dump, but I need this dynamically as position, size and visibility can also alter dynamically in most applications.
    I am currently looking at the JDI-API for this purpose and have also read a bit about JMX. But I'm wondering if there is a more simple approach that I'm missing? Is there some way to do a partial heap dump for certain classes for example (programmatically)?
    I'm sorry if this is the wrong category for the posting!
    Cheers
    Dennis

    Thanks for your help on this.
    The MacBook Air is a joy; but the limited drive space is the only caveat. I really should have spent the extra money on the 256 gb flash drive; but at the time I was in the mood to go minimalist. Unfortunately that doesn't work well for me.
    I have already moved all my music to iTunes Match and moved the backups to the external drive. I also keep most of my archive data on the 3 tb external drive. It's mostly those training video programs which are about a gig each that I want to move to the external drive ... ones I would not use that often ... so it's nice to know I can do that.
    THANKS AGAIN.

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How to set the DFF Attribute Programmatically?

    hi
    how to set the DFF Attribute Programmatically in Process Request of CO
    thanx

    Hi
    Do u want to set the value in DFF Programmatically ?
    u can capture the VO used for DFF and set the the value in controller.
    Thanks

  • How to set a new SCSI number for a second drive?

    How to set a new SCSI number for a second drive?
    Walter

    Walter,
    This web site gives a good diagram:
    http://www.hitachigst.com/hdd/support/dpes/dpesjum.htm
    On a Quantum hard disk drive - they were the original equipment manufacturer (OEM) hard drive provider for Apple, you will see three or four pairs of pins on the green circuit board. They are labled:
    AO . .
    A1 . .
    A2 . .
    If no pins are connected, you have SCSI ID Zero This was the standard setting from the factory.
    If you short out the pins beside AO .__. , you have designated SCSI ID One.
    If you short out the pins beside A1 .__. , you have designated SCSI ID Two.
    If you short out the pins beside A2 .__. , you have designated SCSI ID Four.
    These values can be added together to get other SCSI IDs. If you have a jumper beside AO AND A1, that will add up to SCSI ID Three.
    Some of the quantum drives used tiny black plastic jumpers with tiny metal contacts. I have yet to find a store that sells the tiny ones. I get my larger jumpers from old PC motherboards that are being thrown away. A small piece of aluminum foil will work as a jumper in a pinch. Just make sure it soed not fall off and short something else out!
    Jim
    PS
    CD-ROM drives are set at the factory as ID 3. Internal drives are set at ID 0. I set my external SCSI drive at SCSI 1 so it does not conflict with the internal drive. Internal Zip drives are set at ID 5 and external Zip drives let you choose between 5 and 6. I set my burners at ID 4. Come up with a master plan for your devices like scanners and burners. Apple System Profiler will give you info on the device ID. If the computer fails to boot, turn off all but one SCSI device and make sure of its ID. Then check each subsequent device by powering up only one device at a time while booting from a CD at ID #3.

  • How to set a new session variable?

    Hi all,
    Can anybody say how to set a new session variable in istore?

    Hi,
    you can use either
    pageContext.getAttribute(VAR, PageContext.REQUEST_SCOPE);
    or
    <%@page session="true" %>
    session.putValue
    session.getValue
    Hope this will help.
    Thanks
    Gurjeet

  • HT3728 after soft resetting how to set a new password to my airport express

    after soft resetting the airport exppress how to set a new password to my airport express

    Hello, MevanK.
    Thank you for the question.  You may find this article helpful in changing or creating a password for your AirPort Express. 
    AirPort Utility 6.x: Password-protect your wireless network
    http://support.apple.com/kb/PH5119
    Cheers,
    Jason H. 

  • How to maintain a new attribute.

    Hi
    Can anyone tell me how to maintain a new attribute so that after selecting that check box of the attribute that will be appearing in my PPOMA_BBP trxn in the attributes tab.
    usaully we do maintain this attributes at the time of implementation.
    please suggset me from where shall we select this new attributes.
    BR
    sairam.

    Hi Sai Ram,
    There are few SDN threads available on this issue. Please refer the below relavant ones which will definitely resolve your issue.
    Re: Problem with T77OMATTR
    Creation of Custom Attributes in org structure
    In case you require any further help please let us know.
    Award points for helpful answers.
    Rgds,
    Teja

  • How to set all new vm with VLAN ID as a default settings and alose set the avaiablity high .

    How to set all new vm with VLAN ID as a default settings and alose set the avaiablity high .

    Hi Ramy,
    As a work around , you can create a VM without installing OS and  configure the Vlan of VNic , then export it .
    The new VM will be with Vlan ID when you import the "export file".(note : you need to select "copy the virtual machine " in the tab "choose import type" during importing ) .
    Hope this helps
    Best Regards
    Elton Ji
    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.

  • I signed up yesterday with synch. I dont know my password and I need it to reset a new password. Please advise how to set a new password when I dont know old 1

    I signed up yesterday with synch. I don't know my password and I need it to reset a new password. Please advise how to set a new password when I dont know old 1
    I set it up on my "upstairs computer" and then came to my "downstairs computer" to synch and I can not get into the account because of the above password problem. I write down my passwords. I must have mistyped it or mis written.
    I want to change my password

    The new Sync version uses the Firefox account and stores the login data (username/email and password) under the https://accounts.firefox.com site heading in the Password Manager and use the signedInUser.json file in the profile folder to store the credentials once connected to the account to avoid having to enter the master password on each start.

  • How to set up new icloud account

    how to set up new Icloud account on Mac Mini and connect to all my apple devices

    Mike..
    Instructions here > Apple - iCloud - Learn how to set up iCloud on all your devices.

  • How to set the number of seconds a servlet is allowed to run

    I use JSP to generate a report, but it will take about 10 minutes to search.
    IE Client screen displays an error message what is "Cannot find out your page" after 8 minutes. How to set the number of seconds a servlet is allowed to run.

    It's not a matter of how long the servlet is running... it's the browser timing out because the servlet hasn't responded to its request.
    You have several options:
    1) "Browser Pinging"
    Your servlet sends some small data which can be either seen or unseen (html comments, hidden chars, etc) by the user at short intervals while your report is running. When the report is finished, the browser will not have timed out because it has been "snacking" on those small bits of data which tell the browser its original request was both heard and being handled. I don't think there is any timeout in IE as long as it receives data continually (or at least before its own timeout mark over and over again...)
    2) Multithreaded processing
    This would probably be a better approach. Have the report run in a separate thread running on the server. You'd want to store a reference to this executing report in the user's session. Instead of making the browser wait for the report to be finished, have the servlet check the user's session to see if a report exists and is running. If one does not exist, create one and start its execution. If one does exist, and is still running, print a "please wait" type of message OR an animation, etc... along with some javascript which will reload the page every few seconds. If the page reloads and the servlet sees that the report is finished, it can then display it to the user.
    Hope this helps,
    -Scott

  • How to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl

    I want to know how to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl

    You have to connect via ODBC, then use code along the lines of what is described here:
    http://scn.sap.com/thread/3526924
    by me on March 28 and Jan on March 29.
    Also see KBA: 1686419 - SAP Crystal Reports designer does not recognize Access *.accdb file
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to set authorization to limint plant to craete reservation from IW32

    Please advice me how to set authorization to limit plant to create reservation from IW31 or IW32 (Maintenance Order).
    I set at M_MRES_WWA (authorization object) but it is not work.

    Hi consult.,
                      I am not very sure about the object you are using, but if it is correct(else serch for the correct object), then make a master role for the T-Codes IW31 and IW32.
    then make a drived role from the above made role, and assign the object(above searched object) in the object give the value as that of your plant, and activity as per the requirement.
    you can maintain as many derived roles as the no. of plants.
    hope it helps.
    regards,
    YK

  • I transfered my music into my new mac into itunes media folder from an external, but it dosnt show in itunes.  I have to click on each one to activate it on itunes.  there has to be a better and easier solution.  help

    i transfered my music into my new mac into itunes media folder from an external, but it dosnt show in itunes.  I have to click on each one to activate it on itunes.  there has to be a better and easier solution.  help

    Thank you for your prompt response - I did as you said and did a drag and drop into the iTunes window - it imported and got my album art from the net. When I started Itunes with the shift key down I was prompted to choose a library but since I copied over the media folder and not the library folder I was unable to select that so I guess I will have to create a new library and add in all the music, videos, etc. unless I wait for my laptop and export the library or at least that seems to be the case? In short, all my data (iTunes media folder) is on my external drive and can be added to the blank iTunes screen but I can not choose a library folder. Is there anyway around completely making all those playlists again? I am not sure my laptop will survive the shop with data intact and really hate to start over on those.
    In an unrelated question - I collect old TV shows from the 1950's. Can I make playlists within the home video folder somehow?  In other words like one for Quiz shows, one for comedies, one for police and detective shows, etc. while I am remaking all my playlists for my music if I end up having to go that route?
    Once again thank you for helping me out. I am not too Itunes savvy and really appreciate you taking the time to answer.

Maybe you are looking for

  • After updating to Safari 5.0.5 hyperlinks don't work

    Unable to click links after updating to Safari 5.05. The web page will load and I can roll over the links but the links will not  I open a new page. This happens on my mac and my pc. Any suggestions. I deleted and reinstalled Safari the same thing is

  • Unknown and unrecognizable icon on iPhone 5 home screen

    This icon has appeared on my home screen.  It is not included in my applications list.  Can anyone tell me what it is?

  • I want to edit the places name (with the little house icon)

    I'm relatively new to Mac. This is a computer shared by a few people and I didn't want to plaster my name all over it. the places name for example is IanComputer but i'd like it Ian + Lisa. Can this be done? tnx in advance

  • How to Get Barcode Report in Oracle Fusion Middleware.

    Hello Freinds, I am Using Oracle Reports 11g (Oracle Weblogic 10.3.3). I want to configure barcode report in this application server. Earlier in Oracle 10gAS it was oraclebarcode.jar file to enable the functionality. Please provide me the information

  • Dynamic Logon Screen and Dashboards

    Is there a way to dynamically display a different style on the logon screen and dashboards based on a condition in the warehouse? For example, if our load is running long, can we change the logon screen to display a graphic and text that states the l