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!

Similar Messages

  • RMIRegistry and Server on different Machines

    Is it possible to run rmiregistry on one machine and then bind an object from a different machine to this registry. I can't find any documentation to say that you can't.
    If i try to, i get a hostname is a non-local host Exception.

    What im actually doing is this :
    I have a client program that wishes to transport some C code to a server for execution on that server. This would be simple enough but the client should not be concerned with where the server is, but only needs to know a name server that holds all object and server names so as they can then query this one registry for a server name and then connect to this server.
    I was hoping that you could run rmiregistry on one machine, a server on another, bind that server object to the registry and then connect to the server from the client via the registry.
    I have written my own registry object that implements this fine but i wanted to know whether this was a long winded way. Surely RMI is a java developers alternative to CORBA (according to sun web site !), in which this would be possible with the ORB running on a remote machine to client and server?

  • Help-how can i connect between a client and servlets on different machines

    hi all
    I asked this question already but:
    I am tring to run a client which is an HTML file that has a "submit" button, that when pressed it should connect (or something) to a servlet, which is on a different mechine.
    what must i write instead of: "localhost"?
    and what web server should i use?
    this is the code on the client side:
    <form action=http://localhost:8080/servlet/MyServlet method=POST target=_blank>
    <input type=submit name="M1" >
    </form>
    thank you

    thanks
    I tryed that by writing the ip address of the servlets mechine instead of "localhost", but there was no reaction
    i wrote:
    <form action=http://10.33.24.33:8080/servlet/MyServlet
    method=POST >
    <input type=submit>
    </form>
    what is wrong with that?
    when i pressed the submit button nothing happened.
    does any body know what can i do?

  • 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]

  • BPC client and server in different versions

    Hi all,
    Is it possible to have BPC 7.0 as server and BPC 7.5 as client? Is it compatible?
    Thanks,
    Thiago.

    Hi Perin,
    sorry but the answer is no. You must have not only the same version but also the same sp or when you try connect you will receive an error.
    Regards
         Roberto

  • 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

  • Running soa and IPM in different machines

    Hi Everybody,
    I have installed admin server,soa,IPM in machine A and machine B.Then i need to run soa and IPM in different machines(soa in machine A,ipm in machine B).Please suggest me to do the needful.
    With Regards
    Jyoti

    Hi
    Look at Note : 885983.1 on metalink . This gives the steps to configure Cs when webserver is on a different machine altogether.
    Srinath

  • Configure messaging server and MTA on different machine

    Is there anyways to install / configure messaging server and MTA on different machine? I am using Sun One Messaging server 6.0
    Thanks
    Haris

    Thanks for the reply, How MTA can be disabled on the
    messaging server? how can i disable the store on the
    MTA machine, Is there any documentation for it?Yes, the documentation helps you. You cannot totally disable the MTA. If you did, how would you get mail to the store?
    Also
    is it possible to use some another machine for
    webmail?Well, um, kind of. The webmail interface provided with Messaging Server interacts directly with the store, so you can't truly run that remotely, but .. .
    You can install the server on a remote box, and turn on "Messaging Express Multiplexor", a proxy for webmail. Users can then connect to the MEM box, and be forwarded to the store for their mails.
    It should be possible to use a third-party webmail product that uses something like IMAP to talk to the store, too. that would be unsupported, but possible. Most users find MEM to be very good.
    What problem are you trying to solve? Perhaps I can better help you if I know why you're asking these questions, and offer a better solution to you.
    >
    Thanks
    Haris

  • The version of OLE on the client and server machines does not match. (Exception from HRESULT: 0x80010110)

    Hi,
    I have installed FIM CM Client on one machine and FIM CM update service on another machine. Both are windows server 2008 r2 machines.
    When i try to enroll a permanent smart card for a user, its shows me the following error:-
    The version of OLE on the client and server machines does not match. (Exception from HRESULT: 0x80010110)
    Also there is no logging done for the particular event.
    I am able to change my smart card pin and view my smart card info. through the FIM CM client. 
    Is there a compatibility issue of FIM CM 2010 with Windows server 2008 r2?
    Thanks

    Hi,
    Sorry for the delay in reply.
    Please try the following steps first:
    Open Powershell as Administrator
    Go to Start--> Run and type wbemtest.exe.
    •Click Connect. 
    •In the namespace text box type "root" (without quotes).
    •Click Connect.
    •Click Enum Instances…
    •In the Class Info dialog box enter Superclass Name as "__ProviderHostQuotaConfiguration" (without quotes) and press OK. Note: the Superclass name includes a double underscore at the front.
    •In the Query Result window, double-click "__ProviderHostQuotaConfiguration=@"
    •In the Object Editor window, double-click HandlesPerHost.
    •In the Value dialog, type in 8192
    •Click Save Property.
    •Click Save Object.
    Under properties find the property "MemoryPerHost" or any other ones you need to modify  and double click it
    Change the value from 512 MB which is 536870912 to 1GB which is 1073741824
    Click Save Property
    Click Save Object.
    •Close Wbemtest.
    •Restart the computer.
    And if all nodes are Windows server 2012, install the following update rollup as well:
    Windows RT, Windows 8, and Windows Server 2012 update rollup: August 2013
    http://support.microsoft.com/KB/2862768
    If you have any feedback on our support, please send to [email protected]

  • To_char displays different results on sql client and server

    Hi,
    I am executing the below query on my database with 8.1.7.4 version:
    SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
    The following result is displayed:
    T
    7
    When the same query is being run through sqlplus client(9.2.0.3) connecting to the same database, following result is being displayed:
    SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
    T
    6
    Could anyone please explain me why is this difference and what parameter setting needs to be made to get the same result.
    Thanks in advance,
    Vishwanath

    Or from the territory part of NLS_LANG OS variable :
    oracle@xxx:/home/oracle# echo $NLS_LANG
    AMERICAN_AMERICA.UTF8
    oracle@xxx:/home/oracle# sqlplus '/ as sysdba'
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Oct 22 10:44:59 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
    T
    7
    SQL> quit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    oracle@xxx:/home/oracle# export NLS_LANG=AMERICAN_FRANCE.UTF8
    oracle@xxx:/home/oracle# sqlplus '/ as sysdba'
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Oct 22 10:45:38 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> select to_char(to_date('20-OCT-07'),'D') from dual;
    T
    6
    SQL>Check it on both sites (client and server).
    Nicolas.

  • Installation Biztalk Server 2013 and SQL on different machines

    I want to know if I can install a Biztalk server 2013 and SQL on different machines?

    BizTalk Server 2103 and SQL Server (SQL Server
    2012 or SQL Server 2008 R2 SP1) can be installed and configured on different machines.
    For more instruction about this installation, refer to following MSDN installation guide for BizTalk :
    Installation Guides Related to BizTalk Server 2013 and 2013 R2
    from the above list download -
    "Installing BizTalk Server 2013 and BAM in a Multi-Computer Environment.docx" document for your requirement.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Communication between two jvm (client and server)

    Hi ,
       I want to access the UME service of the SAP J2EE Container using a stanalone client application.
    So the client would be running on remote JVM.
    Here we use the JNDI service to communicate between the client and server.
    p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
                        p.put(Context.PROVIDER_URL, providerURL.trim());
                        p.put(Context.SECURITY_PRINCIPAL, securityPrinciple.trim());
                        p.put(Context.SECURITY_CREDENTIALS, securityCredentials.trim());
                        Context ctx = (Context) new InitialContext(p);
                        Object objRef = ctx.lookup(ejbName.trim());
    I want to know that is the communication between the client and server secured in this scenario
    Best Regards
    Manoj

    Okay, the client and server VMs are different implementations of the Hotspot engine. Hotspot basically takes the Java bytecode from your .class files and turns it into native machine instructions at runtime. (The optimizations are actually much more complex than that, but that's the basic concept.)
    The client VM is so named because it's designed to be used for GUI-type applications interacting with the user. It is designed to have a quicker startup and smaller memory footprint.
    The server VM uses more memory and is typically slower at starting up than the client VM, but can often perform ridiculously fast. This of course depends completely on the particular code being run, and you should probably profile and see which VM works better for your application.
    Some interesting optimizations are performed by the 1.4.1 server VM, such as: removal of array-bounds checks (when it determines that the index can't become out of bounds), inlining of methods, and more.
    Here is a link to more info if you're interested:
    http://java.sun.com/products/hotspot/docs/whitepaper/Java_HotSpot_WP_Final_4_30_01.html

  • Communication between client and server

    I am using sockets for communication between the client and the server. is there any other way that i can use for communication between the client and server???

    Plenty of ways: JMS, SOAP, RMI, a RESTful API, writing-files-to-a-shared-directory-on-the-disk, Sneakernet, ...
    Some of them use sockets (or better TCP/IP) as the underlying protocol.
    But to give you a good answer, you would have to tell us why you want a different way. I hope you're not searching for a different way just for the sake of being different.

  • 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.

  • Configure client and server

    Hi ,
    Iam trying to configure client and server on OEL5.5 on vmware server i ahve 2 virtual machines which are on network i want to make one machine as server and another as client so on server machine i have a database called as SERVER and iam creating a listerner for it and my listener is created i chked my listener.ora files but on termianal when i execute
    LSNRCTL> STATUS LISTENER1
    TNS-01101: Could not find service name
    LSNRCTL>
    LSNRCTL> START LISTENER1
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener1.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g.home.com)(PORT=2525)))
    TNS-12542: TNS:address already in use
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
    Linux Error: 98: Address already in use
    Listener failed to start. See the error message(s) above...
    and copying and pasting the contents of listener.ora file
    # listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 2525))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    SID_LIST_LISTENER1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = server)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (SID_NAME = server)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 1521))
    so as there is only 2 listeners on my machine named as listener which listens at 1521(default) and another which i created listener2 listens as 2525
    so please help me and let me know where iam going wrong
    Thanks in advance ....
    with Regards
    Kavita

    user12665759 wrote:
    Hi ,
    Iam trying to configure client and server on OEL5.5 on vmware server i ahve 2 virtual machines which are on network i want to make one machine as server and another as client so on server machine i have a database called as SERVER and iam creating a listerner for it and my listener is created i chked my listener.ora files but on termianal when i execute
    LSNRCTL> STATUS LISTENER1
    TNS-01101: Could not find service name
    LSNRCTL>
    LSNRCTL> START LISTENER1
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener1.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g.home.com)(PORT=2525)))
    TNS-12542: TNS:address already in useThose last two lines tell the tale. Something else is running on port 2525. Why are you trying to use that port for your listener?
    Use netstat to find out what process is using the port.
    And as a follow-up, why configure two listeners?
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
    Linux Error: 98: Address already in use
    Listener failed to start. See the error message(s) above...
    and copying and pasting the contents of listener.ora file
    # listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 2525))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    SID_LIST_LISTENER1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = server)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (SID_NAME = server)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 1521))
    so as there is only 2 listeners on my machine named as listener which listens at 1521(default) and another which i created listener2 listens as 2525
    so please help me and let me know where iam going wrong
    Thanks in advance ....
    with Regards
    Kavita

Maybe you are looking for

  • Clip play when reach area on page

    Hi everyone! Im trying to play a clip that I have made in edge animate on my website, I havent published it yet so i dont have a example but does anyone know how to play a clip when you reach an area of a page? Thansk

  • Best settings for conversion from .wmv to .mov

    Hi, I have been given an old video clip supplied as .wmv file (4:3). I need to edit it and and deliver a new version in the same settings. My question is what is the best way to convert this to edit in FCP and export out. Using quicktime (and Flip4ma

  • Design panel black

    Am I missing something obvious? I switched to flash builder 4.6 and cannot see my panel in design mode anymore. Thank you, Ralf

  • Time mgmt Doubt: How to stop quota update

    hello experts, we are facing a problem in stopping quota. thr requirment is like :   the entitlement is 2.5 days permonth, which is happening, the maximum accumulation is suppoesd to be 53 days, which is not happening. we are generating it every mont

  • Why are apple cords/chargers so cheap and why do they not last?

    Why are apple cords/chargers so cheap and why do they not last?  I feel like I waste my money having to buy so many. <Re-Titled By Host>