How to identify different connections/clients from RMIServer???

Anyone knows how one can do to identify different connections or clients from the implementation/server-object in RMI?? Do I have to send a hostname from the client via method parameter?? If so, any recommendations on which unique name to use??
Would really appreciate any answer to this!!! - thanx in advance!
ps; tried currentThread.getName(), but it would return different names from same client (changing at each call).
/Alejandro

Hi,
in order to identify clients I maintain a hash with references to
the clients. The clients register and unregister with special
remote methods of the server RMI object.
I didn't see an API in RMI to do this for me. And it was fairly easy to implement.
Have fun,
Klaus

Similar Messages

  • How to sync different image folders from pc without removing images from ipad

    how to sync different image folders from pc without removing images from ipad as ipad asks to replace the already existing images in ipad with the pc folder.

    Spare yourself the frustration, use Photo Manager Pro.
    https://itunes.apple.com/sg/app/photo-manager-pro/id393858562?mt=8

  • How to prevent B radio clients from connecting

    How can I enforce only G & A radio clients from being able to connect to my 1131AG Access Points?
    I know that when a B client connects it automatically brings all the G clients down to B due to the fact that G is backward compatible but does not operate at 54 mbps with a mix of B clients.

    Hi Sparky,
    Here is one method;
    To set the 2.4-GHz, 802.11g radio to serve only 802.11g client devices, set any Orthogonal Frequency Division Multiplexing (OFDM) data rate (6, 9, 12, 18, 24, 36, 48, 54) to Basic.
    Note: The client must support the basic rate that you select or it cannot associate to the wireless device. If you select 12 Mbps or higher for the basic data rate on the 802.11g radio, 802.11b client devices cannot associate to the wireless device's 802.11g radio.
    From this good doc;
    http://www.cisco.com/en/US/docs/wireless/access_point/12.3_2_JA/configuration/guide/s32rf.html#wp1083005
    Hope this helps!
    Rob

  • How to access Hyper-V Client from Hyper-V Server to the new machines?

    Hi
    We have a small company in that we have 50 machines, i am having windows 2012 r2 server, i installed Hyper-V with that i have created virtual OS(winxp and win7) in the Hyper-V server. My question is how to access them in client Machines, Can Anybody help
    me in this regards?
    Regards
    Meer Akbar Ali

    Hi Meer,
    In addition ,  you need to use external virtual switch for these VMs that are used for RDP connection from clients .
    Please refer to the article below for virtual network configuration :
    http://technet.microsoft.com/en-us/library/cc732470(v=WS.10).aspx#BKMK_ConfigVN
    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.

  • How to create Web Service Client from wsdl with digital signature?

    Please, help me to create Web Service Client from wsdl with digital signature. I know create Web Service client from wsdl file and I know how to add digital signature to XML with jwsdp, but I don't know how to do it together.
    Thanks.

    I'm handling security wit JAX-WS handler. So I insert "manually" ws-security tag and I encrypt (and sign) message parts.
    On client side, all works fine, but on server side I obtain:
    ---Server Inbound SOAP message---|#]
    Decrypting message and rebuilding Valuees... |#]
    Starting decrypt|#]
    . dectypted.!
    --found following string: <ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona>|#]
    ...MESSAGE Restored.|#]
    <?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://calculator.me.org/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soapenv:Body><ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona></soapenv:Body></soapenv:Envelope>|#]
    Error in decoding SOAP Message
    Error in decoding SOAP Message
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
            at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:160)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:89)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:178)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:109)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
            ... 29 more
    |#]
    --->handleFault O_o<---|#]If you have any idea for solving my problem, then I can post my simple example :(
    Bye!

  • How to call external http client from abap system

    Hi All,
    I have browsed through sdn and google but not found any helpful document ,
    Here my requirement is to call external http client from ecc ,
    Pl suggest..,
    Regards,
    Lokeswar .

    Hi Deepak,
    I have followed the below Reference links :
    Example Program: Executing an HTTP Request - Components of SAP Communication Technology - SAP Library
    http://scn.sap.com/thread/2035765
    but while executing  get http responce i'm facing 'HTTP_COMMUNICATION_FAILURE' error
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    Pl suggest ,

  • How can i run application client from the command prompt ?

    Hi,
    I'm new to java & EJB. so can any body tell me the command to run the application client from the command prompt. Here is the code to print hello world:
    /* Remote interface */
    public interface Hello extends javax.ejb.EJBObject
         public String hello() throws      java.rmi.RemoteException;
    /* Home interface */
    public interface HelloHome extends javax.ejb.EJBHome
         Hello create() throws java.rmi.RemoteException, javax.ejb.CreateException;
    /* Stateless session bean class */
    public class HelloBean implements javax.ejb.SessionBean
         private javax.ejb.SessionContext ctx;
         public void ejbCreate(){
              System.out.println("ejbcreate()");
         public void ejbRemove(){
              System.out.println("ejbRemove()");
         public void ejbActivate(){
              System.out.println("ejbActivate()");
         public void ejbPassivate(){
              System.out.println("ejbejbPassivate()");
         public void setSessionContext(javax.ejb.SessionContext ctx){
              this.ctx=ctx;
         public String hello(){
              System.out.println("hello()");
              return "Hello, world!";
    /*Client class */
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Properties;
    public class HelloClient
         public static void main(String[] args) throws Exception{
              Properties props=System.getProperties();
              Context ctx=new InitialContext(props);
              Object obj=ctx.lookup("HelloHome");
              HelloHome home=(HelloHome)javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);
              Hello hello=home.create();
              System.out.println(hello.hello());
              hello.remove();
    I have stored .java files in c:\ejb
    I have successfully created the .class files using javac command in the following directory :
    c:\ejb
    I have also created Helloworld.ear file in c:\ejb using sun application server which contains the following files:
    ejb-jar-ic.jar
    app-client-ic.jar
    sun-j2ee-ri.project
    application.xml
    sun-application.xml
    Manifest.mf
    But the problem is that i'm not able to run the HelloWorld.class file successfully from the command prompt. So please suggest me the comand.
    Thanx in advance.
    Best regards,
    Pankaj

    Hi
    You can run this code from the command prompt in the same way as you run any other simple java program. The only thing is you need to set the Home and Local interfaces in the classpath.And obviously if u had deployed the bean in ur app server container, then its all over.
    And one more thing is that u need to set the provider URL in the InitialContext created in the client program.
    Thanks
    Arun B

  • How to sync different photo libraries from different apple devices used with the same ID

    Basically, I have two iphones (4 and 5s). Both iphones are synced in Itunes as regards apps, music and all documents but for photos.
    Each iphone has different photos, being neither of both libraries synced to Itunes or my pc. The problem is that when I bought the Iphone 5s and I tried to sync also the photos from the iphone 4 to later have them synched to the brand new iphone 5s, Itunes was not able to just copy the photos from the iphone into the pc, but rather copying the pictures from the PC into the iphone 4, removing all existing photos.
    Also, icloud could not be used because I have more than 5gbs in photos.
    Now the problem is that i got a new Ipad, and I would like to got into my ipad all the pictures from my iphone 4 and iphone 5s. Again icloud is not enough due to the 5gb limit.
    How could i proceeed to merge both libraries and have them successfully synced in all my devices?
    Thank you very much in advance

    Also, icloud could not be used because I have more than 5gbs in photos.
    iCloud does not store your photos anyway. The photo streams are only a temporary storage to stream new photos between your devices. You could use the shared streams as long-term storage, but shared streams store the photos only at a reduced quality. The photo stream does not count agains your iCloud storage, so that would not matter. (see:  iCloud: iCloud Photo Sharing FAQ)
    If you have iPhoto on your iPhones, you could transfer your photos from your iPhones to your PC using iTunes Photo Sharing, see this Help document:
    http://help.apple.com/iphoto/iphone/2.0/?handbuch#blnkee26bc1f
    Save photos to your computer using iTunes
    Connect your iOS device to your computer.
    Tap a photo, album, event, web journal, or slideshow and tap > iTunes.
    Tap Selected, or change the photos you want to save (if you are saving a slideshow skip to step 4):
    Select different photos: Tap Choose Photos, tap one or more photos, and tap Next.
    Select a range of photos: Tap Choose Photos, tap Range, tap the first and last photos in the range, and tap Next.
    Select all the photos in an album or event: Tap All.
    In iTunes, click the button for your device and click Apps at the top of the window.
    Below File Sharing, select iPhoto (in Apps).
    Select the Shared Photos folder under iPhoto Documents.
    Click Save To and select the location on your computer where you want to save the items.
    To view your photos, go to the Finder and look in the location you selected above.

  • How to identify different users on a network

    I have a program that is currently located on a server and is being used by a number of different people. I am trying to get the jfilechooser to be able to remember a current directory from session to session, basically the last directory a given user opened a file from.
    My problem is that each user will have a different current directory (usually on their desktop) at any given time. Is there a way to identify the user so that jfilechooser can have the correct current directory?
    Thanks

    i would imagine so
    as long as you have a username to identify each user (i.e. they login), you can lookup their personal preferences however you like
    Edited by: SoulTech2012 on Aug 8, 2008 11:17 AM

  • How to invoke different WAD Applications from external URLS

    Hi
    We have developed different applications (app1, app2) in WAD using templates and we'd like the following behavior :
    app1 being called from http://www.aaa.com as app1 real url is http://hostname:port/sap/bw/BEx?sap-language=EN&CMD=LDOC&TEMPLATE_ID=XXXX
    app2 being called from http://www.bbb.com as app2 real url is http://hostname:port/sap/bw/BEx?sap-language=EN&CMD=LDOC&TEMPLATE_ID=YYYY
    www.aaa.com and www.bbb.com point of course to the same IP address in the DNS (same host)
    Is there a way to properly configure the ABAP Web App Server to deal with this like Apache does through Virtual Hosts ?
    Thanks a lot for your help.

    In other words, how to develop several applications (BSP, WAD, ...) on the same app server ?
    Each app should have its own URL without a "forward slash something" as follow :
    app1 => http://www.aaa.com
    app2 => http://www.bbb.com
    appn => http://www.zzz.com
    Apache permits it via name-based virtual hosts. It then allows multiple web sites to share on box and one IP address.
    Thanks for your help.

  • How to detect disconnection of client from server. want a perfect solution.

    hello friend...
    this topic is so many times discussed but each every time no clear view of pic has...
    setKeepAlive(true) method set socket to wait for 2 hour it is not possible to set this for smaller time say 1 minute. and all of u think it is a best one for detecting the client is not connected.
    i m devloping a chat system like messenger stand alone application. now if net connection down client can't do activity.when connection is up client try to login again but it wil detect alredy logged in coz socket is not closed by the client.......
    not possible to devlope heartbit probing by our self any idea to devlope heartbit probing please.....
    my final sem project is not going ahed coz of this problem.....

    i don't know about thus but u ask about get the truly ip in some post .
    You need to set up LAN, local IP addresses (192.168.1.x or alike). A corporate proxy server should forwards ALL requests to a free anonymous proxy server (you need to have skills and rights of a system administrator in order to do that). It's impossible to connect to the Internet bypassing a corporate proxy, as long as external IP address is not assigned to local machines. It's also impossible to scan local machine's settings: even if Java/ActiveX applets detects and gives out your local IP address (192.168.1.x) to the web server, your anonymity will remain unbroken. So, basically, you can rate this option as 100% anonymity.
    When he/she is behind a Lan with a wingate or corporate proxy its imposible to track the real ip with Java & Javascript.
    Also if he/she used proxies and afirewall its also imposible to track him/her
    with Java & Javascript.
    regards and tomorrow i help about that questions
    cheers
    Babalu

  • How to create a Java Client from a wsdl file...

    Hi,
    I am looking for an available option for calling a Cobol unit from a Java application( front end). I've used the MicroFocus tool for creating a wsdl file from our Cobol unit.. Now i want to use this wsdl file for creating a Java Client..
    Can any one suggest a suitable solution (software that makes use of the already existing wsdl file and generate a Java Client for that) ASAP....
    Thanks,
    roopa

    Hey you can create java client using Eclispe or WSAD or far that matter any other IDE. crate a project save the WSDLs in a package. Right click on WSDL goto webservice option. From there you can generate client.
    cheers,
    sapan
    Is it still open ?
    cheers,
    sapan
    Edited by: sapan on Feb 25, 2009 1:17 AM

  • How to run different Oracle client versions on the same PC

    I have developped an application (.Net 2.0, ODP v. 10). I must run it on PC where Oracle client version 8 is installed. The PC cannot be upgraded because of a client software running under this version.
    I tried to install ODP v. 10 on this PC in different home, but the software using version 8 stops running.
    Can Oracle Instant Client help ? But which version, 11 ? My application is based on ODP 10. Can ODP 10 access database via Instant Client 11 ?
    Thanks for your help
    LK

    The problem on Windows is: The 10g installation changed the default ORACLE_HOME,now it points to 10g and makes the 8.0.5 application invalid,because it runs now in a much higher environment. What I did in a similar situation, I created a batch file, which sets temporarily the old environment (in my case PATH,ORACLE_SID,ORACLE_HOME) and then invokes the application.
    I don't know whether such a solution will work for you (8.0.5 is very old,desupported since a long time), my old version was 8.1.7.4.
    Werner

  • How to integrate different tables structures from different databases?

    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    Thanks

    Arun Rajesh wrote:
    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    ThanksWelcome to Forum!!!
    Please elaborate your question.
    Arun Rajesh wrote:
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.1. What are the ATTRIBUTES?
    Arun Rajesh wrote:
    The structure of tables in both the database are different but they carry same attributes in same relation.2. Post the Table Structures.
    Arun Rajesh wrote:
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?3. What is the end result that you desire? A sample output shall help in our understanding.
    PS:- Please go through this to understand SQL and PL/SQL FAQ.
    Regards,
    P.

  • How to make different print jobs from one PC

    Hi
    We have a problem to make 2 different print jobs at same printer with one PC.
    We use Adobe Acrobat X Standard or Acrobat Reader 9 both no sucess.
    we want following
    1. print A4
    2 Print A6
    Program find out itselw when to print A4 or A6 from different location at the same printer or at 2 different printers.
    Bothe print 1 and 2 is PDF file.Print 1 is for invoices - print 2 is for labels
    Is that posibel with Adobe?
    BR
    Flemming

    Hi and welcome to the RoboHelp forums. You may be better placed to ask this question on the Acrobat forums as I expect knowledge about printing PDFs would be limited here. However I suspect that you'll need to set-up different Print Options inside Acrobat to do what you want. This is not my area of expertise though.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

Maybe you are looking for

  • Macbook pro won't boot with two new 4GB RAM sticks.

    I have a mid 2010 Macbook Pro. It came with two 2GB RAM sticks. After downloading Lion, my computer started to get sluggish so I thought I would upgrade the ram. I bought two 4GB Corsair RAM sticks and tried to install them. My computer will boot up

  • What's the model number for my HP tablet

    HP provides a type of model name near the screen of your tablet, but this name or number might not be sufficient to get proper support for your tablet. These names or numbers might represent a series of tablets that look similar but have different op

  • How to get the None button on my account payment page

    I would like to remove my old credit card info from my account and start using only gift and prepaid iTune cards.  However, the None button is not showing on the page.  Is there some sort of pathway that I need to go through to get the button or do I

  • Tracking a purchased iBook

    Greetings, I was wondering if ther was any way to track who purchased a computer using the serial number. I have my friends iBook G4 30Gb drive, 256 Mb RAM and 800MHz processor, combo drive. pretty much the bottom of the line. my question is, he "sai

  • Daisy-chaining thunderbolt in target display mode

    If I connect an imac 27" (which has two thunderbolt ports) to my retina MBP via target display mode, can I use the thunderbolt gigabit ethernet adapter on the imac and get network on my macbook via "Daisy-chaining"? It's a shame that there are no che