How to Pass a BufferedImage? Client - Server

Please Help!
I've been trying to figure out how to send a BufferedImage from my client program to the server program. I'm using a socket to create the connection. The client draws into a BufferedImage and then it is sent to the server to be saved as a JPG file. I've been able to create the image if I do it locally but since a BufferedImage is not serializable I can't do this the same way with the server. So how do I get my BufferedImage from the client to the server in a manner that I can then save it as a JPG on the server? Code examples would be very much appreciated!!!
Thanks!
Ryan

I guess I'm not understanding what your saying. I just need a way to get what the user draws into a jpg on the server. I have been using sockets and streams but nothing I try really seems to work. Right now I am doing this:
Client:
Socket client = new Socket( InetAddress.getByName( "localhost" ), 5000 );
ObjectOutputStream output = new ObjectOutputStream( client.getOutputStream() );
ObjectInputStream input = new ObjectInputStream( client.getInputStream() );
try {
ByteArrayOutputStream imageOut = new ByteArrayOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( imageOut );
imageOut.flush();
encoder.encode( sig.getImage() );
byte[] image = imageOut.toByteArray();
output.writeObject( image );
Server:
public void runServer() {
ServerSocket server;
Socket connection;
try
server = new ServerSocket( 5000, 100 );
while ( true ) {
connection = server.accept();
output = new ObjectOutputStream(
connection.getOutputStream() );
input = new ObjectInputStream(
connection.getInputStream() );
ObjectOutputStream toFile = new ObjectOutputStream(
new FileOutputStream( f ) );
ByteArrayInputStream inStream =
new ByteArrayInputStream( (byte[]) input.readObject() );
JPEGImageDecoder decoder =
JPEGCodec.createJPEGDecoder( inStream );
BufferedImage sigImage = decoder.decodeAsBufferedImage();
JPEGImageEncoder encoder =
JPEGCodec.createJPEGEncoder( toFile );
encoder.encode( sigImage );
toFile.flush();
output.close();
input.close();
connection.close();
toFile.close();
I imagine I have very ugly looking code here but I've been trying to make something work. My code does create the file but it is not a recognizable JPG file.
Ryan

Similar Messages

  • How to delete the workbench client server name in FDM

    Hi Gurus
    How to delete/change the workbench client server name in FDQM?
    regards
    Sarilla

    OK, I understand now. You are referring to the Load Balance Server Group. Yes, this can be done:
    a) Browse to Oracle\Middleware\EPMSystem11R1\Products\FinancialDataQuality\SharedComponents\Config
    b) Locate the LoadBalanceServerGroups.xml file
    You can delete this file. The next time the workbench is launched it will ask you to set the load balance server group again and will create this file again.

  • How to pass XML(Binary) to Server Proxy in ABAP report

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Sarvesh,
    The pdf has details of ABAP mapping. The example given almost matches the xml file you want to be converted.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use abap-mapping in xi 3.0.pdf
    Just in case you have not seen this
    regards
    Vijaya

  • JavaFX as a SaaS/ How good is it for Client-Server work?

    I was under the impression that FX could be used to produce a Client-Server application as well as SaaS.
    a member of another forum said "I'm sure you meant to say "Desktop". JavaFX will not be making inroads on the web as a client-side technology."
    To which I said
    There have been examples of FX used with EE
    http://www.oracle.com/technetwork/java/javafx/samples/index.html
    http://docs.oracle.com/javafx/2/overview/jfxpub-overview.htm
    Sales Dashboard (DataApp)
    DataApp is a client-server application for a fictional global automobile company called Henley Car Sales. Automobile sales are simulated on an EJB server using JavaDB, and the data is available via Derby and a RESTful web service. The client demonstrates a variety of data presentations by using a mix of FXML and JavaFX.
    I thought originally that JavaFX was "Desktop" only also, until I found this example. I couldn't get it to run due to some weird Database line read issue that others also had. I'm not sure if this is now due to FX's integration, or if this was something new, but I believe I have seen another FX client-server app as well.
    I'm not that familiar with the client-server side of Java yet, so if you have other Information I would like to know, because I am looking to design a Client-Server app with FX, and I don't see why it would be an issue, unless there are huge limitations."
    He ended up saying "Those are still desktop apps. Sure, they are client-server in that they connect to a remote database. But they are still traditional fat-client apps rather than web-based thin-client SAAS web applications which, these days, most people will think of when you say "client".
    My point is to be more precise when you use the word "client".
    But if your point is just that JavaFX is taking over from Swing for the limited areas in which Swing is used, I have no insight into that area."
    Now I don't really like attitudes when I get my question answered, but the high and mighty needs to stop. It clearly says Client-Server so I don't know why it's being denounced by this dude who thinks he obviously knows better.
    Anyways he talks about it only being able to connect to a DB, to which it says it uses EE tech such as EBJ, Restful, and Derby, so that's more than just DB right(I don't know since I havent' learned that yet)?
    It seems as if he's saying that only EE code can go up on a server? Or can SE code go up there as well?
    I'm looking to design a SaaS software with FX, so if this isnt' possible I would like to know possible other options(or just having all of the gui work on the client, and the rest on the backend)???
    Thanks!
    ~KZ
    Edited by: KonradZuse on Apr 30, 2013 11:26 AM

    This response is not a tutorial, I hope it gives you some verbiage to use in further searches.
    SaaS to me means that the service is running on the server. If you have the server and permission to run java apps there then you can use Java FX by having the server shuttle requests to the Java FX app. But this is probably not the intent of Saas (it would be more appropriate to use a java implemented web service).
    If you are using Netbeans then it is very easy to create demo projects; use "File/New Project" to run them on your local computer.
    Example File/New Project/Java Web/Web Application will give you a hello world web site very quickly. This will 1) start either tomcat or glassfish as the server. 2) launch an html page with "hello world". then you can use java script to talk with the server via ajax. Using this approach you are going to need to study JSP or J2EE stuff.
    After this is running you could start one of the Java Fx examples in Netbeans: File / New Project / Samples / WebViewBrowser. This will start a javaFX app that acts like a browser and runs on the client.
    So, start the "hello world" app in netbeans by right clicking it in the project pain and selecting "debug". Then start the webviewBrowser app the same way to load that web page that has "hello world" in it as all browsers do. In the WebviewBrowser (which is java fx) you can get at the javascript in the web page and do all kinds of stuff. You'll need to search for webviewBrowser examples.
    The above all assumes a Netbeans solution. But, as you probably know, there are no rules. The server can be in C++ and the client in C (or any other language). The server and client usally communicate via http or tcp. So you could have a server written in java (maybe J2ee or you can rewrite a http server from scratch which isn't that hard - search for "HttpServletRequest and HttpSession" ) and the client can be in Java FX (where the Java FX talks directly with the server via http (no javascript or web page in the middle) again there are probably hundreds of libraries to talk to a http server).
    I use HttpServletRequest and HttpSession on the server side with MySQL and xml. On the client I use javaScript but I am moving to a strictly Java FX solution. This will give me close to 100% java on both sides and for my purposes this will work. (I may need a little html in the middle for drag and drop installation.) I am hoping that work continues with porting Java FX to most devices: Android, IOS, WinPhone. It is already on Linux, Windows Desktops and Mac.
    Edited by: KevinPas on May 1, 2013 9:50 AM
    Edited by: KevinPas on May 1, 2013 9:56 AM

  • How to set proxy for client-server socket connection?

    Hi,
    I'm using the code found on the following page to create a client (mobile) to server (pc) connection and send a text message.
    http://javafaq.nu/java-example-code-503.html
    This works with mobile operators without proxy, but does nothing when the operator uses a proxy. The question is, exactly how to set the proxy and port values for using that code.
    Any help is greatly appreciated, thanks,

    It's part of the cellular settings, and is usually set up by your 3G provider. You can't choose your own proxy server

  • How to pass remote objects from server to server?

    hi,
    if you
    1) have two servers, A and B
    2) one client, C
    3) and B obtains a reference to an object in A
    is it possible to pass that reference to C, in such a way that once C has the reference it no longer needs to know B even exists, and can communicate directly with A?
    thanks
    asjf

    It sounds like you are having A server as some kind of a cross-server registry for B.
    Your problem can be broken into two steps:
    1. Either A looks up B (via RMI), and keeps a reference (to later be handed to C), or B looks up A and makes some kind of a "register" call, again A then holding a reference to B which will be passed to C.
    2. C asks A for the reference and A returns it.
    The mechanics OUGHT TO BE pretty simple; B is declared as a UnicastRemoteObject, so any attempt to pass or return a B passes or returns a remote reference.
    I say OUGHT TO because I haven't tried this scheme.

  • How to pass values to SQL server Agent Job which internally calls SSIS

    Hi,
    I have a requirement where i need to call remotely SSIS package from ASPX. After following MSDN form, I have creaed one SQL server agent job and calling that job from ASPX. I am ablt call SQL server agent job from ASPX. Only issue i am facing is: I need
    to pass 2 variables from ASPX to SQL Agent job so that from Job i can map the same to SSIS Package.
    I am using system SP (sp_start_job) for calling SQL server agent job as mentioned in MSDN forum.
    below is the code , which i am using to call SQL serve agent job.
    Code:
    SqlConnection
    jobConnection;
    SqlCommand jobCommand;
    SqlParameter jobReturnValue;
    SqlParameter jobParameter;
    int jobResult;
                    jobConnection =
    new
    SqlConnection("Server=ServerName;Initial
    Catalog=msdb;Integrated Security=SSPI;user id=username;Password=password");
                    jobCommand =
    new
    SqlCommand("sp_start_job",
    jobConnection);
                    jobCommand.CommandType =
    CommandType.StoredProcedure;
                    jobReturnValue =
    new
    SqlParameter("@RETURN_VALUE",
    SqlDbType.Int);
                    jobReturnValue.Direction =
    ParameterDirection.ReturnValue;
                    jobCommand.Parameters.Add(jobReturnValue);
                    jobParameter =
    new
    SqlParameter("@job_name",
    SqlDbType.VarChar);
                    jobParameter.Direction =
    ParameterDirection.Input;
                    jobCommand.Parameters.Add(jobParameter);
                    jobParameter.Value =
    "ImportCMTData";
                    jobConnection.Open();
                    jobCommand.ExecuteNonQuery();
                    jobResult = (
    Int32)jobCommand.Parameters["@RETURN_VALUE"].Value;
                    jobConnection.Close();
    switch (jobResult)
    case 0:
    Console.WriteLine("SQL
    Server Agent job, RunSISSPackage, started successfully.");
    break;
    default:
    Console.WriteLine("SQL
    Server Agent job, RunSISSPackage, failed to start.");
    break;
    Console.Read();
    Thanks
    Pankaj

    "3-4 concurrent users are calling the SSIS package from ASPX page" this is not a proper design
    If the data is being ingested than it is likely that this concurrency will lead to one of the packages die
    What you shell do is to just queue the data ingress/processing.
    In general, again, packages should not be called from ASP web pages, SSIS is ETL-server side technology there is nothing signalling back to the user whether it was successful. The proper way is to write a REST service or alike. 
    Arthur
    MyBlog
    Twitter

  • Help needed regarding the client server communication

    this is regarding my networking project which at present i am doing it in java...
    the project is abt establishing a server in my lab that controls all the other systems in that lab... now the problem is i have to shut down all the systems in the lab from the server on a click of a button.... this i need to do using socket programming to which i am new....
    So can anyone pls send me a sample code as to how to pass a command from server to shut shut down all the systems(clients) ..i need a java program that uses sockets concept to perform the above mentioned operation...pls note i am trying to establish a linux server
    regards
    lalita

    Dear hiwa
    i can use it but the constraint in my project is to use only the Socket programming due to time lacks.... i have to find a faster way to communicate between the server and the client...
    can u pls help me find a solution for this via sockets...
    hoping a favorable response
    regards
    Lalita

  • Instant Message client - server communication

    Hi,
    I am writing an instant message application that has central server and many connected clients. When one client writes a message to the server, the server echoes the message to all concerned clients
    My server is a servlet, running on a J2EE web server. My client should run on Windows operating system and communicate with the WIN32 API.
    My problem is:
    The server is written in JAVA and my client should use the WIN32 API (in order to add its icon to the Windows tray for instance). How should I perform the client - server communication? What protocol/technology should I use? Should I write my client in C++ and from the server open a socket and perform HTTP requests? It looks too low level to me and not the �right� approach. Does it make sense to write my client in java and let it use JNI? And if yes, what is the preferred way of client � server communication?
    Is there any good reference I can use?
    Thanks

    The both alternates you are thinking over are fine. But the later one may cause some performance and memory issues.
    If you want to go with the first alternate, I suggest you to develope your owen server using ServerSocket and use your own protocol for communication between client and server over the sockets. Because using HTTP protocol will slow down your entire application. It adds overhead because each request passes through the servlet container.

  • Client server architecture

    hello friends:
    can we use the XE for the client server architecture???.....which means can we use XE in the same way as we use the standard edition by using net configuration assiatant......if yes then how????

    client server architecture :-)

  • Begging for help. SSLSocket client/server

    Hello Everyone,
    At my wits end and behind my project plan. I need to secure my server.
    I have generated a keystore
    Exported certificate into CER file
    Imported this certicate into the JAVA_HOME/lib/security/cacerts file.
    I have my JBoss secured on port 8443.
    Here is m client code
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    public
    class EchoClient
    public
    static
    void
    main(String [] arstring)
    try
    SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket sslsocket = (SSLSocket)sslsocketfactory.createSocket("172.16.220.178:8443", 9999);
    InputStream inputstream = System.in;
    InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
    BufferedReader bufferedreader = new BufferedReader(inputstreamreader);
    OutputStream outputstream = sslsocket.getOutputStream();
    OutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputstream);
    BufferedWriter bufferedwriter = new BufferedWriter(outputstreamwriter);
    String string = null;
    while ((string = bufferedreader.readLine()) != null)
    bufferedwriter.write(string + '\n');
    bufferedwriter.flush();
    catch (Exception exception)
    exception.printStackTrace();
    and here is my server code
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    public
    class EchoClient
    public
    static
    void
    main(String [] arstring)
    try
    SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket sslsocket = (SSLSocket)sslsocketfactory.createSocket("172.16.220.178:8443", 9999);
    InputStream inputstream = System.in;
    InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
    BufferedReader bufferedreader = new BufferedReader(inputstreamreader);
    OutputStream outputstream = sslsocket.getOutputStream();
    OutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputstream);
    BufferedWriter bufferedwriter = new BufferedWriter(outputstreamwriter);
    String string = null;
    while ((string = bufferedreader.readLine()) != null)
    bufferedwriter.write(string + '\n');
    bufferedwriter.flush();
    catch (Exception exception)
    exception.printStackTrace();
    How can I get this client/server talking using my own keystore. ????
    I only need my server to be secured. I dont need any client authentication or anything. I just need my client to connect using Sockets to a secure server.
    Thanks.
    Desperate Joyce

    Ok, you can't secure a server, you can only sercure the connection between them. That means either the client needs who it is talking to or the server needs to know who it is talking to. You can have a ssl connection where nobody knows who they are talking to as well if you want. I'll go through it for server authentication by client. If you need it the other way around the same principle holds. Give me an hour and I'll put up the code for a connection without auth.
    Ok, if you need to authenticate the server.
    In the client you will need to have a keystore for trusted certificates (i.e. cacerts)
    You will need a trustmanager to decide whether or not to trust the server.
    And using both of these you need to create as ssl context.
    On the server, you will need a keystore containing its X509 certificates
    A keymanager to manage these certificate and again an SSL context.
    Then start the handshake. The client will connect to the server using an SSL Socket.
    On the starthandshake() method, the server will sent the client its X509 certificates from its
    keystore. The clients trust manager will then try to create a certificate chain from these certificates
    back to one of its trusted certificates (stored in its trusted keystore).
    Client should look a little like this:
    SSLContext ctx;
         TrustManagerFactory tmf;
         KeyStore ks;
         char[] passphrase = "passphrase".toCharArray();
         System.out.println("set up context, keystore and trustManagerFactory");
         ctx = SSLContext.getInstance("SSL");
         tmf = TrustManagerFactory.getInstance("SunX509");
         ks = KeyStore.getInstance("JKS");
                         System.out.println("set context to ssl, tmf to X509 and keystore to JKS");
         ks.load(new FileInputStream("testkeys"), passphrase);
         System.out.println("loading testkeys using passphrase");
         tmf.init(ks);
         System.out.println("initialise keystore using passphrase");
         ctx.init(null, tmf.getTrustManagers(), null);
         System.out.println("initialise the key manager");
         SSLSocketFactory factory = ctx.getSocketFactory();
         System.out.println("got socket factory, now trying to create socket");
                          SSLSocket socket = (SSLSocket)factory.createSocket(serverAddress, port);
                         System.out.println("starting handshake");
         socket.addHandshakeCompletedListener(new HandshakeCompletedListener()
                               public void     handshakeCompleted(HandshakeCompletedEvent event)
                   System.out.println("Handshake finished!");
                   System.out.println("\t CipherSuite:" +
                   event.getCipherSuite());
                   System.out.println("\t SessionId " +
                   event.getSession());
                   System.out.println("\t PeerHost " +
                   event.getSession().getPeerHost());
         socket.startHandshake();
         System.out.println("SSL Socket Connected");
         catch (Exception e)
              System.out.println("error along the way somewhere :" + e.getMessage());
                              e.printStackTrace();
        }The Server will look a little like this:
    //=================================================================================
    SSLServerSocketFactory ssf = null;
    try
                         SSLContext ctx;
         KeyManagerFactory kmf;
         KeyStore ks;
         char[] passphrase = "passphrase".toCharArray();
                         System.out.println("set up context, keystore and keymanagerfactory");
         ctx = SSLContext.getInstance("SSL");
         kmf = KeyManagerFactory.getInstance("SunX509");
         ks = KeyStore.getInstance("JKS");
         System.out.println("set context to ssl, kmf to X509 and keystore to JKS");
         ks.load(new FileInputStream("testkeys"), passphrase);
         System.out.println("loading testkeys using passphrase");
         kmf.init(ks, passphrase);
         System.out.println("initialise keystore using passphrase");
         ctx.init(kmf.getKeyManagers(), null, null);
         System.out.println("initialise the key manager");
         ssf = ctx.getServerSocketFactory();
         System.out.println("got the server socket factory for that context");
    catch (Exception ex)
         System.out.println("Error along the way somewhere : " + ex.getMessage());
         ex.printStackTrace();
    try
         SSLServerSocket ss = (SSLServerSocket) ssf.createServerSocket(port);
         System.out.println("created ssl server socket for port " + port);
         myServer serve = new myServer(ss);
    catch(IOException e)
               System.out.println(e.getMessage());
                 e.printStackTrace();
                 System.exit(1);
    }where myServer is this:
    import java.net.*;
    import javax.net.*;
    import javax.net.ssl.*;
    public class myServer implements Runnable {
    private ServerSocket server = null;
    public myServer(SSLServerSocket ss)
                         System.out.println("Created myServer instance with server socket");
         server = ss;
         newListener();
        private void newListener()
         System.out.println("Created new listener");
             (new Thread(this)).start();
        public void run()
         System.out.println("Listening for connections");
             Socket socket;
             try
              System.out.println("Trying to accept connection");
                                     socket = server.accept();
                                  System.out.println("Accepted Connection, starting handshake");
                                  ((SSLSocket)socket).addHandshakeCompletedListener(new HandshakeCompletedListener()
                   public void     handshakeCompleted(HandshakeCompletedEvent event)
                        System.out.println("Handshake finished!");
                        System.out.println("\t CipherSuite:" +
                        event.getCipherSuite());
                        System.out.println("\t SessionId " +
                        event.getSession());
                        System.out.println("\t PeerHost " +
                        event.getSession().getPeerHost());
                                  ((SSLSocket)socket).startHandshake();
             catch (IOException e)
                 System.out.println("Class Server died: " + e.getMessage());
                 e.printStackTrace();
                 return;
             newListener();
    }Most of this code came from the sun website, just a couple of tweaks for it to do what I wanted it to.

  • How to Pass a data from Client to another client

    Hi Gurus,
             Below is my requirerment
    1. We got 2 clients, assume 100 & 200 in a same server
    2. If i post any transaction in MIGO and save it, Automatically the values has to be  passed to the client 200.
    How I could achive this ?
      Rewards Assured for any helpful answers
      Thanks in Advance
       Jai

    hi jai,
    Use STMS.
    Click on the “import overview”
    Double click on your target system
    Click “refresh”
    Click on “import all request” or ctrl+F9
    Specify the target client
    Execute the transport
    Done…
    But this will import all request…
    You can use Extended Transport Control.
    Extended Transport Control is another way to set up the Transport Route so that the route is system and CLIENT specific.
    In other words, when you release a change request in DEV Client 0XX it will not only automatically be added to the Import Queue for QAS but also 0X1, 0X2, of DEV.
    To set this up requires the steps below:
    1) Open the file TP_DOMAIN_DEV.PFL (located on your transport domain controller such as the DEV box. The file will be in usrsaptrans/bin)
    Edit with notepad for each parameter on each system:
    DEV/CTC = 0
    Change to =1
    2) Next you need to create Target Group before creating the transport route.
    Create a Target Group:
    Access the initial screen of the graphical or the hierarchical editor in change mode. STMS > Overview > Transport Routes (the default editor will appear, either Hierarchical or Graphical, to change the default editor : STMS > Extras > Settings > Transport Routes. You can also switch to one or the other from Goto > Graphical Editor.)
    Configuration > Display Change > (or change icon or F5)
    Edit > Transport Target Groups > Create
    In the dialog box, Create Target Group:
    Enter a name for the target group /GR_QA/ (The name must begin and end with a forward slash /)
    ...and a description Targets for Consolidation route
    Choose “Insert line”
    Enter the required target system/client combinations
    Use a separate line for each client.
    Example:
    Target System
    Target Client
    Client Name
    DEV
    0X1
    Sandbox
    DEV
    0X2
    Testing
    QAS
    0XX
    Quality Assurance System
    The idea is that we want to include the clients that will get an addition to their import queue when we release a change request from DEV.
    Choose Transfer
    Now you have to change the transport route to include the Target Group you created.
    STMS > Overview > Transport Routes > F5 (change mode) Edit > Transport Routes > Delete
    Now create a Transport Route with Extented Transport Control:
    STMS > Overview > Transport Routes > F5 (change mode) Edit > Transport Routes > Create > Extended Transport Control icon at lower left of dialog box. > Consolidation route, enter integration system and transport layer. In Target system/client enter the SID of either an R/3 System and a client or an existing Target Group.
    Each System must be specified by System and Client. The Target Group can be used for the consolidation system.
    Distribute and activate the changes as usual by choosing Configuration > Distribute and activate
    NOTE: After you set up Extended Transport Control there might be requests in an import queue that will show a red status in the CTL column. This is because these change requests need a client specified before they can be imported. These are old requests that were already in the queue.
    From Import Queue Screen Mark the change request
    Choose Request > Target Client > Set
    Enter the Target Client ID and choose Enter.
    To change a target client before starting an import:
    Import Queue Screen > mark Change request > target client > change > enter target client id and choose enter.
    Don't forget to reward,
    Thanks & rewards,
    Kalyan.

  • How to pass command line parameters During server start up

    Hi,
      I am trying to use Net Beans profiling tool.On the server side i required to pass a command line option to enable remote profiling.
    Regards,
    Kiran.

    Hi, MB.
    If you are talking about the automatic Java Web Start support for launching app clients in GlassFish, you can pass the equivalent of command line arguments using the query string of the URL you use to launch the app client.
    Briefly, use
    http://host:port/client-path?arg=first-arg&arg=second-arg& ...
    specifying the argument values in the order that you want them passed to the client.
    The GlassFish server will do the right thing and generates the correct JNLP so your arguments are passed to the app client.
    The GlassFish developer's guide http://glassfish.dev.java.net/nonav/javaee5/docs/AS91DG.pdf discusses this and all aspects of the Java Web Start support. You can also take a look at this blog entry http://blogs.sun.com/quinn/entry/command_line_arguments_and_properties that focuses on how to pass arguments.
    Since this technique deals with argument passing in the URL, it works no matter how you launch the app client: a URL in a browser, the javaws command, etc.
    - Tim

  • Client/server architecture - how is this supposed to work?

    Hi all,
    I am in the initial throws of developing a client server program - my very first - and have been studying the forums for answers, BUT...
    I am curious how this process works without using RMI...?
    To pass primative types or objects to the server from the client I can use serializable, however, how does one also call a method on the server AND pass these variables as the parameters? Is this even possible or am I not thinking this through properly?
    This is the order of operation I had in mind...
    1. Send an int over the connection
    2. Use the int in a switch statement at the server side to invoke the correct method
    3. The method then reads the serialized data stream and casts to the expected objects/types.
    4. Method executes and sends back any data in the same manner.
    The process must be common practise? Surely there is a less convoluted way of doing this?
    It would be great to suss out a way of doing this without jumping to RMI 'just yet'...
    Gracias!
    Message was edited by:
    hagend
    Actually, I think RMI is probably the easiest way of implementing this. I beleive I misinterpreted aspects of RMI - ALL GOOD!

    CORBA, basically it is RPC just like RMI, but a little different.

  • Mac mini server how many clients serve same time

    mac mini server[lion server] how many clients serve same time, the web server, suppose only traffic the web server?
    macs/PCs with server OSs designed for work as normal, but more mainly for left on, connected and serve clients on the internet eg web server, mail server? T/F

    Thanks for your help. I actually forgot that I posted this and when I saw the email telling me you sent a repsonse I then did another search (using a different phrase) and I found this:
    https://discussions.apple.com/thread/4554036?start=0&tstart=0
    I think that is saying that I can do what I am asking.

Maybe you are looking for

  • In iOS 7, my clipboard is not working properly.

    When I try to paste anything in an app or message it brings up a previously copied message, not my most recent "copy". What is going on?

  • Hi Have an error while creating the user in BBPAT03

    Hi, I am getting an error while trying to create a user (I have to create a PCARD information) in tcode BBPAT03. I am working on SRM 4.0. Error: The Invalid date format ... Thanks Jagan

  • Has anyone else seen ORA-00980 synonym errors when using XMLConcat?

    Hi, Using 10.2.0.2 ( as shown by select * from v$instance), I get an ORA-00980 "Synonym translation is no longer valid" message. This occurs for any attempt to use XMLConcat, for a simple example: SELECT XMLConcat(XMLElement("first", 'Steve'), XMLEle

  • Windows OS on Nokia N8

    Hello does anybody know when or if gonna be  OS changed on N8?  that would be awesome  lets buried **bleep** symbian once for all !! Solved! Go to Solution.

  • Media List required for EHP7 OF ERP 6

    Hello, We plan to upgrade our ERP 6.0 ABAP systems (Unix,Oracle) on SAP NETWEAVER 7.00 to EHP7 for SAP ERP 6 based on SAP Netweaver 7.4 (Linux,Oracle) after OS/DB migration I know the path from where I can download the media but want to know if there