JMS Multiple connections to != servers

          HI,
          I'm trying to use a JMS client to connect to multiple WL Servers,
          but i'm having the following error while connecting to the third server, always
          the third server.
          I swap the order of the connections and the error always happens on the third
          server.
          If i had one more server equals to the first or the second (the same IP) the connection
          to the fourth server is fine but the connection to the third server is always
          returning the same error.
          Is there any limitation to the number of != servers that a JMS client can connect
          weblogic.jms.common.JMSException: Connection not found
          at weblogic.jms.dispatcher.InvocableManager.invocableFind(InvocableManager.java:136)
          at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:596)
          at weblogic.jms.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:128)
          at weblogic.jms.dispatcher.DispatcherImpl.dispatchSyncFuture(DispatcherImpl.java:180)
          at weblogic.jms.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown Source)
          at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:466)
          at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:409)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
          at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:404)
          at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
          Can somebody help me.
          Thankx.
          Gonçalo
          

          Thanks Tom, it worked :-).
          Tom Barnes <[email protected].bea.com>
          wrote:
          >Typically this problem occurs when there is a naming conflict
          >between servers. Make sure:
          >
          >each WL domain is uniquely named
          >each WL server is uniquely named
          >each JMS server is uniquely named
          >each JMS store is uniquely named
          >
          >The latter three apply even if the resources in
          >question are in different domains.
          >
          >Tom
          >
          >Gonçalo Moreira wrote:
          >
          >> HI,
          >>
          >> I'm trying to use a JMS client to connect to multiple WL Servers,
          >> but i'm having the following error while connecting to the third server,
          >always
          >> the third server.
          >> I swap the order of the connections and the error always happens on
          >the third
          >> server.
          >> If i had one more server equals to the first or the second (the same
          >IP) the connection
          >> to the fourth server is fine but the connection to the third server
          >is always
          >> returning the same error.
          >> Is there any limitation to the number of != servers that a JMS client
          >can connect
          >> ?
          >>
          >>
          >>
          >>
          >> weblogic.jms.common.JMSException: Connection not found
          >> at weblogic.jms.dispatcher.InvocableManager.invocableFind(InvocableManager.java:136)
          >> at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:596)
          >> at weblogic.jms.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:128)
          >> at weblogic.jms.dispatcher.DispatcherImpl.dispatchSyncFuture(DispatcherImpl.java:180)
          >> at weblogic.jms.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown
          >Source)
          >> at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:466)
          >> at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:409)
          >> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
          >> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
          >> at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:404)
          >> at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
          >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
          >>
          >> Can somebody help me.
          >>
          >> Thankx.
          >> Gonçalo
          >>
          >
          

Similar Messages

  • Weblogic Server 9.2 Crashes when using the JMS Wrapped Connection Pooling.

    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 0 days, 01:05:05 on Thu Sep 16 18:27:36 2010
    Additional information is available in:
    E:\obopay\servers\EWP_9.2_Domain\jrockit.4516.dump
    E:\obopay\servers\EWP_9.2_Domain\jrockit.4516.mdmp
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Error Message: Illegal memory access. [54]
    Exception Rec: EXCEPTION_ACCESS_VIOLATION (c0000005) at 0x0095065F - memory at 0x00740060 could not be read.
    Minidump : Wrote mdmp. Size is 567MB
    SafeDllMode : -1
    Version : BEA JRockit(R) R27.2.0-131-78843-1.5.0_10-20070320-1457-windows-ia32
    GC Mode : Garbage collection optimized for throughput
    GC Strategy : Generational Parallel Mark & Sweep
    : Current OC phase is: not running. YC is not running.
    : GC strategy for GC 36 was genparpar
    : GC strategy for GC 37 was genparpar
    : GC strategy for GC 38 was genparpar
    : GC strategy for GC 39 was genparpar
    : GC strategy for GC 40 was genparpar
    : mmHeap->data = 0x00C00000, mmHeap->top = 0x10C00000
    : The nurserylist starts at 0x01BE75E8 and ends at 0x0CB52440
    : mmStartCompaction = 0x00C00000, mmEndCompaction = 0x01C00000
    : References are 32-bit.
    CPU : Intel Pentium III/Pentium III Xeon SSE SSE2 SSE3 SSSE3 EM64T
    Number CPUs : 2
    Tot Phys Mem : 3451408384 (3291 MB)
    OS version : Microsoft Windows XP version 5.1 Service Pack 3 (Build 2600) (32-bit)
    Thread System: Windows Threads
    State : JVM is running
    Command Line : -Djava.library.path=E:\bea\jrockit90_150_10\bin;E:\bea\jrockit90_150_10\jre\bin;E:\bea\weblogic92\server\native\win\32;E:\bea\weblogic92\server\bin;E:\bea\weblogic92\server\native\win\32\oci920_8 -Dweblogic.management.discover=false -Dplatform.home=E:\bea\weblogic92 -Dwls.home=E:\bea\weblogic92\server -Dwli.home=E:\bea\weblogic92\integration -Dweblogic.Name=myserver -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic -Dweblogic.ext.dirs=E:\bea\patch_weblogic901\profiles\default\sys_manifest_classpath\weblogic_patch.jar Djava.security.auth.login.config=E://workspace/Bhopal/LoginModulesConfig/ewp_loginmodules.config -Djava.naming.factory.initial.ewp.remote=weblogic.jndi.WLInitialContextFactory -Dcom.ewp.proxy.is_remote=false -Djava.naming.provider.url.ewp.remote=t3://localhost:7001 -Dweblogic.webservice.verbose=true -Dweblogic.log.Log4jLoggingEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=true Xdebug -Xnoagent -Dcom.sun.management.jmxremote -Xms256m -Xmx1024m -Dsun.java.launcher=SUN_STANDARD weblogic.Server
    java.home : E:\bea\jrockit90_150_10\jre
    JAVA_HOME : <not set>
    JAVAOPTIONS: <not set>
    PATH : E:\bea\jrockit90_150_10\jre\bin;E:\oracle\product\10.2.0\client_1\bin;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\TortoiseSVN\bin
    C Heap : Good; no memory allocations have failed
    StackOverFlow: 0 StackOverFlowErrors have occured
    OutOfMemory : 0 OutOfMemoryErrors have occured
    Registers (from ThreadContext: 0x4B29E378 / OS context: 0x4B29E764):
    eax = 00740060 ecx = 00740060 edx = 45a45ba0 ebx = 08c953b8
    esp = 4b29ea30 ebp = 00000000 esi = 4b29ea60 edi = 4b29efb4
    es = 00000023 cs = 0000001b ss = 00000023 ds = 00000023
    fs = 0000003b gs = 00000000
    eip = 0095065f eflags = 00010206
    Stack:
    (* marks the word pointed to by the stack pointer)
    4b29ea30: 00981099* 08c953b8 008ab310 4b29eb34 09e5c308 009810ea
    4b29ea48: 4b29ead8 0098ecd2 4b29ea60 4b29ea90 48bd8960 48bd8960
    4b29ea60: 00000001 45aa0278 45a45ba0 00000007 00000000 08c953b8
    4b29ea78: 08512180 4b29ef60 00000000 09d56368 09d563b0 4b29efb4
    Code:
    (* marks the word pointed to by the instruction pointer)
    0095062c: 5e5f0cc4 c35bc033 01b85e5f 5b000000 ccccccc3 0424448b
    00950644: a5f06ca3 ccccc300 cccccccc 04244c8b 01a8018b e0830774
    0095065c: 8bc88bfe* 40788301 44408b03 af0f0a75 c0830841 f8e08317
    00950674: ccccccc3 cccccccc cccccccc 0424448b 00f4888b 158b0000
    Loaded modules:
    (* denotes the module causing the exception)
    00400000-0040ffff E:\bea\jrockit90_150_10\bin\javaw.exe
    7c900000-7c9b1fff C:\WINDOWS\system32\ntdll.dll
    7c800000-7c8f5fff C:\WINDOWS\system32\kernel32.dll
    7e410000-7e4a0fff C:\WINDOWS\system32\USER32.dll
    77f10000-77f58fff C:\WINDOWS\system32\GDI32.dll
    77dd0000-77e6afff C:\WINDOWS\system32\ADVAPI32.dll
    77e70000-77f02fff C:\WINDOWS\system32\RPCRT4.dll
    77fe0000-77ff0fff C:\WINDOWS\system32\Secur32.dll
    77c10000-77c67fff C:\WINDOWS\system32\MSVCRT.dll
    76390000-763acfff C:\WINDOWS\system32\IMM32.DLL
    00820000-00a9cfff *E:\bea\jrockit90_150_10\jre\bin\jrockit\jvm.dll
    76b40000-76b6cfff C:\WINDOWS\system32\WINMM.dll
    71ab0000-71ac6fff C:\WINDOWS\system32\WS2_32.dll
    71aa0000-71aa7fff C:\WINDOWS\system32\WS2HELP.dll
    7c340000-7c395fff E:\bea\jrockit90_150_10\bin\MSVCR71.dll
    5dac0000-5dac7fff C:\WINDOWS\system32\rdpsnd.dll
    76360000-7636ffff C:\WINDOWS\system32\WINSTA.dll
    5b860000-5b8b4fff C:\WINDOWS\system32\NETAPI32.dll
    76bf0000-76bfafff C:\WINDOWS\system32\PSAPI.DLL
    6d700000-6d70bfff E:\bea\jrockit90_150_10\jre\bin\verify.dll
    6d370000-6d38cfff E:\bea\jrockit90_150_10\jre\bin\java.dll
    6d2f0000-6d2f7fff E:\bea\jrockit90_150_10\jre\bin\hpi.dll
    6d720000-6d72efff E:\bea\jrockit90_150_10\jre\bin\zip.dll
    6d520000-6d527fff E:\bea\jrockit90_150_10\jre\bin\management.dll
    6d530000-6d542fff E:\bea\jrockit90_150_10\jre\bin\net.dll
    71a50000-71a8efff C:\WINDOWS\system32\mswsock.dll
    662b0000-66307fff C:\WINDOWS\system32\hnetcfg.dll
    71a90000-71a97fff C:\WINDOWS\System32\wshtcpip.dll
    41c00000-41c26fff C:\WINDOWS\system32\DNSAPI.dll
    41c30000-41c37fff C:\WINDOWS\System32\winrnr.dll
    41c40000-41c6bfff C:\WINDOWS\system32\WLDAP32.dll
    41c80000-41c85fff C:\WINDOWS\system32\rasadhlp.dll
    68000000-68035fff C:\WINDOWS\system32\rsaenh.dll
    769c0000-76a73fff C:\WINDOWS\system32\USERENV.dll
    438b0000-438b8fff E:\bea\jrockit90_150_10\jre\bin\nio.dll
    41ba0000-41ba9fff E:\bea\jrockit90_150_10\jre\bin\jmapi.dll
    41bb0000-41bbdfff E:\bea\weblogic92\server\native\win\32\wlfileio2.dll
    43ce0000-43cf8fff C:\WINDOWS\system32\iphlpapi.dll
    43d10000-43d27fff C:\WINDOWS\system32\MPRAPI.dll
    77cc0000-77cf1fff C:\WINDOWS\system32\ACTIVEDS.dll
    43d30000-43d54fff C:\WINDOWS\system32\adsldpc.dll
    43d60000-43d70fff C:\WINDOWS\system32\ATL.DLL
    43d80000-43ebcfff C:\WINDOWS\system32\ole32.dll
    43ec0000-43f4afff C:\WINDOWS\system32\OLEAUT32.dll
    43f50000-43f5dfff C:\WINDOWS\system32\rtutils.dll
    71bf0000-71c02fff C:\WINDOWS\system32\SAMLIB.dll
    43f60000-44052fff C:\WINDOWS\system32\SETUPAPI.dll
    44060000-44064fff E:\bea\weblogic92\server\native\win\32\wlntio.dll
    44540000-44545fff E:\bea\jrockit90_150_10\jre\bin\rmi.dll
    4d010000-4d122fff E:\bea\jrockit90_150_10\jre\bin\dbghelp.dll
    "[STANDBY] ExecuteThread: '21' f" id=87 idx=0xf0 tid=4208 lastJavaFrame=0x4B29EB4C
    Stack 0: start=0x4B260000, end=0x4B2A0000, guards=0x4B263000 (ok), forbidden=0x4B261000
    Thread Stack Trace:
    at _mmGetPossibleMovedObjectSize+15()@0x0095065F
    at _refIterInit+393()@0x00981099
    at _refIterInit+474()@0x009810EA
    at _trProcessLocksForThread+66()@0x0098ECD2
    at _javalockCouldBeLock+1047()@0x008AB417
    at _javalockConvertThinToFat+42()@0x008AC13A
    at RJNIjrockit_vm_Locks_convertThinLockedToFatLocked@8+15()@0x00986B1F
    -- Java stack --
    at jrockit/vm/Locks.convertThinLockedToFatLocked(Ljava/lang/Object;)V(Native Method)
    at jrockit/vm/Locks.createMonitorAndConvert(Ljava/lang/Object;Z)Ljrockit/vm/ObjectMonitor;(Unknown Source)
    at java/lang/Object.wait(J)V(Native Method)
    at java/lang/Object.wait(Object.java:474)
    at weblogic/common/CompletionRequest.getResult(CompletionRequest.java:109)
    ^-- Holding lock: weblogic/common/CompletionRequest@0x09E5C2A8[thin lock]
    at weblogic/store/gxa/internal/GXATransactionImpl.commitStoreIO(GXATransactionImpl.java:99)
    at weblogic/store/gxa/internal/GXATransactionImpl.doOperationCallbacks(GXATransactionImpl.java:215)
    at weblogic/store/gxa/internal/GXAResourceImpl.commit(GXAResourceImpl.java:1448)
    at weblogic/transaction/internal/XAServerResourceInfo.commit(XAServerResourceInfo.java:1333)
    at weblogic/transaction/internal/XAServerResourceInfo.commit(XAServerResourceInfo.java:577)
    at weblogic/transaction/internal/ServerSCInfo.startCommit(ServerSCInfo.java:514)
    at weblogic/transaction/internal/ServerTransactionImpl.localCommit(ServerTransactionImpl.java:1993)
    at weblogic/transaction/internal/ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2658)
    at weblogic/transaction/internal/ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2580)
    at weblogic/transaction/internal/ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:278)
    at weblogic/transaction/internal/ServerTransactionImpl.commit(ServerTransactionImpl.java:227)
    at weblogic/deployment/jms/WrappedTransactionalSession.delistFromTransaction(WrappedTransactionalSession.java:258)
    ^-- Holding lock: weblogic/deployment/jms/PooledSession_weblogic_jms_client_JMSXASession@0x09D56368[thin lock]
    at weblogic/deployment/jms/WrappedMessageProducer.send(WrappedMessageProducer.java:149)
    at com/obopay/jms/helper/BaseQueueHelper.sendMessage(BaseQueueHelper.java:107)
    The above is the jrockit crash dump file..
    I am using the JMS Wrapper Connection Poooling provided by Weblogic. When i use Jmeter and do the load testing for around 10 users, the server gets crashed.
    I doubt something is going wrong with the Weblogic JMS Connection Pooling, please help me..

    The problem doesn't look like it has anything to do with wappers per se. The stack indicates that the JVM died when the persistent store tried to invoke a standard Java synchronize operation. JVM crashes need to be analyzed by a JVM expert, so I second the suggestion to solicit help from JVM experts and/or filing a case with customer support. In the mean-time, you can probably work-around the issue by either (A) ensuring you have a recent version of the JVM installed, or (B) temporarily switching to the Sun JVM.
    Regards,
    tom
    Edited by: TomB on Sep 17, 2010 2:33 PM

  • Multiple connection in one form, is it possible?

    Im trying to access two different database (P.O.7 and the other is an ODBC Compliant) in one form.
    First thing i did was to run the wizard on each block using different login (1 for my PO7 and also the other) and it was successful, but when I try to execute the form, it just cant recognized the other block! since im only connected to other datasource....
    Any suggestion on what should i do with this....

    Check out the EXEC_SQL command under help in Forms
    The EXEC_SQL package allows you to access multiple Oracle database servers on several different connections at the same time. Connections can also be made to ODBC data sources via the Open Client Adapter (OCA), which is supplied with Developer. To access non-Oracle data sources, you must install OCA and an appropriate ODBC driver.
    The EXEC_SQL package contains procedures and functions you can use to execute dynamic SQL within PL/SQL procedures. Like the DBMS_SQL package, the SQL statements are stored in character strings that are only passed to or built by your source program at runtime. You can issue any data manipulation language (DML) or data definition language (DDL) statement using the EXEC_SQL package.

  • Multiple network location servers possible?

    As we all know the network location server is an important part of any Direct Access deployment to ensure that DA clients can know whether they are connected directly to the internal LAN or connecting from external via DA.
    I have seen discussion about deploying the network location server (simple blank IIS/Apache web site) in an NLB  configuration but is there any way to have multiple network location servers for high availability reasons? During the DA configuration
    process you can only input a single dns record for the NLS so it does not appear possible. Has anyone found a way to do this?

    Hi,
    Yes it's a good practice to have NLB in high-availability. So a single FQDN with NLB or HLB as high-availability solution. Major problem is when DirectAccess clients connected on LAN cannot join the Network Location server. They consider they are connected
    on Internet not on LAN and try to activate DirectAccess. In such situation, If users can disable DirectAccess (so no force tunneling) they can solve the problem. Once NLS is back online, computer automatically change the firewall profile to domain.
    BenoitS - Simple by Design http://danstoncloud.com/blogs/simplebydesign/default.aspx

  • Multiple Lotus Mail Servers

    Hi,
      In our landscape there are multiple Lotus Mail Servers.
      The requirement is to give a direct link to their Mailboxes.
      I understood that this can be realized by a URL iview to the Mailbox and using User Mapping through a HTTP System.
    Now I am trying to findout the best practice to give access to their mail boxes.I have identified the following...
            1. A page where we place multiple links directing to the different mail servers and the user has to pickup his mail server.
            2. Put the mail server details in the user profile and code a small application which will read the details and will redirect to the respective mail server.
        I would request you to suggest and share your experiences.
    Thanks & Regards
    Mrutyunjay

    Hi Mrutyunjay,
    I would suggest that you go for the second option. This saves the user a unecessary click.  Create a custom attribute that allows you to determine the user's mail server. Create as many system objects as you have Lotus mail servers and have a look into SAP Library to find out how to use the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/21/dfd241cb76c417e10000000a155106/frameset.htm">Dynamic System Resolution service</a>.
    <i>The Dynamic System Resolution feature enables you to create a service that selects at runtime the system to which an iView connects.
    Generally, an iView connects to a system that is defined at design time. With dynamic system resolution, an iView can select at runtime from among several systems, based on the location of the current user, network traffic or any other logic.
    For example, for a specific iView, you may want users in Europe to connect to a system in Germany while users in the United States connect to a similar system in New York.</i>
    Best regards,
    Martin

  • ORaMTS Support of Multiple Business Logic Servers

    Does the 8.1.7.4.0 of Oracle Services For MTS beta support multiple business logic servers connecting to a single Oracle database instance using MTS DTC coordinated transactions without a single point of failure?
    We would like to ensure that if any business logic server goes off line, that they will not effect any of the other business logic servers.
    In the previous version of OraMTS, if the machine running OraMTS went down, no other machines were able to perform MTS distributed transactions. Does 8.1.7.4.0 of Oracle Services For MTS beta remove this dependency?

    Mark, we came out with 8.1.7.4.0 precisely for the reasons you have stated. There is no longer a Windows NT Oracle Service For MTS per database. The logic to enlist Oracle connections in MTS transactions, and the logic to subsequently commit/abort these transactions is fully contained within the middle-tier dlls i.e. ORAMTS.DLL. This removes the single point-of-failure in pre 8.1.7.4.0 versions, and also makes the solution more scalable.

  • URGENT:Handle multiple connection in a multithreaded server.

    I hava a multithreaded server where it can handle multiple connection.
    The program works in this way. First, it will wait for connection. Once it accepts a connection, it will pass the socket to a thread class which will in turn process the connection. Then, the server will go back to the infinite loop to wait for new connection.
    Since I am not very familiar on using thread, I would like to post the following questions:
    1) Let say that my server can handle multiple connections. This is to cater for the different requests from the client. For instance, the client may make one connection for chatting and another connection for sending file(something like we have in Yahoo Messanger). So, at the server side, how can I differentiate between the connection for CHAT and the connection for SEND FILE so that I can handle the requests separately. It means I can save the file sent from client and display the chat message in the JTextArea?
    2) How can I stop the server, clean up the thread and start the server again for waiting new connection? Currently, I can just start my server once.
    For reference,following are parts of my program:
    public void listenSocket(){
    try{
    server = new ServerSocket(5000);
    } catch(IOException e) {
    System.out.println("Failed to listen on port 5000");
    System.exit(0);
    try{
    while(true){
    server1frame sframe=null;
    ChatHandler handler;
    handler = new ChatHandler(sframe,server.accept(),jTextArea1,jTextField1,jFileChooser1);
    handler.start();
    } catch(IOException e) {
    System.out.println("Accept failed:5000");
    System.exit(0);
    //to close the connection as the final steps before program exit.
    } finally {
    try{
    server.close();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    public void run() {
    out.println("Connection Established");
    out.flush();
    try {
    String line;
         while(!(line =in.readLine()).equalsIgnoreCase("QUIT")) {
    if(line.startsWith("CLIENT"))
    jTextArea1.append("\n"+line);
    else if(line.startsWith("Connecting")) {
    jTextArea1.append("\n"+line);
    else if (line.startsWith("Finish")) {
    JOptionPane.showMessageDialog(sframe,"File has finished downloading",
    "File Download Complete",JOptionPane.INFORMATION_MESSAGE);
    else {
    BufferedWriter fout = new BufferedWriter(
    new FileWriter("e:/num1.txt",true));
    fout.write(line);
    fout.newLine();
    fout.flush(); }
         } catch(IOException ioe) {
         ioe.printStackTrace();
         } finally {
         try {
              in.close();
              socket.close();
         } catch(IOException ioe){
    System.out.println("Fail to close connection.");

    1) Let say that my server can handle multiple
    connections. This is to cater for the different
    requests from the client. For instance, the client may
    make one connection for chatting and another
    connection for sending file(something like we have in
    Yahoo Messanger). So, at the server side, how can I
    differentiate between the connection for CHAT and the
    connection for SEND FILE so that I can handle the
    requests separately. It means I can save the file sent
    from client and display the chat message in the
    JTextArea?Either your server listens on two different ports for two different protocolls, (then you would a server thread for each port) or you accept connections for both protocolls on both ports, and have the client state what protocoll it is using :
    eg:
    accept Connection - start new Thread - read first line - depending on protocoll pass protocoll object (CHAT, FTP) to run method
    There is an example for a simple protocoll at : http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html
    2) How can I stop the server, clean up the thread and
    start the server again for waiting new connection?
    Currently, I can just start my server once.You normally start servers only once. It should then be up and listening for it's entire lifetime. Restarting a server should only be needed if it hangs or crashes.

  • Static ConnectionPool to service multiple Connections

    I have a Singleton Class ConnectionPool that services multiple
              connection to backend Messaging Software. Here is the structure of
              the ConnectionPool Class.
              class ConnectionPool extends Generic Servlet
              static ConnectionPool instance;
              static hashtable pools;
              getInstance();
              // pools keeps track of the service--> MsgConn Handle
              getConn(String Service);
              releaseConn(String Service);
              destroy();
              // Inner Class
              class MsgConn {
              create()
              get()
              release()
              } // Inner Class ends
              Only connection handles ( they are thread safe, no synchronization
              required) are returned and client servlet create receiver and sender
              on the connection handle.
              Client servlet call getInstance() and make getConn() and releaseConn()
              calls to get and release conn.
              Question:
              1. What is better to keep this in WEB-INF or in class path ?
              2. Is this a good design from WebLogic prespective ?
              Thanks in advance.
              Chris
              

    "Cameron Purdy" <[email protected]> wrote in message news:<[email protected]>...
              > 2. Is this a good design from WebLogic prespective ?
              >
              > Probably not, but I couldn't follow what you were doing so I can't say for
              > sure. Why can't you use the pooling that Weblogic provides?
              I am NOT using WebLogic JMS.
              >
              > Peace,
              >
              > --
              > Cameron Purdy
              > Tangosol Inc.
              > << Tangosol Server: How Weblogic applications are customized >>
              > << Download now from http://www.tangosol.com/download.jsp >>
              >
              >
              > "MOL" <[email protected]> wrote in message
              > news:[email protected]...
              > > I have a Singleton Class ConnectionPool that services multiple
              > > connection to backend Messaging Software. Here is the structure of
              > > the ConnectionPool Class.
              > >
              > > class ConnectionPool extends Generic Servlet
              > > {
              > >
              > > static ConnectionPool instance;
              > > static hashtable pools;
              > >
              > >
              > > getInstance();
              > > // pools keeps track of the service--> MsgConn Handle
              > >
              > > getConn(String Service);
              > > releaseConn(String Service);
              > > destroy();
              > >
              > > // Inner Class
              > > class MsgConn {
              > > create()
              > > get()
              > > release()
              > >
              > > } // Inner Class ends
              > >
              > > }
              > >
              > >
              > > Only connection handles ( they are thread safe, no synchronization
              > > required) are returned and client servlet create receiver and sender
              > > on the connection handle.
              > >
              > > Client servlet call getInstance() and make getConn() and releaseConn()
              > > calls to get and release conn.
              > >
              > > Question:
              > >
              > > 1. What is better to keep this in WEB-INF or in class path ?
              > > 2. Is this a good design from WebLogic prespective ?
              > >
              > > Thanks in advance.
              > >
              > > Chris
              

  • Using JMS to connect to Sun's 1.4 J2EE server

    Hi,
    I've been reading around various postings detailing how to connect to J2EE servers at runtime, and they all seem to follow the format:
    Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
    props.put(Context.PROVIDER_URL, "rmi://localhost");
    // Create a JNDI API InitialContext object
    // (may throw a NamingException)
    jndiContext = new InitialContext(props);
    But none of the discussion is totally complete. It seems incredibly difficult to connect to a J2EE server, and the documentation on the issue is incredibly poor.
    I'd like to do this without the 'appclient' program that comes with Sun's J2EE server as I wish to have a development environment that can start up, connect to the J2EE server, and send messages.
    So has anyone managed to get this to work?
    I'm confused to where the username and password go. I've seen other suggestions to make the above work, including:
    props.put("org.omg.CORBA.ORBInitialPort", "3700");
    props.put("org.omg.CORBA.ORBInitialHost", "localhost");
    ORB orb = ORB.init(new String[] {}, props);
    props.put("java.naming.corba.orb", orb);
    Therefore can anyone clear this up for me! A few lines of code, showing exactly how I can connect to a J2EE server.
    All I want to do is send a few messages.. :)
    Cheers
    John

    Hello everyone;
    Actually I have a error below;
    Feb 23, 2006 11:52:27 PM com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/1973"
    Feb 23, 2006 11:52:36 PM com.sun.enterprise.connectors.util.SetMethodAction handleException
    WARNING: RAR7096: Exception null while trying to set the value on property Name
    Feb 23, 2006 11:52:36 PM com.sun.enterprise.naming.SerialContext lookup
    SEVERE: NAM0004: Exception during name lookup : {0}
    com.sun.enterprise.resource.PoolingException
    at com.sun.enterprise.connectors.AdministeredObjectResource.createAdministeredObject(AdministeredObjectResource.java:143)
    at com.sun.enterprise.naming.factory.AdministeredObjectFactory.getObjectInstance(AdministeredObjectFactory.java:89)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at javaapplication17.Main.main(Main.java:39)
    Caused by: java.security.PrivilegedActionException: com.sun.enterprise.connectors.ConnectorRuntimeException
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.connectors.AdministeredObjectResource.createAdministeredObject(AdministeredObjectResource.java:139)
    ... 5 more
    Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException
    at com.sun.enterprise.connectors.util.SetMethodAction.handleException(SetMethodAction.java:110)
    at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:96)
    ... 7 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:69)
    ... 7 more
    Caused by: java.lang.IllegalArgumentException: MQ:Queue:Invalid Queue Name -
    at com.sun.messaging.Queue.setName(Queue.java:64)
    ... 12 more
    javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.resource.PoolingException]
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:317)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at javaapplication17.Main.main(Main.java:39)
    Caused by: com.sun.enterprise.resource.PoolingException
    at com.sun.enterprise.connectors.AdministeredObjectResource.createAdministeredObject(AdministeredObjectResource.java:143)
    at com.sun.enterprise.naming.factory.AdministeredObjectFactory.getObjectInstance(AdministeredObjectFactory.java:89)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    ... 2 more
    Caused by: java.security.PrivilegedActionException: com.sun.enterprise.connectors.ConnectorRuntimeException
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.connectors.AdministeredObjectResource.createAdministeredObject(AdministeredObjectResource.java:139)
    ... 5 more
    Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException
    at com.sun.enterprise.connectors.util.SetMethodAction.handleException(SetMethodAction.java:110)
    at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:96)
    ... 7 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:69)
    ... 7 more
    Caused by: java.lang.IllegalArgumentException: MQ:Queue:Invalid Queue Name -
    at com.sun.messaging.Queue.setName(Queue.java:64)
    ... 12 more
    I tried everything in this form but I could not send a message to queue from my standalone client.
    I am trying to communicate with my application server throught JMS almost a week. But I could not get any result. I even read twice some forms. Actually all I can say I progressed to here..
    My code is below...
    Context initialContext = new InitialContext();
                javax.jms.QueueConnectionFactory factory = (javax.jms.QueueConnectionFactory) initialContext.lookup("jmsFactory");
                Destination queue = (javax.jms.Queue) initialContext.lookup("jmsQueue");
                javax.jms.QueueConnection connection = factory.createQueueConnection();
                javax.jms.QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
                On the jmsQueue lookup there is the error... I create all the resources in my Sun System Application Server 8.2 PE...
    Please help or say some thing?
    .....

  • Shall I use one datasource for multiple connection pool?

    Hi,
    I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
    Thanks with regards
    Suresh

    No. If its transactions across multiple databases you should use different datasources.

  • Multiple connections for the same user.

    I have EJB A and EJB B. A and B use a JCA connector that
              I have written. I have matchManagedConnections set so that if user U has not used EJB A or EJB B, then a new ManagedConnection is created. If user U has used A or B then that user is given a new virtual connection created from an existing ManagedConnection. Now the problem is that if user U access' A for the first time and then access' B BEFORE A has closed the connection, then a new ManagedConnection is created for user U. Therefore in this case user U gets 2 ManagedConnections to the EIS that we are using. Eventually one of the ManagedConnections is distroyed but I would like to eliminate this in the first place. How do a get Weblogic to see that a user has a ManagedConnection before that user is done with the connection.

    You can't have multiple roles on multiple connection, as you are connecting to the same website (different sub directories) ultimately.
    Here is the workaround:-
    You can create a new user account on your machine and can manage different roles.
    Hope it helps.

  • SAP CRM with multiple MS Exchange Servers

    Hi all,
    I would like to use a SAP CRM 7.0 system with multiple MS Exchange servers. It is possible to forward emails from these Exchange servers to the SAP WAS via SMTP, so that SAP ERMS functionalities can be used to process the emails?
    Thank you,
    Till

    The answer is yes.  You need to just setup the exchange servers to route the e-mail to the inbound SMTP port setup on the CRM WAS server.  You will then configure the inbound e-mail address on the WAS to map to the ERMS service.
    CRM does not care how the message got sent to it, it just needs to be dropped off at that location.
    Take care,
    Stephen

  • PI7.1 JMS Adapter - connect to NW6.40

    Hello,
    We are facing following problem on SAP PI:
    We have a scenario where PI (version 7.1) is connecting to another SAP NetWeaver system (version 6.40).  There is an application that reads/puts messages from/to JMS Queues running on this system. PI has to connect the JMS Provider of 6.40 system and read/put these messages from/to these JMS Queues.
    This scenario worked fine till we used XI 3.0 (NW6.40). We configured sender JMS channel with link to remote JMS Server and parameter "force_remote".
    After installation of new PI7.1 we noticed some issues:
    1.the connection is unstable. Sending JMS messages from PI to NW6.40 queue works a while but then we get error like this:
    Adapter Framework caught exception: Unable to write new JMS message body for message: 00237d29-13fc-02ed-ba85-01d046631592: ConnectorException: Connector for ConnectionProfile of channel: EON_CC_jms_rcv_omsmessageon node: 922834950 having object id: 70855b1c6c483e869982ea2fe9787b36 was unable to create a new javax.jms.TextMessage message: javax.jms.IllegalStateException: Session is closed.
    2. we cannot read messages from JMS Queue of NW6.40 at all. The messages are there in queue, communication channel is running and succesfully connected to queue but no message is processed and no error shows in communication channel monitoring.
    Has anybody solve similar problem with connection between 7.1 and 6.40 NetWeaver?
    I think the problem can be backward incompatibility of 7.1 SAP JMS libraries against 6.40. If this is true then the question is whether it is possible to deploy old libraries and run them simultaneously with native 7.1 libraries?
    Thanks

    problem sorted - factory property settings were not configured correctly in JMS Adapter connection pool

  • How to handle multiple connection or user with l2cap

    hi friends,
    I need your help please a.s.a.p
    how to handle multiple connection with l2cap protocol in j2me
    sorry,
    I'm a new programmer in j2me
    thanks all...

    Please stick with the original thread http://forum.java.sun.com/thread.jspa?threadID=5200413&tstart=0
    Cross-posting is very rude, and JSch has nothing to do with JSSE, directly. It is an SSH2 API. It does (AFAIK) use some parts of JSSE, but those parts are definately not your problem.
    You already have answers in the other thread.

  • Multiple connections in one project

    Hi,
    Is there perhaps some kind of a document describing a 'best practice' for using multiple connections in a ADF BC application. One connects to an oracle DB another to a SQLServer.
    I suppose I need to create two different services? Anybody having experience with this?
    Regards,
    Koen Verhulst

    Among other things, the BC4J Configuration defines the name of the JDBC connection to use. To solve your problem, you can create two Configurations one for each database. The JDBC connection value will be the only different element between these two Configurations. To create a BC4J Configuration in JDeveloper, right click on the AppModule node and then click Configurations...,
    Use oracle.jbo.client.Configuration class to create AppModules connected to the database you want.,
    import oracle.jbo.*;
    import oracle.jbo.client.Configuration;
    String am = "demo.DemoModule"; // Fully-qualified application module name
    // Configuration name with JDBC connection to source database
    String cf1 = "DemoModuleSourceDb";
    ApplicationModule amSrc = Configuration.createRootApplicationModule(am,cf1);
    // Configuration name with JDBC connection to dest database
    String cf2 = "DemoModuleDestDb";
    ApplicationModule amDest = Configuration.createRootApplicationModule(am,cf2);
    Note that the AM name can also be different if you want.
    Hope this helps,
    Sathish.
    I want to access several Databases from one BC4J-Project.
    For example I want to write an application, which collects data from one database, does some computation and stores the results in a second database.
    I would prefer to use BC4J-Components for both, the source and the target database, but unfortunately I can select only one connection per BC4J-Project.
    Has anyone got an idea, how I can access more than one database-connection from one BC4J-Project without having to write all the JDBC-Stuff on my own? JDev-Team, can you please give a hint?

Maybe you are looking for

  • Reporting from a MS SQL Server database

    Hi, I'm trying to build an interface with JSP and J2SE for a MS SQL Server database, and I would like to know if there are any existing technologies that would facilitate report generation. I'm aware of Crystal Reports for JBuilder but I would prefer

  • Is there a way to make movie w/o theme page?

    I have a very brief movie I want to make and I don't want to use any theme page, or buttons or anything else for that matter. I just want the movie to run it's 10 second course when I press play, and that's it. Is this possible with iMovie 08?

  • Best Practices to implement Login Attempts Failed.

    I would like to implement the disable the user account after a certain number of invalid login, What is the best way and secure way to implement this? i do some research, some recommended to create a temporary table in database and keep track the num

  • Automatic folder creation fails  ... trying to use the bulletin board tutor

    Hello, I would like to create a blog using KMC functionality. For this I found an sdn article on how to create an bulletin board an this tutorial has some functionality I need in the blog too. Unfortunately I have some problems when I want to have an

  • User account available hard drive space

    I have multiple computers in an office of 20+ that are used for rotating student interns. I have a user account set up for each student, 2 on any one machine. The issue is that an individual user only has roughly 8.5 gb available for hard drive space