How  to Hold the client ip from the client calls made to the ejbweb servic?

Hi
I am working on Ejb3 web services.I want to hold the client ip from the client calls made to the web service.I deployed this service in jboss AS 4.2.1
In the service implementation i started using
@Resource
SessionContext sessionCtx;
My idea is to get the MessageContext from this SessionContext and finally to get the HttpServletRequest.
I got the sessionCtx(BaseSessionContext) object.When i am trying to access the MessageContect using the below syntax
System.out.println(sessionCtx.getMessageContext());
I got ---ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.ejb.EJBException: java.lang.IllegalStateException: No message context found
Please provide me with correct solution to this problem.Please also suggest if there is any alternate approach to get the client ip in the service implementation.
Thanks
Adinarayana

Hi,
Assuming that you are using Form 6i or greater, one way to do is to embedd a java bean in the form, this bean would get you the ip address and in the form you can get_custom_property( ) to get the value from the bean to the oracle form.
There is one demo example in OTN site to get the ClientIP address, check out if that helps you.
Regards,
Dinesh

Similar Messages

  • How to send the transport request from one client to other client?

    Hello Friends,
    I have generated one transport request in one of the client in Development server.Now as it is  customizing request so unless and until i transport it to other client within the same server, Changes will not be visible in other clients.So how to transport this customizing request from one client to other client within the same server.
    Thanking you guys in advance.
    Regards,
    Jitendra

    Hi Jitendra,
    Release your Transport Request via SE10, then go to STMS & import the request first to your quality server, then to your production server.
    Apologies for the incorrect inputs, please use SCC1 as advised by other forum members
    Hope the above clarifies your query.
    Regards,
    Vivek
    Edited by: Vivek on Mar 16, 2009 1:05 PM

  • For existing data in BI, client need to take a call to park the same from s

    hi,
    friends,
    For existing data in BI, client need to take a call to park the same from safety point view by copying the existing ODS  
    is it possible?if it is possible give me details.
    thanks&regurds
    sivaji

    hi,
    well when you copy an ODS only the structure is copied. to load the data you might need to create transformation and DTp to load data in the new ODS.
    You need to load data manually. Copying the ODS will only copy the structure.
    Regds,
    Shashank

  • How can I delete an app from launchpad, that doesn't have the little cross in the left top corner. The app isn't an App Store app. The application is also not present anymore in my application's folder in finder.

    How can I delete an app from launchpad, that doesn't have the little cross in the left top corner. The app isn't an App Store app. The application is also not present anymore in my application's folder in finder.
    I tried to use the attached command through TERMINAL :
    sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='Help';" && killall Dock
    sqlite3: Error: too many options: "DELETE from apps WHERE title='Help';"
    Use -help for a list of options.
    But i didn't work as I got the above error message.
    best regards
    Jeroen

    I'm in the same boat as you -- except that I manage both a school lab (volunteer job) and macs in the enterprise (pay job).  What I think we need is the Education Volume Purchasing Program
    http://www.apple.com/education/volume-purchase-program/faq.html
    Unfortunately this all seems a little rough around the edges -- for example, I have found updates for AppStore apps on the support.apple.com updates download site, but then when I install them via ARD they don't actually update the software.  (The AppStore icons still show as needing the updates, and the version info reports the old version.)  The documentation is also vague about which AppleID to use in which circumstance.  I think they just haven't finished thinking through the implications of the various procedures and policies upon the various kinds of customers.  When we deployed Mountain Lion on the school lab, we made an install usb and went around and installed it on each computer -- and it appears that you are on the honor system as far as paying for all of the licenses that you install.  We did!  But they appear to have no way to enforce it.
    So far, I have only deployed 9 Lion macs in my day job, and our "solution" to the AppStore showing updates problem has been to drag the AppStore icon off of the users' docks so they don't see them!

  • HT1918 hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcar

    hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcard connected to it

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • How can I browse the Adobe Market from my browser in stead of the tiny app display functionality?

    How can I browse the Adobe Market from my browser in stead of the tiny app display functionality?

    Hi,
    Can you please go through the following past forum posting: http://forums.adobe.com/message/4620312
    Hope that the info helps.
    With regards,
    Prabhu

  • I did an update and only only the music purchased from itunes store is there all the cds I burned to it are gone. Tried syncing ipod but it says it will wipe all content. How do I get all my music back. gone from over 6000 songs to 250?

    I did an update and only only the music purchased from itunes store is there all the cds I burned to it are gone. Tried syncing ipod but it says it will wipe all content. How do I get all my music back. gone from over 6000 songs to 250?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • I just synced my iPhone and lost all the info in notes from my phone. It was replaced with whT was on my iMac how do you make the sync go from phone to desktop and not the other way around

    I Just synced my iPhone and lost all the info in notes I had on the phone. How do you have the info sync from phone to desktop and not the other way around as I usually make contact changes etc on my phone. I would then like to be able to sync that info from desktop to ipad thanks

    It does make sense.  The iPhone is a one-person device and just syncs to one computer.
    The way it should work is as follows:
    Old computer content ---> New computer
    New computer <---> syncs to iPhone
    But the way you are trying to operate sounds like:
    Old computer content ---> iPhone
    ... and ...
    New computer content <---> iPhone
    So simply move your old stuff (either directly from iTunes, or from a computer backup) to the new computer, have it all there, then sync your iPhone to the new machine.

  • How do I get my work from pages 08 to work on the latest pages version?

    how do I get my work from pages 08 to work on the latest pages version?

    Save to a USB what?  What USB device are you using?  Is it showing up on the desktop?

  • How to get the selection parameters from logical database into one of the t

    Hi Sap ABAP Champians,
    How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
    Please help me for this
    Thanks
    Basu

    Hi
    Thanks, that will work, but then I'll have to insert code into all my reports.
    I can see that "Application Server Control Console" is able to rerun a report.
    This must mean that the Report Server has access to the runtime parameters.
    But how?
    Cheers
    Nils Peter

  • How can I read text files from LAN if I only know the hostname?

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    <p>1. How can I read text files from LAN if I only know the hostname, or IP address?
    <p>2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.
    (ex. how can I read the 120th line?)
    <p>Please help!
    <p>sorry for the bad english

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    1. How can I read text files from LAN if I only know the hostname, or IP address?You need to know the URL of the file. You need to know the hostname, port, protocl and relative path.
    The hostname is server, not file.
    2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.Use the seek() to get to a random byte.
    (ex. how can I read the 120th line?)The only way to find the 120th line is to read the first 120 lines. You can use other file formats to find the 120th line without reading the whole file but to need to be able to detremine where the 120th line is

  • How can I delete an attachment from a received email but save the message?

    Hi all, how can I delete an attachment from a received email but save the message?*

    Over the years this issue crops up again and again. Here are the cases I know about:
    Case 1 - it simply doesn't work
    I have a message in my inbox with a jpeg of about 300Mb. Select message, choose option "remove attachment" which is not greyed out, and it does not work.
    Case 2 - it works if you save the message first
    I move the message from the inbox to a mail box. Open the mailbox (select), select the message, choose option "remove attachment", result: the attachment is removed, a small text file is added and an error appears in the message "missing plug-in". The message size is reduced from 300Mb to a few bytes.
    Case 3 - the option "remove attachment" is greyed out.
    I've googled this at least 10 times and read all the advice about editing various files from the library and all the other hacks. The simple truth here is that the user should not be inconvenienced by such inappropriate behaviour. We're not used to this from Apple any more, not since OS X. Even Windows does this stuff painlessly. In fact this kind of function is something that Outlook and Exchange do incredibly well. If they didn't the corporate world would have ground to a halt.
    My point: the remove attachment option should work all the time and should be redesigned. Right-click + save as + delete in the message would be a hundred times easier.

  • On iTunes 11.0, how do I delete and App from iTunes?  I tried selecting the App to be deleted and pressing Delete, but that did not work.

    On iTunes 11.0, how do I delete and App from iTunes?  I tried selecting the App to be deleted and pressing Delete, but that did not work.
    MoragaTom

    I have the same problem on my iPhone - an app I want to delete but can't. The app in question doesn't show up on the list of apps i iTunes and doesn't show an 'X' when it starts to wiggle. All the other apps do, but not this one. It's definitely an app. How do I get rid of it, please?

  • Hello, how I can do to buy from Argentina, an Apple product in the U.S.?

    Hello, how I can do to buy from Argentina, an Apple product in the U.S.?

    Thanks for the reply. A relative of mine travels to the United States, he would bring the product. I can make my purchase online by credit card from Argentina?

  • My hard drive crashed and i lost all my rippped cd songs from the hard drive. Luckily they are all in icloud but how do i get ripped music from icloud to redownload back to the PC all in one go???

    My hard drive crashed and i lost all my rippped cd songs from the hard drive. Luckily they are all in icloud but how do i get ripped music from icloud to redownload back to the PC all in one go???

    Hi,
    The simplest solution would to restore from your back up - https://discussions.apple.com/docs/DOC-4112
    If you do not have a back, you can select first track on list in song view, from menu > edit > select all. Next ctrl+click and select download from pop up. You may wish to do this in small batches as it will take some time to download.
    Jim

Maybe you are looking for

  • How to run VS2005/CR on Windows 8.1?

    Hi I have a VS2005 forms app that produces reports using Crystal Reports (10.2).  I can run the app on Windows 8.1, but when I try to display a report I get an error saying that the CR runtime cannot be found.  I've run the CR2005_x86 installer, appa

  • Time Machine Restore Problem on A New Hard Drive

    I am trying to restore my data from my time machine after a hard drive replacement which was done for me at my local Apple Store today. I started my Mac with the new drive and it starts like a new Mac. It then asked me during the first boot if I want

  • How does one import Capture One 7.0 Pro files into Lightroom 5.3?

    I'm trying to import CR2 files from Capture One Pro 7.0 into Lightroom 5.3. I've done this before but this time around LR5 is not seeing the files yet I know they're there.

  • Interface Changes

    hi Guru 's, Could you please help me out on this. Interface changes impact on Batch jobs in SAP? Kind regards, Sunny

  • How do you Batch change TV Shows/Movies/Music Videos?

    Hi, I have a bunch of short films in my iTunes library that I want to change to TV Shows, the only way i have found that I can do this is going one by one and changing them. My question is whether or not there is a 3rd party applescript of applicatio