How to bulid client and server on differen machine

i want to build client on a sco unix machine and
server on a tandem unix machine.how can i complete it?
i made a test.the application is simple sample TOUPPER.
below is my ubbconifg
#ident     "@(#)apps:simpapp/ubbsimple     60.3"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed> items with the appropriate values.
*RESOURCES
IPCKEY          50000
#Example:
#IPCKEY          123456
DOMAINID     simpapp
MASTER          simple
MAXACCESSERS     5
MAXSERVERS     5
MAXSERVICES     10
MODEL          MP
LDBAL          N
OPTIONS          LAN
*MACHINES
FSPSRB          LMID=simple
          TUXDIR="/db010/gdproj/tuxedo"
          APPDIR="/db010/home/tuxtest/gy"
          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
          UID=135
          GID=120
GDPSRB          LMID=simple2
TUXDIR="/appl/gdproj/tuxdev"
          APPDIR="/appl/home/gy/simple"
          TUXCONFIG="/appl/home/gy/simple/tuxconfig"
          UID=139
          GID=100
#DEFAULT:
#          APPDIR="/db010/home/tuxtest/gy"
#          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
#          TUXDIR="/db010/gdproj/tuxedo"
#Example:
#          APPDIR="/home/me/simpapp"
#          TUXCONFIG="/home/me/simpapp/tuxconfig"
#          TUXDIR="/usr/tuxedo"
#FSPSRB          LMID=simple
#Example:
#beatux          LMID=simple
*NETWORK
simple          NADDR="//10.194.0.3:9000"
NLSADDR="//10.194.0.3:9001"
          BRIDGE="/dev/tcp"
simple2          NADDR="//10.194.0.155:9000"
          NLSADDR="//10.194.0.155:9001"
BRIDGE="/dev/tcp"
*GROUPS
GROUP1
     LMID=simple     GRPNO=1     OPENINFO=NONE
*SERVERS
DEFAULT:
          CLOPT="-A"
simpserv     SRVGRP=GROUP1 SRVID=1
*SERVICES
TOUPPER
i start the tlisten at each site .
when i exec tmboot -y i can't get BBL at client site
below is the ULOG at server site
092248.FSPSRB!DBBL.5148: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
092248.FSPSRB!DBBL.5148: LIBTUX_CAT:262: INFO: Standard main starting
092250.FSPSRB!BBL.5149: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
092250.FSPSRB!BBL.5149: LIBTUX_CAT:262: INFO: Standard main starting
092252.FSPSRB!DBBL.5148: CMDTUX_CAT:4350: INFO: BBL started on simple - Release
6400
092253.FSPSRB!BRIDGE.5150: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
092253.FSPSRB!BRIDGE.5150: LIBTUX_CAT:262: INFO: Standard main starting
092253.FSPSRB!BRIDGE.5150: LIBTMIB_CAT:74: ERROR: Failed to advertise dynamic
/Admin service TBR0
092253.FSPSRB!BRIDGE.5150: CMDTUX_CAT:1788: WARN: Could not advertise administrative
service
092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
Service Table
092300.FSPSRB!tmboot.5147: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process BBL at simple2 failed
with /T tperrno (TPENOENT - no entry found)
092300.FSPSRB!tmboot.5147: WARN: No BBL available on site simple2.
     Will not attempt to boot server processes on that site.
092300.FSPSRB!simpserv.5153: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
092300.FSPSRB!simpserv.5153: LIBTUX_CAT:262: INFO: Standard main starting
092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
Service Table
092300.FSPSRB!simpserv.5153: LIBTUX_CAT:248: ERROR: System init function failed,
Uunixerr =
092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process simpserv at simple failed
with /T tperrno (TPENOENT - no entry found)
below is the ULOG at client site
071457.GDPSRB!tmloadcf.15432: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
1, num 879; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
1, num 871; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071457.GDPSRB!BSBRIDGE.15436: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
071457.GDPSRB!BSBRIDGE.15436: NLS:4: Cannot open message catalog LIBTUX_CAT, set
1, num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071500.GDPSRB!BBL.15441: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
071500.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
num 248; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog CMDTUX_CAT, set 1,
num 26; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
i can set BRIDGE at each site.from the client ULOG ,i think
the "LIBTUX_CAT, set 1, num 248" is the reason BBL can't boot.
In reference manual LIBTUX_CAT 248 means "System init function faied".
what can i do at this time.Please help me.
If possible,please send me a exapmle.
thanks!!!
[email protected]

gongyu,
The problem is that your MAXSERVICES parameter is too low.
Increase it (say, to 100) and while you're at it, I would increase MAXSERVERS
and MAXACCESSERS too (Maybe 50 and 100 respectively)
Then your app. should boot.
There is no fundamental problem with what you're trying to do.
Regards,
Peter.
gongyu wrote:
i want to build client on a sco unix machine and
server on a tandem unix machine.how can i complete it?
i made a test.the application is simple sample TOUPPER.
below is my ubbconifg
#ident     "@(#)apps:simpapp/ubbsimple     60.3"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed> items with the appropriate values.
*RESOURCES
IPCKEY          50000
#Example:
#IPCKEY          123456
DOMAINID     simpapp
MASTER          simple
MAXACCESSERS     5
MAXSERVERS     5
MAXSERVICES     10
MODEL          MP
LDBAL          N
OPTIONS          LAN
*MACHINES
FSPSRB          LMID=simple
          TUXDIR="/db010/gdproj/tuxedo"
          APPDIR="/db010/home/tuxtest/gy"
          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
          UID=135
          GID=120
GDPSRB          LMID=simple2
TUXDIR="/appl/gdproj/tuxdev"
          APPDIR="/appl/home/gy/simple"
          TUXCONFIG="/appl/home/gy/simple/tuxconfig"
          UID=139
          GID=100
#DEFAULT:
#          APPDIR="/db010/home/tuxtest/gy"
#          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
#          TUXDIR="/db010/gdproj/tuxedo"
#Example:
#          APPDIR="/home/me/simpapp"
#          TUXCONFIG="/home/me/simpapp/tuxconfig"
#          TUXDIR="/usr/tuxedo"
#FSPSRB          LMID=simple
#Example:
#beatux          LMID=simple
*NETWORK
simple          NADDR="//10.194.0.3:9000"
NLSADDR="//10.194.0.3:9001"
          BRIDGE="/dev/tcp"
simple2          NADDR="//10.194.0.155:9000"
          NLSADDR="//10.194.0.155:9001"
BRIDGE="/dev/tcp"
*GROUPS
GROUP1
     LMID=simple     GRPNO=1     OPENINFO=NONE
*SERVERS
DEFAULT:
          CLOPT="-A"
simpserv     SRVGRP=GROUP1 SRVID=1
*SERVICES
TOUPPER
i start the tlisten at each site .
when i exec tmboot -y i can't get BBL at client site
below is the ULOG at server site
092248.FSPSRB!DBBL.5148: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
092248.FSPSRB!DBBL.5148: LIBTUX_CAT:262: INFO: Standard main starting
092250.FSPSRB!BBL.5149: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
092250.FSPSRB!BBL.5149: LIBTUX_CAT:262: INFO: Standard main starting
092252.FSPSRB!DBBL.5148: CMDTUX_CAT:4350: INFO: BBL started on simple - Release
6400
092253.FSPSRB!BRIDGE.5150: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
092253.FSPSRB!BRIDGE.5150: LIBTUX_CAT:262: INFO: Standard main starting
092253.FSPSRB!BRIDGE.5150: LIBTMIB_CAT:74: ERROR: Failed to advertise dynamic
/Admin service TBR0
092253.FSPSRB!BRIDGE.5150: CMDTUX_CAT:1788: WARN: Could not advertise administrative
service
092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
Service Table
092300.FSPSRB!tmboot.5147: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process BBL at simple2 failed
with /T tperrno (TPENOENT - no entry found)
092300.FSPSRB!tmboot.5147: WARN: No BBL available on site simple2.
     Will not attempt to boot server processes on that site.
092300.FSPSRB!simpserv.5153: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
092300.FSPSRB!simpserv.5153: LIBTUX_CAT:262: INFO: Standard main starting
092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
Service Table
092300.FSPSRB!simpserv.5153: LIBTUX_CAT:248: ERROR: System init function failed,
Uunixerr =
092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process simpserv at simple failed
with /T tperrno (TPENOENT - no entry found)
below is the ULOG at client site
071457.GDPSRB!tmloadcf.15432: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
1, num 879; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
1, num 871; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071457.GDPSRB!BSBRIDGE.15436: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
mips.
071457.GDPSRB!BSBRIDGE.15436: NLS:4: Cannot open message catalog LIBTUX_CAT, set
1, num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071500.GDPSRB!BBL.15441: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
071500.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
num 248; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog CMDTUX_CAT, set 1,
num 26; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
i can set BRIDGE at each site.from the client ULOG ,i think
the "LIBTUX_CAT, set 1, num 248" is the reason BBL can't boot.
In reference manual LIBTUX_CAT 248 means "System init function faied".
what can i do at this time.Please help me.
If possible,please send me a exapmle.
thanks!!!
[email protected]

Similar Messages

  • How to create client and server app using node.js in firefox os.

    I want to create a client and server app using node.js for firefox os. Please suggest me how to create a apps.
    I want to send a request from client to server and based on client request, service reply to client.
    If any links available, Please share it.
    Thanks

    Hi sb00349044,
    The SUMO forums focuses on end-user support.
    For questions about developing for Firefox OS, you will find better guidance in MDN, StackOverflow, and mailing lists:
    * [https://developer.mozilla.org/en-US/Firefox_OS MDN - Firefox OS]
    * [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow - Firefox OS]
    * [https://lists.mozilla.org/listinfo Mailing Lists at Mozilla]
    Thanks,
    - Ralph

  • How to Integrate Client and Server?

    How to Integrate Client system and Server system?
    A scenario which is working successfully in server system, not working in client system.
    help me out in this issue.
    pankaj.

    This doesn't make any sense... ???
    can you please rewrite your question?

  • Multiplayer game: how to synchronize client and server

    Hi there, I'm wondering how to synchronzie client's and server's frame number?
    I have a multiplayer spaceship(2D) game running at constant 30 FPS, since I use "frame number" to determine if a packet is too late or not, so I would like to have server and client both start frame 1 at the same time, but I have no idea how to do so, can anyone give me a hint?
    well, if you want more details(may not be too much relevant to my problem, but any way, for anyone who interested):
    I use UDP(my teammate implemented a TCP version, it's working but TCP is just way too stupid, lagging and some unknown problems produce very funny result). So far, on client side, input(key strokes) is sent via network immediately, but processed 2 frames later locally. So on lan, server will likely get the packet before it's time to process it, thus solve the packet delay problem a little bit).
    Example: If user pressed fire button at frame 5, it's sent immediately to server, then at frame 7, client engine processes this "fire" event, and likely, server will get this packet at frame 6 or 7, then it can just processes it in time as well.
    So there's a problem, server and client must both running the same frame number at the same time(maybe not exact, but gotta be very close).
    By the way, I need some suggestions implementing the server, my brain hurts just thinking about it, I hope I will never have to code network stuff again: Server runs at 30FPS(but only broadcast game state at 6FPS), it just sit there between frame 1~4, get all packets and store them, then between frame 4~5, processes all the packets recieved, then broadcast the result(game state), client recieves it, will treat this game state as "correct game state for frame 5". I use this way because it solves packet delay and out of order packet to some extend.
    However, say, if server broadcasts the game state for frame 5 at frame 5, then client is likely to recieve it at frame 7 or even later, how can client use it?
    So, together, if you have suggestion or solution for my server and client implementation, please let me know, thanks heaps. I'm in quite a desperation at the moment.
    P.S: I also posted this synchronizing problem at the socket programming forum, hope you guys (and girls) dont mind, since this is a place talking about game, that is a place talking about network, so I thought might be good to have suggestions from people in different programming area.

    Why does the client need to have the same frame number as the server? I think a good way to do it would be as follows:
    - Client sends all of the user's commands to the server (i.e. accellerate left, accellerate right, start firing, etc).
    - Server processes these to update game state and every so often sends updates to the clients, saying something like "at frame 7, user X is at (10, 10) and user Y is at (20,20) and firing south".
    - Clients process all updates from the server, as long as it hasn't seen any update from a later time yet. So if it recieves the update from time 10 before the update from time 9, it only does the one from time 10. It tries to move things smoothly, taking into average time between updates (if there are 100 ms between updates and on the next frame, user X should move 10 units, then move 1 unit every 10 ms).
    By the way, it is possible to use TCP in games. Most MMORPG games use it. I don't know whether it's fast enough for a spaceship game, but it might be worth trying to fix the code you have. Try to keep packets small (use bytes for event type codes, player numbers, etc), group multiple events into one packet if they are all available at the same time, flush() the output stream as soon as you send one, and don't use a buffered stream or reader when reading them.

  • Running jms client and server on different machines

    Hi (again) ,
    I would like to know how to make a client jms application talking to a jms server on another machine, if someone could point out some tutorial that talks about it that would be good as well.
    Is it necessary to have jms servers on both machines to make it possible?
    Thanks in advance!

    In a very simplistic light...
    You can set these properties when you create your initial context.
    In the following code sample I'm using a Weblogic JMS Server which is running on machine A, port 9179:
    Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://machineA:9179");
    InitialContext ctx = new InitialContext(props);
    There are other ways of setting these properties such as using a properties file
    hope this helps!

  • How to identify client and server versions

    Hi all,
    Ok, this may sound silly, but I have to write an application to access an Oracle database. Prior development in other languages has used ODBC and works fine. VS.NET using the OLE DB works as well.
    However, I installed the ODT with ODAC 11.10.6.21 and tried that. I get an error trying to access the data.
    When I execute the conn.open(), I get:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I have opened the TNSNames.ora file and used that to create the connection string just in case. But I still get the error.
    My guess is that either the client on my system is too old or the Oracle Server is still running an old version.
    Is there an easy way for me to identify the latest client I have installed as well as the version of Oracle that is running on the server?
    No, I can't just ask the people who manage the server or I would have done so already. I am a contractor here and it is very hard for me to get through to anyone who might know.
    Thanks,
    JustMe

    http://www.oracle.com/technology/tech/dotnet/col/odt_faq.html#ORA-12154:_TNS:could_not_resolve_the

  • Async tcp client and server. How can I determine that the client or the server is no longer available?

    Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
    I thought I will get an exception if the client or the server is not available but this is not happening.
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    How can I determine that the client or the server is no longer available?
    Server
    public class Server
    private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
    private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
    private TcpListener tcpListener;
    private bool isStarted;
    public event Action<string> NewMessage;
    public async Task Start(int port)
    this.tcpListener = TcpListener.Create(port);
    this.tcpListener.Start();
    this.isStarted = true;
    while (this.isStarted)
    var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
    var cts = new CancellationTokenSource();
    this.cancellationTokens.Add(cts);
    await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
    public void Stop()
    this.isStarted = false;
    foreach (var cancellationTokenSource in this.cancellationTokens)
    cancellationTokenSource.Cancel();
    foreach (var tcpClient in this.clients.Values)
    tcpClient.GetStream().Close();
    tcpClient.Close();
    this.clients.Clear();
    public async Task SendMessage(string message, IPEndPoint endPoint)
    try
    var tcpClient = this.clients[endPoint];
    await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
    try
    var stream = tcpClient.GetStream();
    this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
    while (!cancellationToken.IsCancellationRequested)
    var data = await this.Receive(stream);
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(NetworkStream stream, byte[] buf)
    await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive(NetworkStream stream)
    var lengthBytes = new byte[4];
    await stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await stream.ReadAsync(buf, 0, buf.Length);
    return buf;
    Client
    public class Client
    private TcpClient tcpClient;
    private NetworkStream stream;
    public event Action<string> NewMessage;
    public async void Connect(string host, int port)
    try
    this.tcpClient = new TcpClient();
    await this.tcpClient.ConnectAsync(host, port);
    this.stream = this.tcpClient.GetStream();
    this.Process();
    catch (Exception exception)
    public void Disconnect()
    try
    this.stream.Close();
    this.tcpClient.Close();
    catch (Exception exception)
    public async void SendMessage(string message)
    try
    await this.Send(Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(byte[] buf)
    await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await this.stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive()
    var lengthBytes = new byte[4];
    await this.stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await this.stream.ReadAsync(buf, 0, buf.Length);
    return buf;

    Hi,
    Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
    According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    Console.WriteLine(exception.Message);
    Unable to read data from the transport connection: An existing   connection was forcibly closed by the remote host.
    By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
    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.
    Click
    HERE to participate the survey.

  • How corba client and server find Naming service

    hello
    i want to ask how corba client and server find the Naming service ?
    10x

    By using a well-known port (I think the default for JavaIDL's NS is 1049) on a well-known address (localhost).
    As these values are not really standard, you can specify them when starting the server and client (+-ORBInitialPort 1050 -ORBInitialHost localhost+). See the documentation .

  • How to run a datagram socket client and server program

    hi,
    I am new to socket programming. I am following the tutorial of sun for socket programming...The link is
    http://java.sun.com/docs/books/tutorial/networking/datagrams/clientServer.html
    I have understood the concept, but the problem is i cannot run the program. I am using netbeans and i have created a package and stored the files QuoteServer,QuoteServerThread, QuoteClient in this package. How can i make the server program run first and then client program in netbeans
    kindly help me
    Thankyou

    I think you are trying to run both server and client
    on one machine!!!
    It is impossible, your server is blocking the port to
    send packets, so you must run client on another
    computer!!!It's not impossible to run a client and server on the same machine just for testing or as a demo. Just have the server listen on one port and the client use a different port.
    No need to use 2 seperate computers. I've done it one computer before without a problem.
    Nick

  • How to handle when Client and server write to the socket at the same time

    Hi all,
    I'm writing a socket communication when client and server may write information the the socket at the same time. I look every where but the samples from the internet only shows example of server replies to client after receiving requests from clients.
    Let's say that:
    Client 1 ->Socket 1 -> Server 1
    Now if there are two threads in the server, one blocked waiting for the input from client on socket 1, the second one write something on the socket to client 1, is it possible?
    And if it's possible, if at the time Server 1 writes information to Client 1, Client 1 writes some information to Server 1 too, will there be any conflict problem or the socket could handle that two ways communication simultaneously?
    It's critical questions for me. Thanks for your help.

    I really use Server Client paradigm. However, beside the request, response mechanism, there is also an additional mechanism called update which server periodically send information update to client without the need for a request from client.
    So you suggest client should initiate 2 sockets, one for request and response, one for receiving update from the server? Will this work?

  • Client and Server in one process

    Hi all,
    I am trying to create a process which can act as both Client and Server.
    How can I do this?
    Thanks!

    AH. That's a better definition or explanation. Thanks.
    This smells of a single process with multiple threads, each thread handling the basic needs of your requirements. In other words, have a thread deal with making one or more client type connections (use a main thread - the client controller - to spawn client-connection threads. This assumes you need multiplicity in your client-connection model.
    Then make another thread - the server controller - to handle inbound connections, spawning a new thread for each inbound connection. Your main thread, the one that contains your main method, can watch everything that's going on and log or report what's going on in your client and server threads.
    Going into specifics would be a lot to do here. Maybe someone is up for the challenge. Of course, this being a "New to Java Technology" forum, these concepts may be a bit beyond your skillset.
    This is not the only way to go about solving your problem, but it's the only way I can think of at the moment given your requirements.
    Hope this helps some.

  • JSSE  Client and server communication problem .err:untrusted server cert

    Hai all,
    I am trying to communicate JSSE client and server.
    I have created root.cert(CA),root.key,server.cert,server.key , client.cert and client.key. All these certificates are created using openssl.
    I have placed root.cert in default keystore cacerts.
    I have created a keystores(server & client) name mykeystore.
    I have placed root.cert and client.cert in the client keystore.
    I have placed root.cert and server.cert in the server keystore.
    But during the run time i am getting javax.net.ssl.SSLException: untrusted server cert chain.
    please suggest the modifications needs to be done to fix the error.
    please tell me In the client keystore and in the server keystore....what certificates we need to put?
    whether my approach as said above is correct or not?
    In java code how to specify this particular certificate we are referring?
    I have coded in this way ....
    SSLContext ctx;
    KeyManagerFactory kmf;
    KeyStore ks;
    char[] prasad = "prasad".toCharArray();
    ctx = SSLContext.getInstance("SSLv3");
    kmf = KeyManagerFactory.getInstance("SunX509");
    ks = KeyStore.getInstance("jks");
    ks.load(new FileInputStream("mykeystore"), prasad);
    kmf.init(ks, prasad);
    ctx.init(kmf.getKeyManagers(), null, null);
    factory = ctx.getSocketFactory();
    But my doubt is we are specifying only keystore name with that how it will check root.cert(ca) and client.cert and server.cert?
    Is there any modifications need in my code?
    Please tell me some way ...
    Thanks ,
    Prasad.

    Hi prasad,
    There will be a problem with the certificates being received from thr remote server or client. Check that your trust store contains the certificate of the remote machine or the CA that signed it and that the certificate has not expired.
    Also be sure that both machines are using the latest version of the JSSE.
    Hope this will help you.
    Regards,
    Anil.
    Technical Support Engineer.

  • Socket communication between client and server

    Hi all,
    I am doing an assignment for communication between java client and java server using sockets. This communication is in the form of XML documents. I am facing a problem in this communication.
    Actually at Server side I'm creating an XML document(Document type object) using DocumentBuilderFactory in javax.xml.parsers package and transforming this Document into a stream using StreamResult.
    My code is :
    Transformer xmlTransformer = TransformerFactory.newInstance().newTransformer();
    StreamResult xmlString = new StreamResult(currentClientHandler.getSocketOutputStream());
    DOMSource xmlDocSource = new DOMSource(xmlDocument); // xmlDocument is Document type reference
    xmlTransformer.transform(xmlDocSource, xmlString);
    so, this xmlString(i.e. StreamResult) is passed directly into the output stream. Here I need to close() output stream after transform() call to help SAX parser to know about end of stream.
    Now at Client side, I am parsing this stream using SAX parser. It parses this correctly. But when sending some another data back to Server when client opens output stream, it given Socket closed exception. I know that closing input or output stream closes socket. But in my problem, I have to send data in streams and not by using files or byte[] etc.
    So what is nearest solution to problem ??
    Plz help me. Any kind of help will be greatly appreciated.

    hi
    thanks for ur reply.
    I didnt get any error msg while getting the back the datas.
    Actually i divided my application into two parts.
    My application will act as both server and client.
    server ll get the browser request and send to the client and the client will send that data to the c++ server.
    Im able to do that.and unable to get the data from server.
    Didnt get any error.
    can u tell me how to make an application to act as both client and server.
    I think im wrong in that part.
    thanks a lot

  • UDP Client and Server

    I am trying to run a UDP Client and Server by running the server first and then the client. But when I try to do that I get the message java.lang.NoClassDefFoundError: UDPServer and java.lang.NoClassDefFoundError: UDPClient. I have included the code below. Can you please help. Thank you.
    UDPClient.java:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class UDPClient{
        public static void main(String[] args) throws IOException{
          Date d=new Date();
          long time1, time2, ETE, sumETE, maxETE, avgETE;
          if(args.length!=1){
              System.out.println("type java UDPClient <hostname>");
              return;
          time1=d.getTime();
          DatagramSocket s=new DatagramSocket();
          String st=new String("dldfjsdkjf");
          byte[] buf=new byte[256];
          buf=st.getBytes();
          InetAddress address=InetAddress.getByName(args[0]);
          DatagramPacket p = new DatagramPacket(buf, buf.length, address, 8777);
          s.send(p);
          p=new DatagramPacket(buf, buf.length, address, 8777);
          s.receive(p);
          time2=d.getTime();
          ETE=(time2-time1)/2;
          s.close();
    UDPServer.java:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class UDPServer{
      public static void main(String[] args){
        try{
          UDPServerThread ust = new UDPServerThread();
          ust.start();
        catch(IOException e){}
    UDPServerThread.java:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class UDPServerThread extends Thread{
      DatagramSocket s=null;
      BufferedReader br=null;
      PrintWriter pw=null;
      public UDPServerThread() throws IOException{
        this("UDPServer");
      public UDPServerThread(String name) throws IOException{
        super(name);
        s=new DatagramSocket(8777);
      public void run(){
          char[] ca=new char[10];
        //while(true){
          try{
              byte[] buf = new byte[256];
              DatagramPacket p = new DatagramPacket(buf, buf.length);
              s.receive(p);
              String st=new String(p.getData());
              for(int i=0; i<10; i++){
                  ca=st.charAt(i);
    buf=st.getBytes();
    InetAddress ad = p.getAddress();
    int port = p.getPort();
    p = new DatagramPacket(buf, buf.length, ad, port);
    s.send(p);
    catch(IOException e){
    System.err.println("Failed to run the server");
    System.exit(-1);
    s.close();

    this has nothing to do with your code, but how you are running it. It is a classpath problem.
    You should go to the directory where the UDPClient.class is, and type
    java -classpath . UDPClient
    similarly for the UDPServer

  • Abap proxies ( Client and Server proxies)

    Hi Team
    Good day to you. I am now started doing some example scenarios on ABAP proxies(ie Client and Server proxies). After going through the blogs which are avialable, i am writing this question to you for clarification.
    As per my understanding, the below are the required predefined settings which i need to do in my landscape to generate abap proxies(ie client and server proxies).
    My landscape includes the below systems.
    System A : SAP XI 3.0 system and
    System B : SAP R/3 on WAS 620
    SAP R/3 predefined Steps
    1.Create HTTP connection in the business system.
    2.Configuration Business system as local Integration Engine.
    3. Connection between Business System and System Landscape Directory.
    4. Maintaining the SAP J2EE Connection Parameters for LCRSAPRFC and SAPSLDAPI in SAP J2EE engine
    (Here in the step 4, i found the below needs to be done)
    1. Goto J2EE Engine
    2. Choose Cluster --> Server --> Services. JCo RFC provider
    3. Under RFC destination specify the following:
         Program ID: LCRSAPRFC
         Gateway Host: <Integration Server host>
         Gateway Service: <Integration Server gateway service>
         Number of process: 3
    4. Under Repository specify the following:
    5. Choose Set.
    Application Server: <Integration Server host>
    (i am not able to perform the steps which comes under point 4. so please Guide me how to goto J2EE engine and configure accordingly.
    5.  Maintain SLD access details in Transaction SLDAPICUST.
    As per my understanding, i need to do the above predefined configuration steps in SAP R/3 system (ie bussiness System) for doing Abap Client or Server proxies.
    And in the meantime, i would like to know whether i need to do any predefined configuration steps in XI 3.o system also. Please check and suggest me accordingly.
    Once i get clarification on predefined configuration steps, i will proceed with the example scenarios  on client and server proxies which are already in SDN.
    Thanks in advance.
    Regards
    Raj

    Hello Pavan
    thanks for your response.  you said that for the connection type 'H' we need to provide values for GATEWAY HOST and GATEWAY SERVICE but here i need to create the RFC destination of type 'T'. so please tell me whether i need to give the values for GATEWAY HOST and GATEWAY SERVICE for connection type 'T' also and the second thing is please tell me the difference between Application system and bussiness system accordingly to my landscape which i mentioned in my question.
    I am in little confusion because as per the requirement for abap proxies in the blog they mentioned that all these setting should be done in the bussiness system (ie SAP R/3) but you  are saying that Application system. so please clarify.
    My landscape which i am going to use in Abap proxy generation
    System A: XI 3.0
    System B: R/3
    Here which is bussiness system and which is application system. Pls calrify.
    Thanks in advance.
    Regards
    Raj

Maybe you are looking for

  • How to Print multiple Records under one level in Etext templates.

    Hi, I am working on the Etext templates and customizing the standard template "US NACHA PPD FORMAT". This standard template don't have a addenda record.. I have modified and it is working for single Addenda records. But when I have multiple ADDENDA r

  • Java update fail, java update fail

    An error occur while installing the updates.(10.3)

  • Selected pictogram for workset not shown in portal

    Hi Gurus, i have created a workset in portal and there is a setting that i can select a pictogram for this workset. If i select a pictogramm and save the workset the selected pictogram is not used in portal. I still see the old pictogram. I have uplo

  • Indigo ibook and airport

    I have an Indigo ibook that I won on ebay. The computer has been great. However, the airport stopped working. I took a look inside and discovered an "engineered" airport card. I unplugged it and plugged it back in but it still doesn't work and the co

  • AT&T recent data plans for smartphone

    Not sure if there is any gotcha but recently ATT announces the new data plan for smartphone users.  With $160 per month you have - Unlimited voice/text - 4 smartphone lines - 10 GB data share With the same amount of monthly I have with Verizon - 700