Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2007, 01:09 PM
Member
 
Join Date: Nov 2007
Posts: 4
goodjonx is on a distinguished road
Client IP Address
Hey All, I have a few simple operations offered as web services (just a plain web appliction, not NetBeans..) using Glassfish. Does anyone know how I can find out the client's IP address? Thanks!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-12-2008, 09:31 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 750
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Have a look at these tutorials and see if you come up with something. Do post your solution, if get one - or post some almost-solutions if you get stuck.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on July 13, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 12:08 PM
Member
 
Join Date: Nov 2007
Posts: 4
goodjonx is on a distinguished road
Thanks! I have by now swiched from Glassfish to Tomcat, because Apache's Axis2 produces a slightly prettier WSDL file. Also, I found a solution for my client IP problem that's Apache-based:

MessageContext messageContext = new MessageContext();
ip = (String)messageContext.getProperty(MessageContext. REMOTE_ADDR);

I haven't really tested it, though - don't know if it works reliably.

For anyone finding this post while researching Axis2: I found it to be a little flaky. I worked with the current release and nightly build, couldn't get objects to be returned, nor arrays beyond a single dimension. So it's useful for simple stuff..
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get IP Address of the client Java Tip java.net 0 04-05-2008 11:14 AM
JSP – getting IP address Java Tip Java Tips 0 01-29-2008 10:05 AM
Identify Client in Socket Client Server Application masadjie Networking 1 12-20-2007 10:18 AM
Getting host name/address Java Tip Java Tips 0 11-19-2007 05:34 PM
I am not able to print Address Albert New To Java 1 07-13-2007 04:37 PM


All times are GMT +3. The time now is 03:38 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org