WebLogic connects to Tuxedo with JOLT

I have to work with Weblogic and Tuxedo with Jolt. But I tmboot -y to boot
JSL,JREPSVR,than I want to config my repository editor to deploy my
services,some eror messages display.
Could some friends help me to solve this problem?
After I input server ip and port <as in my ubbconfig file -n
file://192.9.100.2:8000>,it displays
bea.jolt.SessionException:Cannot connect to any file://192.9.100.4:8000.
Reason:NwHdlr:Cannot open socket.
Beafor I run "appletviewer RE.html",I have set CLASSPATH to include jolt
classes.
CLASSPATH=/app/tuxedo/udataobj/jolt/classes/bea/jolt
PATH=/app/tuxedo/apps:/app/tuxedo/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:
/usr/bin/
X11:/sbin:/usr/tuxedo/bin
*******************ubbsimple***********************
#ident "@(#) apps/simpapp/ubbsimple $Revision: 1.1 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed> items with the appropriate values.
*RESOURCES
IPCKEY 123456
DOMAINID simpapp
MASTER simple
MAXACCESSERS 30
MAXSERVERS 20
MAXSERVICES 40
MODEL SHM
LDBAL N
*MACHINES
DEFAULT:
aix170 LMID=simple
APPDIR="/app/tuxedo/apps/simpapp"
TUXCONFIG="/app/tuxedo/tuxconfig"
TUXDIR="/app/tuxedo"
MAXWSCLIENTS = 20
*GROUPS
DEFAULT: LMID=simple
GROUP1 GRPNO=1 OPENINFO=NONE
JREPGRP GRPNO=94
JSLGRP GRPNO=95
*SERVERS
DEFAULT:
simpserv SRVGRP=GROUP1 SRVID=1
JSL SRVGRP=JSLGRP SRVID=30
CLOPT= "-A -- -n file://192.9.100.4:8000 "
JREPSVR SRVGRP=JREPGRP SRVID=98
RESTART=Y MAXGEN=10 RQADDR=JREPQ REPLYQ=Y GRACE=0
CLOPT="-A -- -W -P
/app/tuxedo/apps/simpapp/jrepository/jrepository"
*SERVICES
TOUPPER
*******************ubbsimple***********************

I have to work with Weblogic and Tuxedo with Jolt. But I tmboot -y to boot
JSL,JREPSVR,than I want to config my repository editor to deploy my
services,some eror messages display.
Could some friends help me to solve this problem?
After I input server ip and port <as in my ubbconfig file -n
file://192.9.100.2:8000>,it displays
bea.jolt.SessionException:Cannot connect to any file://192.9.100.4:8000.
Reason:NwHdlr:Cannot open socket.
Beafor I run "appletviewer RE.html",I have set CLASSPATH to include jolt
classes.
CLASSPATH=/app/tuxedo/udataobj/jolt/classes/bea/jolt
PATH=/app/tuxedo/apps:/app/tuxedo/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:
/usr/bin/
X11:/sbin:/usr/tuxedo/bin
*******************ubbsimple***********************
#ident "@(#) apps/simpapp/ubbsimple $Revision: 1.1 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed> items with the appropriate values.
*RESOURCES
IPCKEY 123456
DOMAINID simpapp
MASTER simple
MAXACCESSERS 30
MAXSERVERS 20
MAXSERVICES 40
MODEL SHM
LDBAL N
*MACHINES
DEFAULT:
aix170 LMID=simple
APPDIR="/app/tuxedo/apps/simpapp"
TUXCONFIG="/app/tuxedo/tuxconfig"
TUXDIR="/app/tuxedo"
MAXWSCLIENTS = 20
*GROUPS
DEFAULT: LMID=simple
GROUP1 GRPNO=1 OPENINFO=NONE
JREPGRP GRPNO=94
JSLGRP GRPNO=95
*SERVERS
DEFAULT:
simpserv SRVGRP=GROUP1 SRVID=1
JSL SRVGRP=JSLGRP SRVID=30
CLOPT= "-A -- -n file://192.9.100.4:8000 "
JREPSVR SRVGRP=JREPGRP SRVID=98
RESTART=Y MAXGEN=10 RQADDR=JREPQ REPLYQ=Y GRACE=0
CLOPT="-A -- -W -P
/app/tuxedo/apps/simpapp/jrepository/jrepository"
*SERVICES
TOUPPER
*******************ubbsimple***********************

Similar Messages

  • Performance degradation using Jolt ASP Connectivity for TUXEDO

    We have a customer that uses Jolt ASP Connectivity for TUXEDO and is suffering
    from a severe performance degradation over time.
    Initial response times are fine (1 s.), but they tend to increase to 3 minutes
    after some time (well, eh, a day or so).
    Data:
    - TUXEDO 7.1
    - Jolt 1.2.1
    - Relatively recent rolling patch installed (so no there are probably no JSH performance
    issues and memory leaks as fixed in earlier patches)
    The ULOG shows that during the night the JSH instances notice a timeout on behalf
    of the client connection and do a forced shutdown of the client:
    040911.csu013.cs.kadaster.nl!JSH.234333.1.-2: JOLT_CAT:1185: "INFO: Userid:
    [ZZ_Webpol], Clientid: [AP_WEBSRV3] timed out due to inactivity"
    040911.csu013.cs.kadaster.nl!JSH.234333.1.-2: JOLT_CAT:1198: "WARN: Forced
    shutdown of client; user name 'ZZ_Webpol'; client name 'AP_WEBSRV3'"
    This happens every 10 minutes as per configuration of the JSL (-T flag).
    The customer "solved" the problem for the time being by increasing the connection
    pool size on the IIS web server.
    However, they didn't find a "smoking gun" - no definite cause for the problem.
    So, it is debatable whether their "solution" suffices.
    It is my suspicion the problem might be located in the Jolt ASP classes running
    on the IIS.
    Maybe the connection pool somehow loses connections over time, causing subsequent
    users having to queue before they get served (although an exception should be
    raised if no connections are available).
    However, there's no documentation on the functioning of the connection pool for
    Jolt ASP.
    My questions:
    1) What's the algorithm used for managing connections with Jolt ASP for TUXEDO?
    2) If connections are terminated by a JSH, will a new connection be established
    from the web server automatically? (this is especially interesting, because the
    connection policy can be configured in the JSL CLOPT, but there's no info on how
    this should be handled/configured by Jolt ASP connectivity for TUXEDO)
    Regards,
    Winfried Scheulderman

    Hi,
    For ASP connectivity I would suggest looking at the .Net client facility provided in Tuxedo 9.1 and later.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • "Cannot create connection" with Jolt

    I'm running WebLogic Server 5.1 sp12 and Tuxedo 7.1 on Linux. When I try to run
    another WebLogic connecting to this machine, I receive the following error:
    "Unable to connect to primary server at //barcelona:9000"
    I am not running any firewall on the Jolt Server.
    Does someone knows why does it happen?
    The weblogic.properties of the new machine:
    weblogic.system.startupArgs.gbixStartupClasses=\
    poolname=joltpool,\
    appaddrlist=//barcelona:9000,\
    failoverlist=//barcelona:9000,\
    minpoolsize=1,\
    maxpoolsize=10
    The ubbconfig file:
    #Jolt servers definition
    JSL SRVGRP=JSLGRP
    SRVID=1
    CLOPT="-A -- -n //barcelona:9000 -m4 -I3600"
    The netstat -ap output of the tuxedo machine:
    tcp 0 0 barcelona:9000 *:* LISTEN 10338/JSL
    tcp 0 0 barcelona:9001 *:* LISTEN 10339/JSH
    tcp 0 0 barcelona:9002 *:* LISTEN 10340/JSH
    tcp 0 0 barcelona:9003 *:* LISTEN 10341/JSH
    tcp 0 0 *:netbios-ssn *:* LISTEN -
    tcp 0 0 barcelona:9004 *:* LISTEN 10342/JSH
    tcp 0 0 barcelona:32783 *:* LISTEN -
    tcp 0 0 *:sunrpc *:* LISTEN -
    tcp 0 0 *:x11 *:* LISTEN -
    tcp 0 0 *:http *:* LISTEN -
    tcp 0 0 *:1521 *:* LISTEN -
    Thanks

    I have this problem solved already. It is related on how
    JSL is started, where it listens for connections and how
    the network is set on the Linux box...
    Tks

  • Error While reading CLOB from Oracle using WebLogic Connection Pool, Works fine with out using pool

    PROBLEM DESCRIPTION :
         When I try to read a clob from Oracle, I receive "ORA-03120: two-task
    conversion routine: integer overflow" Error.
         This error occurs only for CLOB Type and only if I try to connect to
    Oracle using WebLogic JDriver/Oracle POOL.
         IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
    connection to ORacle with out any problem.
         Below Please find the JAVA CODE for Both Working and NON Working .
    Created a Connection Pool as:
    Name: MyJDBCConnectionPool
    URL : jdbc:weblogic:oracle
    DIRVER:weblogic.jdbc.oci.Driver
    NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    ERROR MESSAGE:
         ORA-03120: two-task conversion routine: integer overflow
    I appreciate your help on this problem.

    PROBLEM DESCRIPTION :
         When I try to read a clob from Oracle, I receive "ORA-03120: two-task
    conversion routine: integer overflow" Error.
         This error occurs only for CLOB Type and only if I try to connect to
    Oracle using WebLogic JDriver/Oracle POOL.
         IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
    connection to ORacle with out any problem.
         Below Please find the JAVA CODE for Both Working and NON Working .
    Created a Connection Pool as:
    Name: MyJDBCConnectionPool
    URL : jdbc:weblogic:oracle
    DIRVER:weblogic.jdbc.oci.Driver
    NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    ERROR MESSAGE:
         ORA-03120: two-task conversion routine: integer overflow
    I appreciate your help on this problem.

  • Weblogic 9.2 - Problem with Connection Pool not releasing resources

    We have a third party application that is running Weblogic 9.2 and has a connection pool to a SQL 2005 db for queries within it's batch process. What I have noticed is that it does not seem to be releasing SQL cpu back after the batch and this is causing issues with processes for other dB's within the instance. Has anyone encountered this issue and if so what is the solution (short of isolating it within it's own instance). Can the connection be reset to release resources?

    Yes it is a weblogic connection pool. What I mean is that when a batch run I can see the CPU for the SQL process associated with the connection increase but when the batch is completed the CPU remains high when I would expect it to move back down to an 'idle' level as after that as all it would be doing is the occasional "select 1' ping to keep the connection active.
    What i do see is that the cpu in activity monitor shows high cpu and it never goes down unless the connection is killed and re-established. As this is a shared instance other apps are complaining of slow running procs.

  • Tuxedo with XA connection on Oracle 8.1.6  on HPUX 11

    Hello,
    I search informations (references, problems, experiences, tests ...) on a configuration with tuxedo with xa connection on oracle 8.1.6 with cobol programs.
    Thanks

    You will likely not find too many answers for tuxedo questions on these
    newsgroups. I suggest contacting your sales representative who can give you
    more assistance.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Jean-Guy Maisonneuve" <[email protected]> wrote
    in message news:399ab9a5$[email protected]..
    >
    Hello,
    I search informations (references, problems, experiences, tests ...) on aconfiguration with tuxedo with xa connection on oracle 8.1.6 with cobol
    programs.
    >
    Thanks

  • Is Weblogic 7.0 Compatible with TUXEDO 6.4

    Hi
    I just want to know " Can i make a connectivity between weblogic 7.0 using WTC
    to TUXEDO 6.4 ".
    Where can i get information in this regard.
    Thank you in anticipation.

    saleha,
    You will see from this link
    http://e-docs.bea.com/wls/certifications/certifications/overview.html#1033774
    That WTC connects to Tuxedo versions 6.5 and higher.
    If you must keep your Tuxedo end using version 6.4, you could install a
    6.5 node (or a 6.5 domain) to act as a gateway between WTc and your
    existing application.
    Regards,
    Peter.
    saleha wrote:
    Hi
    I just want to know " Can i make a connectivity between weblogic 7.0 using WTC
    to TUXEDO 6.4 ".
    Where can i get information in this regard.
    Thank you in anticipation.

  • Needed help on connecting weblogic 8.1 SP5 with oracle 10g and mysql 5.0

    Hi !!
    Hope you are doing well...
    Can anyone tell me how to connect weblogic 8.1 SP5 with an oracle 10g DB on windows..
    also, how to connect weblogic 8.1 SP5 with mysql 5.0 on windows..
    Please step by step... very urgent..
    Thanks!! Jhonson

    Shouldn't this be posted in BEA forums?
    Try getting help there and if you encounter any Oracle related exception, you can post here.

  • Connection recv error in jolt connection

    Hi,
    We have Java GUI client connecting to the Tuxedo server thru Jolt.
    When we try to do some operation that connects to server after the GUI is idle for a about an hour we get Jolt error "Connection recv error" , sometimes we also get the error "Connection send error".
    Wanted to know what causes this error, we are connecting the GUI in RETAINED mode option.
    I could not get much in edocs on this, please let me know anyone encountered such problem and what really causes to throw this error.
    I have pasted the error below:
    bea.jolt.TransactionException: Connection recv error\nbea.jolt.SessionException: Connection recv error\nbea.jolt.JoltException: [6] NwHdlr.recv(): Network Error\njava.net.SocketException: Connection reset
         at bea.jolt.JoltTransaction.begin(JoltTransaction.java:337)
         at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:278)
         at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:257)
    Thanks
    gowardhan

    Hi Gowardhan,
    My comments are in line.
    Wayne
    Gowardhan Reddy wrote:
    Hi Wayne,
    Thanks for your reply.
    The disconnect seems to be happening due to network problem.
    Can you please help us understand the difference between a connection recv and connection send error? When we get a recv error does that mean a message was sucessfully sent to the server and the error was in receiving the response? [Wayne] I assume you use "call" method of JoltRemoteService class. This
    method encapsulates send and recv action in a try{} block. So whether
    send or recv throw exceptions depends on when the connection
    disconnected. I guess most exceptions were regarding send. When a recv
    error happens, I think the message was sent successfully except some
    rare situation, that is message transmission seems OK for client, but at
    that time the network disconnected.
    We tried with ANY option and the problem doesnt seem to happen when we connect with -j ANY option. We have a range of 50 ports reserved for Jolt connection and network maybe dropping the idle connections.
    What is difference in using -T option with ANY or just the RETAINED option, as it looks using ANY option without -T specified is same as RETAINED option. Will the server be able to push/connect to GUI in case of ANY option after the timeout value is reached?[Wayne] I think -T option will override the RETAINED option. That is to
    say even you give a retained mode for connection, -T may also disconnect
    the clients in a specified idle time. But if the client is closed due to
    inactive timeout, JSH should have some message in ULOG like "... timed
    out due to inactivity".
    There is no error logged in ULOG.
    Thanks
    Gowardhan

  • Tuxedo with legacy

              i am using weblogic 7.0
              i would like to know the rite strategy for applying tuxedo 8.0 to the legacy system.
              should i use jolt with the tuxedo \Q?
              or
              corba as the interface of weblogic and tuxedo, with \Q service in tuxedo server?
              

    Thanks Larry, I just found some documentation on the connector and this does look
    promising. Unfortunately, I'm going to be constrained by what the customer has in
    place. I don't know yet if the customer is using WebLogic. They are in South Africa
    and I'm here in the east coast and just got this request this morning. I need to
    find out more information to make a better decision.
    Thanks again for the response.
    Brett
    Larry Presswood <[email protected]> wrote:
    Or you could use weblogic with the weblogic connector which would allow
    you to expose web services and directly invoke legacy tuxedo services
    Brett Bergquist wrote:
    I'm tasked with interfacing our XML/HTTP based network management systemwithin a
    Tuxedo framework for a large customer. I have not received many detailsas of yet
    of the customers infrastructure, all that I know is that it is Tuxedobased.
    Our network management system is accessible via a XML over HTTP interface.From
    what I gather, the customer wants to interact with our NMS via their clientapplications
    which use Tuxedo as their messaging architecture.
    From what I've read (only a little today), I will need to create a Tuxedocomponent
    that advertises services, accepts service requests, interacts with ourNMS via XML/HTTP,
    and packages up the response which is sent back to the client.
    Does this sound like the correct path to take?
    Any and all comments are appreciated.

  • Connecting to Tuxedo - suggest best solution

    Hi,
    We are transforming one of our client server application to Oracle ADF application, the existing application uses VisualAge Interspace for connecting to tuxedo. The application passes the values to the intespace dll as tab separated string there after the dll will call the tuxedo and get the value from that and return the values as tab delimited string to the client. We are palnning to use weblogic 10.3. On web search we found that following services are available
    1. WTC
    2. JOLT
    3. SALT
    please suggest the best approach to connect Tuxdo from Weblogic server and use in ADF
    Thanks

    If I recall correctly, JOLT is simply a limited Tuxedo Java client that does not provide the gateway/bridging capabilities of WTC. I haven't looked at WTC closely in years, but somewhat recall that, unlike JOLT, it supplies things like:
    * The ability to call EJBs from Tuxedo using Tux APIs
    * The ability to call Tux services from WebLogic using standard JEE RMI/EJB APIs.
    * XA Integration (Transactions that span both Tux and JEE operations)
    * Queuing Integration (eg Tux /Q to JMS destination bridge)
    You can probably get more definitive advice from the [Tuxedo newsgroup | http://forums.oracle.com/forums/forum.jspa?forumID=565].
    Tom
    Edited by: TomB on Dec 22, 2009 6:27 PM
    Edited by: TomB on Dec 22, 2009 6:29 PM

  • Weblogic 10.3.5 with oracle forms and reports 11.1.2.1.0

    Hi All,
    I am new to 11g concept (actually web based, have worked till 6i) and trying to upgrade my existing system (6i) to 11g. I have installed Weblogic 10.3.5 with forms and reports 11.1.2.1.0 on windows 7 32 bit. I can connect to my database (10g) from Form builder.
    But when I try to open a form/pll of 10g or 6i, it says PDE-PLI018 could not find library and it shows the path of my earlier folder, which now does not exist.
    I have made changes in registry FORMS_PATH, FORMS_BUILDER_PATH, UI_ICON
    And in default.env file FORMS_PATH and CLASSPATH
    I have added entry to tnsnames.ora, through which I can connect to DB. And have followed below site to configure weblogic and FM forms and reports;
    http://windows7bugs.wordpress.com/2013/04/06/install-configure-oracle-weblogic-server-10-3-6-forms-reports-11g-on-windows8windows-2008-r2/
    I have few doubts in my mind;
    1) Do we have to connect (create a bridge) to DB from weblogic except tnsnames.ora.
    2) For library error I think I am missing some settings to be done.
    3) If I am able to rectify above error then can I directly use http://localhost:8888/forms/frmservlet and access the system from another pc, or still there are some modifications needed.
    I am trying this from last 3 days, but couldn't find the solution, kindly help me out for same, eagerly waiting for your reply.
    Regards,
    Ash

    Hi InoL,
    Thanks for your reply, Yes, as there are many forms in my system, there is a chance that libraries attached are with the path.

  • RemoteInvokable Error while executing the sqls through weblogic connection object

    Hi, We are getting the following error while trying to execute the sps or sql using
    the weblogic connection pool.
    1. The client is a simple java program (not Bean).
    2. It is processing lots of records (more than 6000). When we are having less no.
    of records we are not getting this error. i.e. 200/600 records.
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException - with nested
    exception:
    [java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
    Start server side stack trace:
    java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
            at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:627)
    I am also attaching here the source file.
    Please advise.
    Mishra
    [UpdateTransWork.java]

    Hi Surya,
    Which weblogic version/ service pack are you using?
    Meanwhile, the source of this error could be places
    where you close allocated JDBC objects twice. AFAIR
    it was fixed in the latest service packs.
    Regards,
    Slava Imeshev
    "Surya Narayan Mishra" <[email protected]> wrote in message
    news:3cce522e$[email protected]..
    >
    Hi, We are getting the following error while trying to execute the sps orsql using
    the weblogic connection pool.
    1. The client is a simple java program (not Bean).
    2. It is processing lots of records (more than 6000). When we are havingless no.
    of records we are not getting this error. i.e. 200/600 records.
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException -with nested
    exception:
    [java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
    Start server side stack trace:
    java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
    at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:627)
    I am also attaching here the source file.
    Please advise.
    Mishra

  • [原创] 有关Weblogic Connection Pool 连接恢复的问题

    这是一个古老的问题,一直困扰我,这里既然碰到了,就看看能不能解决。
    环境描述:
    WEBLOGIC版本是8.1 SP2,数据库是SQL SERVER 2000,分别部署在两个服务器上。
    第一步:
    问题描述:
    数据库服务器重新启动,导致WEBLOGIC 的CONNECTION POOL中的连接中断,EJB无法获得连接,导致应用出错。
    解决方法:
    进入WEBLOGIC ADMIN CONSOLE,
    Services->JDBC->Connection Pools->Config->Connections, 点开Advanced Options.
    打开 Test Reserved Connections ,Test Created Connections,Test Released Connections这三个选项。
    将Test Table Name属性设置为:sysproperties(SQL Server系统表,即使自己的应用不存在,这个表也存在,而且默认的内部没有数据)
    根据如下解释:
    Connections that fail the test are closed and reopened to re-establish a valid physical database connection.
    (You must specify a Test Table Name below.)
    每次调用首先进行测试连接,如果测试失败连接将重新建立。
    测试结果:
    WEBLOGIC启动后,关闭数据库SQL SERVER,应用服务器前端调用此时失败。
    重新启动SQL SERVER后,WEBLOGIC端略做等待,前端应用恢复正常。
    第二步:
    问题描述:
    进一步测试,如果WEBLOGIC先启动,启动完成后再启动数据库。
    在WEBLOGIC CONSOLE得到如下输出:
    <2006-3-22 上午11时50分08秒 GMT+08:00> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for p
    ool "MyJDBC Connection Pool": [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.>
    <2006-3-22 上午11时50分10秒 GMT+08:00> <Error> <JDBC> <BEA-001150> <Connection Pool "MyJDBC Connection Pool" deployment
    failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: [Microsoft][SQLServe
    r 2000 Driver for JDBC]Error establishing socket..>
    <2006-3-22 上午11时50分10秒 GMT+08:00> <Error> <JDBC> <BEA-001151> <Data Source "MyJDBC Data Source" deployment failed w
    ith the following error: DataSource(jdbc/OMSEIITxDS) can't be created with non-existent Pool (connection or multi) (MyJD
    BC Connection Pool).>
    Unable to deploy EJB: XXXXXXX from XXXXXXX.jar:
    [EJB:011028]The DataSource with the JNDI name: jdbc/XXXXXX could not be located. Please ensure that the DataSource h
    as been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
    1、在默认初始化打开的连接一一失败以后,连接池发现可用的连接为0,郁闷的宣布自己部署失败。
    2、接着数据源发现没有可用的连接池,自己也宣布部署失败。
    3、下面所有的EJB发现不了数据源的JNDI名,部署也全部失败。
    应用启动完成后,大部分EJB的状态为INACTIVE。前端应用无法使用,此时启动数据库,前端应用无法使用。
    手动重新部署 EJB失败,错误还是找不到JNDI,前端应用无法使用。
    手动重新部署 连接池,数据源后,部署EJB 依然失败。前端应用无法使用。
    解决方法:
    进入WEBLOGIC ADMIN CONSOLE,
    Services->JDBC->Connection Pools->Config->Connections, 点开Advanced Options.

    Connection Creation Retry Frequency 参数设置为 60。
    ConnectionCreationRetryFrequencySeconds含义:
    当创建数据库连接时,如果数据库不可用(如数据库没启动),隔多长时间试着重新创建该连接,
    WLS8.1会每隔ConnectionCreationRetryFrequencySeconds秒重试一次.直到JDBC POOL创建成功
    参考:http://dev2dev.bea.com.cn/techdoc/20030469.html,‘JDBC Connect Pool’部分。
    英文解释可以直接控制台上看到,或者edocs查。
    测试结果:
    将数据库关闭,WEBLOGIC重新启动。
    在WEBLOGIC CONSOLE得到如下输出:
    打开Connection Creation Retry Frequency 参数后,连接池在第一轮尝试失败以后,就成功部署了,数据源也成功部署。
    EJB部署会失败,但是提示也与先前的不同:
    Unable to deploy EJB: XXXXXXX from XXXXXXX.jar:
    weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool MyJDBC Connection Pool to
    allocate to applications, please increase the size of the pool and retry..
    每隔一段时间会看到,CONNECTION POOL不断的重新进行连接:
    <2006-3-22 下午12时17分56秒 GMT+08:00> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for p
    ool "MyJDBC Connection Pool": [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.>
    在WEBLOGIC启动完成后,所有EJB为INACTIVE状态。
    启动数据库服务器,稍后,手动重新部署所有的EJB,EJB可以部署成功,前端应用可以正常使用。
    此时,此问题已经基本解决,仍需要手动部署EJB。
    第三步:
    问题描述:
    解决方法:
    有关部署次序的问题,首先查阅WEBLOGIC文档,http://edocs.bea.com/wls/docs81/faq/deploy.html#744900,得到
    WebLogic Server deploys server-level resources (first JDBC and then JMS) before deploying applications.
    Applications are deployed in this order: connectors, then EJBs, then Web Applications.
    If the application is an EAR, the individual components are loaded in the order in which they are declared
    in the application.xml deployment descriptor.
    WEBLOGIC先部署服务器端资源,JDBC -> JMS....,然后部署我们的应用,EJB->WEB APPLICATION。
    实际从WEBLOGIC启动日志来看,即使打开了Connection Creation Retry Frequency,如果当时数据库不是可用的,CONNECTION POOL
    会不断的调度CONNECTION进行重新连接。但是此时,EJB的部署也同时在进行。个人猜测这应该是两个不同的线程(组)分别调度的任务。
    现在考虑的是能不能用StartupClass截住EJB的部署过程,粗略的说是如果DATASOURCE没有连接好,或者没有可用的连接池,
    就不往下进行EJB部署的过程。
    参考:http://edocs.bea.com/wls/docs81/config_xml/EJBComponent.html#DeploymentOrder
    DeploymentOrder:
    A priority that the server uses to determine when it deploys an item. The priority is relative to other deployable
    items of the same type. For example, the server prioritizes and deploys all EJBs before it prioritizes and
    deploys startup classes.Items with the lowest Deployment Order value are deployed first.
    There is no guarantee on the order of deployments with equal Deployment Order values.
    There is no guarantee of ordering across clusters. Default: 1000 Minimum: 0 Maximum: 2N31-1
    在部署同一类应用时,按照 DEPLOYMENT LOADER的数值决定,数值越小越先。(EJB的参数在ADMIN CONSOLE界面上叫做LOAD ORDER)
    而且上面看来服务器是先部署EJB,再部署STARTUP CLASS,遗憾了。
    好在STARTUP CLASS上有两个选项,
    Run Before Application Deployments
    Run Before Application Activations
    这两个选项分别可以设置StartupClass分别在系统资源部署之前,以及在系统资源部署和用户应用部署之间启动。
    选上Run Before Application Activations。
    现在可以了,我写了一个STARTUP CLASS,思路见下:
    主代码:
    private void testConnection(){
    while (!isTimeout() && !getConnection()){
    try{
    Thread.sleep(testInterval*1000);
    }catch(Exception ignor){}
    log("DBConnectHolder job finished with following status:");
    log("Timeout:"+isTimeout +",Connection OK:"+isConnected);
    测试结果:
    只要配置的等待时间足够长,应用服务器先行启动的情况下,等待数据库启动后才进行EJB等等的部署。
    (主要考虑如果数据库连接不OK,EJB启动了也没有太大用,还得手工重新部署。)算是比较完满的解决了问题。
    另外一个思路是是否可行? 通过MBean, 在CONNECTION 建立起来以后通知一把,进行EJB的重新部署。
    没来得及研究,请有经验的同学帮我补充完善。
    结论:
    其实也没什么结论,只是把自己遇到问题,解决问题的思路写了一下。短时间内阅读的文献有限,可能采用了一些苯方法
    ,或者走了弯路,也请大家拍砖。
    在WL8版本上,数据库连接进行恢复和重新连接的时候,上面提出的几个参数应该是比较重要的,我再次强调一下。
    Services->JDBC->Connection Pools->Config->Connections, 点开Advanced Options.
    Test Reserved Connections
    Test Created Connections
    Test Released Connections
    Test Table Name
    Connection Creation Retry Frequency

    在第一个情景中应该只需要打开Test Reserved Connections 就可以了。
    Test Created Connections表示创建连接后放到pool之前进行测试看连接是否可用
    Test Released Connections表示释放连接回到pool之前进行测试看连接是否可用
    I think so!

  • How to connect to Tuxedo without Tuxedo adapter

    Hello all,
    I want to know the way to connect Oracle (BEA) Tuxedo using other adater than Tuxedo adapter provided by iWay.
    Unfortunately, I'm not so much familiar with Tuxedo, but I hear that Oracle has CORBA architecture, so I suspect that we can use some other adapters provided by SAP PI itself to connect to Tuxedo.
    If someone has experience of developping the adapter to connect to Tuxedo by scratch, I also want to know the detail of it.
    Thank you for your information in advance.
    Best regards,
    Hideki Kozai

    Hello all,
    I want to know the way to connect Oracle (BEA) Tuxedo using other adater than Tuxedo adapter provided by iWay.
    Unfortunately, I'm not so much familiar with Tuxedo, but I hear that Oracle has CORBA architecture, so I suspect that we can use some other adapters provided by SAP PI itself to connect to Tuxedo.
    If someone has experience of developping the adapter to connect to Tuxedo by scratch, I also want to know the detail of it.
    Thank you for your information in advance.
    Best regards,
    Hideki Kozai

Maybe you are looking for

  • Webcenter PS5 - 11.1.1.6.0 Patchset Released

    Hi All , Webcenter PS5 - 11.1.1.6.0 Patchset MLR 10 has been released on MyOracleSupport portal . Patch 15922432: WCC 11.1.1.6.0 BUNDLE (MLR 10)JAN 17 2012 https://support.oracle.com/epmos/faces/PatchDetail?patchId=15922432 This would include patches

  • Emails sent from my Q10 do not appear in my Comcast email Inbox.

    Emails sent from my Q10 do not appear in my Comcast email Inbox.  This worked a week ago, when I set up my email. I've deleted and re-added my Comcast email address in my Q10.  Still not working. Can anyone help?

  • No signal on mixer on any channel?

    Hi... One minute my track was going fine the next minute there is no sound, no signal from any of the channels. I have checked the audio output is correct. (itunes and other apps working) I have loaded an earlier version of my project and this plays

  • LCHR fields in SmartForms

    Hi, I'm trying to pass data from self-defined table which has a field type of LCHR and its length is more than 255 characters. Which type of element should I use on Smartforms side to get all data to the smartform? Now it shows only ~255 characters b

  • Strange error code returned!!!

    I have a bdb ,version 4.7.25 ,when i put lots of records (above 20,000,000) in it,each record is not bigger than 512 bytes, when i start my db,first i use DB_MPOOLFILE to read it,it's about 20401665 pages,then i use cursor to read detail records from