How  can you load local server urls on application start?

Background:
I've been searching for close to two days for an answer to this question, it's full of gotchas and I can't quite get it figured out.
I have an application which contains several web services. These services load up listeners when the services are invoked which makes them available for input. The user has the option of disabling automatic load of these services and invoking them manually by typing in the local url and starting the app. The can allow the autoload which uses a the or allowing the auto load to start. Currently the local url is hardcoded in a property file and this is how the services knows the local endpoint to envoke when it autostarts.
<servlet id="AutoStart_01">
<servlet-name>autoStart</servlet-name>
<servlet-class>com.loadmy.StartupClass.Here</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
This works all fine and well until it's deployed onto a machine that runs a local weblogic cluster that has more than one jvm (and multiple ports) loading the application up.
Problem
The question is, how can you get the applicaton to recoginize the local url for the jvm that is running which can be on different ports? Here's what I've tried
A - Using Inet.Address - This doesn't let you know what port your application is on
B - Using the load servlet on start up ( Only the init() function is called and the request object hasn't been created and the request object is what contains ther protocol, server and port information)
C - Loading a jsp page (READ... purposefully loading a jsp page) on application start. The thought here is that this contains a request object, but unfortunately on this doesn't work in my servlet container (currently tomcat 6 but the application is for a web logic machine)
D - I thought about possibly using System.properties() but no luck there
I'm at witts end on this one and I know there is something that can recoginze the local servlet container and extract the url and port from it.
Any suggestions would be great.
Flabergasted [sic]

Hi,
I had a simmilar requirement once, i also had to display some meaningful message with the busy mode icon, but i guess that comes directly from the WD Framework and is not possible to be changed. Refer the following thread, i raised that time.
Web Dynpro ABAP
Dont have much idea if somethig exists in portal for this.
Regards,
Runal

Similar Messages

  • Inability to RESUME download in ffox - how can you see if server supports resume e.g. any of the filehosts

    hi: i have been trying to dl from filepost (file size 260) and occasionally it stops at 240.
    i tried the answer in support to "dummy resume:"
    https://support.mozilla.org/en-US/questions/672203?esab=a&as=aaq
    it did not work.
    how can i test if the site allows resume?
    or do i need to test for a specific file on that filehost allows resume?
    thankyou

    Hi Cor-el
    I found Opera. Opera browser does not compare to firefox greatness. Nor does their support help forums.
    But Opera does have RESUME button on their download window.
    The trick with opera, is to open the download manager in a new window, and make it look like Firefox great add-on DownloadManager Tweak.
    then it looks the same, so you know what your doing
    AND it has a download / RESUME button
    fyi:
    > I tested Opera Download on all the failed ones (trying the tricky rename workaround) '''Opera RESUMED in all 9 test cases.'''
    > and where i could not get firefox to resume, not once in all 9 test cases.
    so my conclusion is the workaround is not very good. And it had nothing to do with the server i was downloaiding from (in these 9 test cases)
    perhaps..... in a future version: - firefox can also have the wonderful resume button, and the add-on Download Manager TWEAK, can also have the RESUME download button.

  • If You Sync Notes Via iCloud, How Can You Make Local/On My Mac Notes?

    I've you're using the Notes app in Mountain Lion, and your Notes are stored in iCloud, is it possible to make notes that are just On My Mac and not in iCloud? If so, how do you do it?

    Choose Apple menu > System Preferences, and then click Mail, Contacts & Calendars.Open Mail, Contacts & Calendars preferences
    Set up an account with Notes:
    For an existing account:
    Select the account, and then select the Notes checkbox.
    For a new account:
    Click an account type, enter your account information, and then follow the onscreen instructions.
    I didn't need to set it up in ML but here's what Help has to say...

  • How much stuff can you load into a project before it starts crashing? And is there a way to tell if this is the problem that's causing the crashing?

    I'd like to know if there's a way to tell if I've loaded too much media into my premiere pro project?
    I'm getting some interesting crashing issues and suspect it's because I've loaded a bunch of stuff into the project. I guess I could go through and start deleting stuff, but I'd like to know if there's a way to tell if that's the problem first.
    I'm running cs6 latest 6.0.5. Macbook Pro i7, 16gb ram, 2tb external Gdrive storing media. I have cuda enabled.
    Thanks a lot for any help!
    Garett

    I copied text & paisted it and then draged the 3 photos from the file...then clicked on the photo then clicked the inline boxon tool bar nexed to floating one and that is how I did it
    I do not know what you mean "cut & paist"  how do I get the photo in from my picter folder if I do not drag it to the page in Pages? 
    I went to my photo folder and copied a photo and paisted the photo on the top left part of the page and it went there but there was no text to the right of photo...I could crop the photo to what ever size but no text to the right of photo...
    This is just too big of a mess of a program as it should be easier then this,,,I hav e 300 photos in this project and would have to re-paist them all...that is nuts...
    I see the button to the right of inline and floating that has 6 [lace to have the photo but the text does not float around the photo...
    If this is what your talking about this very little freedom in my page layout as I need it to let me place it where I need it to be and the wrap the text...
    There has to be an easier way to get my books ready for other formats other that Apple's iPad...iBooks Author was way eisier to make ready for iTunes...Love that program!!!
    Want my books for sale on all the other formats and was told by Apple Pages whould do it...
    I must be be out to lunch or the designers at Apple are ???

  • How can I load shared library in my application ?

    Hi,
    I am using J2EE application deployed on Oracle 10g application server(Linux version). I have a shared library used to access a third party software. Now my application needs to access this shared library in order to access the third party software.
    So how do I acces this shared library ???
    I have already put the path in LD_LIBRARY_PATH environment variable, but still I get following error
    05/03/11 16:06:15 java.lang.UnsatisfiedLinkError: /app/oracle/product/mid904/lib/libScansJni.so: libscans.so: cannot open shared object file: No such file or directory
    05/03/11 16:06:15 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    05/03/11 16:06:15 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
    05/03/11 16:06:15 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
    05/03/11 16:06:15 at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    05/03/11 16:06:15 at java.lang.System.loadLibrary(System.java:834)
    Could anybody please help ??
    Thanks
    -- Nilesh.

    LD_LIBRARY_PATH doesn't always work well on linux. Try copying the library to /usr/lib and then refreshing the cache by issuing "ldconfig -v" and verify that your library has been catalogued. If your library needs to be located in another path, you may have to edit "/etc/ld.so.conf" prior to running ldconfig.

  • How can you help Apple ID get done and start working write way.

    Hi Apple Support Communities,
    This is excellent helping me.  I am very happy because I really want enjoy with my iPhone 5.  Apple ID and my own email is same I am using the am I write or worng explain for me.  If I wrong how sall I do the write way to do send my email.
    Kind regards
    Margaret Thompson
    <Email Edited by Host>

    The link in your post is not leading anywhere. You are in good hands there with  @CherylG and @erico and @lasvegaswireman. 
    I will just echo that you did not get recovery disks with your PC....no PC maker provides them in the box any more. When the laptop is new you are prompted to make recovery disks but most people do not do that. You can download a disk image of your licensed Windows 7 version from which you can burn a DVD and then fill in the drivers as mentioned on your other post. Let me know if you need a link for the download. But frankly it is worth getting the recovery disks from HP. I would not buy them from eBay and I buy lots of stuff from eBay....too much chance you will get the wrong ones. 

  • How can you tell if the Creative Suite application is closing

    Hi,
    Is it possible within a CS extension to know when the host CS application is closing? I have a CS extension for Flash in which I want to know when Flash is closing so I can save a config file being created in the CS extension.
    Thanks
    Stephen

    Hi,
    Is it possible within a CS extension to know when the host CS application is closing? I have a CS extension for Flash in which I want to know when Flash is closing so I can save a config file being created in the CS extension.
    Thanks
    Stephen

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • How many photos can you load into Organizer and Editor

    How many photos can you load into Organizer and Editor at one time.  I receive the error message, "Unable to Import Files", which says "You exceeded number of files that can be selecteed and imported at once...."  What is the number?  Secondly is there a way around this for either the Organizer or Editor to work on thousands of photos at the same time?
    Thanks

    I have never heard of this particular limit before.
    Please understand, this appears to be the limit you can import into the Organizer at one time -- you can have as many photos as you want in the Organizer; but apparently you have to import in batches rather than all at once.
    I don't think it applies to the editor; and I can't imagine wanting to have more then a few files in the editor at any one time ... even if you could open 2000 photos in the editor at once, what sense would that make?

  • How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    If you use the WCF-SQL adapter it is recommend that you set UseAmbientTransaction to true if you are changing data. I think this requires MSDTC to be enabled on the SQL server that you are changing the data on. (http://msdn.microsoft.com/en-us/library/dd787981.aspx)
    I think that Availability groups does not support MSDTC. (http://msdn.microsoft.com/en-us/library/ms366279.aspx).
    How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    Hi,
    Yes, Availability groups doesn't support MSDTC. Please refer to the similar discusison which maybe helpfull:
    http://dba.stackexchange.com/questions/47108/alwayson-ag-dtc-with-failover
    http://stackoverflow.com/questions/17179221/msdtc-in-always-on-availability-groups

  • Please Help.  How can you monitor a directory using jndi connection to a ldap server?

    How can you monitor a directory using jndi connection to a ldap server? I
    want the ldap server to monitor the content change in a file system
    directory on another computer on the network. Can someone please help.
    Thanks
    Fred

    Hi,
    Why do you want to use LDAP for Hard disk monitoring..???
    U can do this by creating a MD5 checksum for all the files existing in some
    perticular
    directory and every hour or any configurable period u can recalculate the
    checksum
    to find out the change in the content.
    I guess all u need is to get the code for "updatedb" utility of Linux and
    instrument it for ur needs..
    Hope it helps...
    -aseem
    mr wrote:
    How can you monitor a directory using jndi connection to a ldap server? I
    want the ldap server to monitor the content change in a file system
    directory on another computer on the network. Can someone please help.
    Thanks
    Fred

  • How can you change the banner of the FTP-server on the Linksys WRT610N ?

    Dear readers,
    My question is this : How can you change the banner of the FTP-server on the Linksys WRT610N ?
    At present it says : "Welcome to WRT610 Router's FTP service" which gives away the type of the device.
    Which is a clue I would rather hide. Besides that I would like to change it to something more personal.
    But how do you do that ?
    The UG is silent about this.
    Regards
    John

    Try this to change FTP banner?
    * Login as admin
    * Open Internet Information Services (IIS) Manager
    * Expand FTP sites (from tree view)
    * Right-click on the particular FTP site, select Properties
    * Click on the Messages tab
    * Setup new message
    * Save the changes

  • How many songs can you load to an iPod shuffle 2gb

    How many songs can you load to an iPod shuffle 2gb

    250 - 500. Depends on the size of your song file.

  • How many computers can you load Adobe software

    We have four computers in our house (2 Laptops, 2 Desktops).
    Can you load PS Elements on three computers?
    I am thinking of upgrading to PSE10
    Thank you
    Bob

    Your license will let you activate PSE on two computers.

Maybe you are looking for

  • Work around for adding more than 1000 notes

    I'm trying to load my bible onto my iPod and it consists of 1823 notes. Is there any what to increase the default number of notes that the iPod can accept? Hack...?

  • Down payment not shown in CJIA

    dear all i activate FM to use ps cash management. i use F-48 to make a down payment to a PO. but i use cjia to see the report, the down payment cannot be seen. is it correct? by the way, i chose all the value types. please help me. it puzzles me. tha

  • Package javax.xml.messaging does not exist

    Hi, I have installed the Web Services Developer Pack (Version 1.1), and added the jaxm-api, jaxm-runtime, saaj-ri, and saaj-api jars to my classpath. I also added C:\jwsdp-1.1\bin to my path, and copied the jar files from C:\jwsdp-1.1\jaxp-1.2.2\lib\

  • Why are my photo colors oversaturated?

    The colors of my photos appear dark and otherwise oversaturated when viewed on my monitor. Yet, they appear fine when viewed on other computers or my phone. Any idea why? I've got a 20-in iMac running Lion.

  • A problem with connecting my mixer to the laptop

    Hi. i got my new Dynacord powermate 600-3 mixer last night and i connected to my macbook pro using USB wire it works perfectly with video recording softweres like photo booth but it does not work with grage band or adobe audition i can see that there