Problem to call a procedure while using External connection pooling in TopL

HI all,
I have implemented external connection pooling in TopLink with JBoss 4.0.3SP1 and it is working fine. But after the connection pooling I am getting error while executing stored procedure with TopLink on Sybase. This is the error I am getting......
Stored procedure 'P_InsReleaseToManufact' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode.
I got one solution to this problem as to set a tag in sybase-ds.xml file(which is used in JBoss to enable connection pooling) ..............
<connection-property name="SQLINITSTRING">set chained off</connection-property>
but still it is not working.
Can some one please tell me about the solution.

Try
session.getLogin().handleTransactionsManuallyForSybaseJConnect();

Similar Messages

  • HELP:Problem in creating a temporary CLOB using JDBC connection pooling

    Hi All,
    i am inserting a large xml document in an xml type column by creating a temporary clob of this document
    tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
    I am not having any success getting the following statement working using a JDBC connection pool rather than a hard coded URL connection
    it works with:
    "jdbc:oracle:thin:@server:port:dbname" connection
    Does NOT work with:
    datasource.getConnection()
    Does any one know how to successfully get this to work?
    urgently plz........

    Hi Dharmi
    Here is a quote of Dafna's post in [another thread in this forum|Re: Copy VC controls]
    CE7.1.1 will be released at September 2008 for ramp-up customers.
    There are many improvements and new capabilities in the new release of Visual Composer for CE7.1.1. Among the new features you can find:
    The missing features from Visual Composer 7.0 (Html view, portal Eventing support (EPCM), JDBC, Undo/Redo, and more..)
    Many layout & modeling improvements
    Additional ALV table functionality - export to Excel, switch to chart, configure ALV behavior at design time
    Integration of Visual Composer in Eclipse - additional entry point to the Visual Composer models from the NWDS. This integration provides the option to add a WD component (in case of missing functionality in Visual Composer), as a black box component to the Visual Composer model. Right-clicking the component will open the Web Dynpro perspective for creating/modifying the component.
    Regards,
       Shai

  • Doubts concerning External Connection Pool

    A few questions:
    1. How can I set up an external connection pool with toplink? or in another words, assuming that I have successfully configured a connection pool (and a datasource) on my weblogic app-server, how do I configure Toplink to use the same?
    2. I am trying to achieve the above (refer point 1), by defining my custom connector (by extending TOPLink.Public.Sessions.DefaultConnector). The custom connector provides connections using the dataSource.getConnection(). Now, the question is
    - Where will the pooling happen in this case? i.e. Will Toplink use its own connection pool (populate its own connection pool with container managed data source), and issue connections (container managed) from there or will it make use of the container managed pooling (and ask for connections from the container managed pool, as and when required)? The subtle difference being, weblogic will not be able to validate a connection before issue in the former case.
    3. This question is similar to point 2, but talks in terms of a practical example. Assuming that if I am using the custom connector successfully in my code, then if I pull out the network cord and reconnect again, I expect the container to provide me with a valid connection (as weblogic can be configured to perform a validity check on a connection before issuing). I am getting a 'connection reset by peer' error in my application (indicating that either the container fails to provide a valid connection, or toplink does not use the container managed pool effectively). I guess, Toplink still uses its own pool but this time it is pooling container managed dataSources. Since the connections are issued from Toplink and not container, here is no validation/reconnection happening for the connection, before issue. Please comment if I am thinking in the right direction or not. If not, how you can explain the above failure?
    4. My aim is to utilise the container's connection pool, and Toplink's ability to perform the rest of the things (including transactions). Is that possible?

    Vikas,
    TopLink can easily be configured to use the external connection pool of an server. This can be accomplished with API but more commonly using the sessions.xml configuration file for the SessionManager. In the product we ship examples for WLS that make use of data sources configured in the server. The portion of the sessions.XML file in question is:
              <login>
                   <user-name>weblogic</user-name>
                   <password>weblogic</password>
                   <datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
                   <non-jts-datasource>java:comp/env/jdbc/ejbNonJTSDataSource</non-jts-datasource>
                   <uses-external-transaction-controller>true</uses-external-transaction-controller>
                   <uses-external-connection-pool>true</uses-external-connection-pool>
              </login>
              <external-transaction-controller-class>oracle.toplink.jts.wls.WebLogicJTSExternalTransactionController</external-transaction-controller-class>
    This sets TopLink up with both data source access to the JTA and non-JTA connection pools. The full example also includes a domain where the data source is configured.
    When TopLink is using the connection pool of the server (external connection pooling) it will not pool its own connections. TopLink will request a connection from the pool each time one is required and release it back when done. This leaves the server responsible for the number of connections available and also for supporting database re-connection.
    Doug

  • [ps3mediaserver][pms-svn][AUR] No sound while using external subtitles

    Greetings everyone,
    I am experiencing some weird behavior while using External Subtitles, e.g. Playing an AVI file with PS3MediaServer works fine but playing the very same AVI file with external subtitles gives me the video with subtitles and no sound.
    My Server configuration is as follows :
    Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
    RAM :2048 Mo
    OS : Archlinux 2.6.37-ARCH #1 SMP PREEMPT Tue Mar 8 08:34:35 CET 2011 x86_64
    Target : Playstation 3 Slim, firmware 3.60
    Here are the various Sofware versions I use :
    PMS version I am using is PS3 Media Server 1.21.0 (built from AUR, PKG: pms-svn)
    Java version is Java: 1.6.0_22-Sun Microsystems Inc.
    MPlayer version is "MPlayer SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team" and so is "MEncoder SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team"
    TSMuxer version is "1.10.6-10"
    FFMpeg version is "FFmpeg version git-2611e52"
    The network configuration of the server is : 192.168.0.20, netmask 255.255.255.0 ; 100MBits Full Duplex (Wired)
    The network configuration of the Playstation 3 is : 192.168.0.15, netmask 255.255.255.0 ; Auto (Wired, no WiFi !)
    Both are linked on a 100MBits Switch : Playstation 3 <--> Switch 100 Mbits <--> PS3 Media Server
    My PMS.conf is :
    thumbnails = true
    language =
    prevents_sleep_mode = true
    folders = \/srv\/shares
    network_interface = eth0
    hide_empty_folders = true
    hide_media_library_folder = true
    hide_transcode_folder = true
    hide_enginenames = true
    enable_archive_browsing = false
    audio_thumbnails_method = 2
    mencoder_subfribidi = false
    mencoder_disablesubs = false
    autoloadsrt = true
    hostname =
    port = 5001
    thumbnail_seek_pos = 10
    nbcores = 4
    turbomode = true
    minimized = false
    hidevideosettings = false
    charsetencoding = 850
    engines = mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,mencoderwebvideo,mplayervideodump,mplayerwebaudio,ffmpegdvrmsremux
    avisynth_convertfps = true
    avisynth_script = #AviSynth script is now fully customisable
    transcode_block_multiple_connections = false
    tsmuxer_forcefps = true
    tsmuxer_preremux_pcm = false
    tsmuxer_preremux_ac3 = false
    audiochannels = 2
    audiobitrate = 384
    maximumbitrate = 0
    skiploopfilter = false
    mencoder_fontconfig = false
    mencoder_font =
    mencoder_forcefps = false
    mencoder_usepcm = false
    mencoder_intelligent_sync = true
    mencoder_decode =
    mencoder_encode = keyint=1:vqscale=1:vqmin=2
    mencoder_nooutofsync = true
    # mencoder_audiolangs = fre,eng
    # mencoder_sublangs = fre,off;fr,off;eng,off;en,off
    mencoder_audiosublangs = fre,off;fr,off;eng,off;en,off
    mencoder_ass_scale = 1.0
    mencoder_ass_margin = 10
    mencoder_ass_outline = 1
    mencoder_ass_shadow = 1
    mencoder_noass_scale = 3
    mencoder_noass_subpos = 2
    mencoder_noass_blur = 1
    mencoder_noass_outline = 1
    mencoder_subcp = cp1252
    mencoder_ass = false
    mencoder_yadif = false
    mencoder_scaler = false
    mencoder_scalex = 0
    mencoder_scaley = 0
    ffmpeg = -g 1 -qscale 1 -qmin 2
    # The next value has to be chosen very carefully: to low = possible stuttering if the network is congested, but
    # to high causes the java heap to be to small. Check the -Xmx-setting in /opt/pms/PMS.sh and raise it to 1024M
    # or higher if you see unexplainable Out Of Memory-errors in the debug.log
    maxvideobuffer = 400
    use_mplayer_for_video_thumbs = false
    # The next value sorts your media files. 0 (default) = A-Z while 1 = Z-A
    sort_method =
    usecache = true
    forcetranscode=
    Here are the tests I have run :
    MediaInfo output
    General
    Complete name : test without subs.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 350 MiB
    Duration : 42mn 24s
    Overall bit rate : 1 153 Kbps
    Writing application : transcode-1.0.6
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 42mn 24s
    Bit rate : 978 Kbps
    Width : 624 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.186
    Stream size : 296 MiB (85%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 42mn 23s
    Bit rate mode : Variable
    Bit rate : 160 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 49.4 MiB (14%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.58 video frame)
    Writing library : LAME3.90.
    Encoding settings : -m j -V 4 -q 2 -lowpass 18 --abr 160
    And its very same but with external subtitles :
    -rw-r--r-- 1 svc-pms svc-pms 77159 Oct 12 12:57 test with subs.srt
    -rw-rw-r-- 1 svc-pms svc-pms 366711578 Oct 23 10:50 test with subs.avi
    MediaInfo output, just to acknowledge it is the same file, but with a different name
    General
    Complete name : test with subs.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 350 MiB
    Duration : 42mn 24s
    Overall bit rate : 1 153 Kbps
    Writing application : transcode-1.0.6
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 42mn 24s
    Bit rate : 978 Kbps
    Width : 624 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.186
    Stream size : 296 MiB (85%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 42mn 23s
    Bit rate mode : Variable
    Bit rate : 160 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 49.4 MiB (14%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.58 video frame)
    Writing library : LAME3.90.
    Encoding settings : -m j -V 4 -q 2 -lowpass 18 --abr 160
    A- I tried playing the AVI file without external subtitles and it is working fine. 
    /var/log/pms.log :
    GUI environment not available
    Switching to console mode
    [main] TRACE 06:17:02.228 Starting PS3 Media Server 1.21.0
    [main] TRACE 06:17:02.237 by shagrath / 2008-2011
    [main] TRACE 06:17:02.237 http://ps3mediaserver.org
    [main] TRACE 06:17:02.237 http://ps3mediaserver.blogspot.com
    [main] TRACE 06:17:02.238 http://code.google.com/p/ps3mediaserver
    [main] TRACE 06:17:02.238
    [main] TRACE 06:17:02.238 Java: 1.6.0_22-Sun Microsystems Inc.
    [main] TRACE 06:17:02.238 OS: Linux amd64 2.6.37-ARCH
    [main] TRACE 06:17:02.238 Encoding: UTF-8
    [main] TRACE 06:17:02.238 PMS.conf: /filers/fvEXT3-01/_applications_/opt/pms/PMS.conf
    [main] TRACE 06:17:02.238 Working directory: /filers/fvEXT3-01/_applications_/opt/pms
    [main] TRACE 06:17:02.245 Temp folder: /tmp/ps3mediaserver
    [main] TRACE 06:17:02.652 Loading configuration file: FreeboxHD.conf
    [main] TRACE 06:17:02.662 Loading configuration file: XBMC.conf
    [main] TRACE 06:17:02.666 Loading configuration file: FreecomMusicPal.conf
    [main] TRACE 06:17:02.669 Loading configuration file: XBOX360.conf
    [main] TRACE 06:17:02.685 Loading configuration file: PS3.conf
    [main] TRACE 06:17:02.705 Loading configuration file: Streamium.conf
    [main] TRACE 06:17:02.708 Loading configuration file: WDTVLive.conf
    [main] TRACE 06:17:02.710 Loading configuration file: N900.conf
    [main] TRACE 06:17:02.712 Loading configuration file: Philips.conf
    [main] TRACE 06:17:02.715 Loading configuration file: Bravia4500.conf
    [main] TRACE 06:17:02.718 Loading configuration file: WMP.conf
    [main] TRACE 06:17:02.720 Loading configuration file: Samsung.conf
    [main] TRACE 06:17:02.722 Loading configuration file: Bravia5500.conf
    [main] TRACE 06:17:02.724 Loading configuration file: Realtek.conf
    [main] TRACE 06:17:02.726 Loading configuration file: Kuro.conf
    [main] TRACE 06:17:02.729 Loading configuration file: Android.conf
    [main] TRACE 06:17:02.731 Loading configuration file: BraviaEX.conf
    [main] TRACE 06:17:02.734 Loading configuration file: PopcornHour.conf
    [main] TRACE 06:17:02.736 Checking font cache... launching simple instance of MPlayer... You may have to wait 60 seconds!
    [main] TRACE 06:17:04.173 Done!
    [main] TRACE 06:17:04.210 Loading plugins from /filers/fvEXT3-01/_applications_/opt/pms/plugins
    [main] TRACE 06:17:04.227 No plugins found
    [main] TRACE 06:17:04.257 Registering transcoding engine FFmpeg Audio
    [main] TRACE 06:17:04.300 Registering transcoding engine MEncoder
    [main] TRACE 06:17:04.300 Registering transcoding engine MPlayer Audio
    [main] TRACE 06:17:04.301 Registering transcoding engine MEncoder Web
    [main] TRACE 06:17:04.301 Registering transcoding engine MPlayer Video Dump
    [main] TRACE 06:17:04.301 Registering transcoding engine MPlayer Web
    [main] TRACE 06:17:04.303 Registering transcoding engine TsMuxer
    [main] TRACE 06:17:04.303 Registering transcoding engine Audio High Fidelity
    [main] TRACE 06:17:04.303 Registering transcoding engine VLC Audio Streaming
    [main] TRACE 06:17:04.304 Registering transcoding engine VLC Video Streaming
    [main] TRACE 06:17:04.304 Registering transcoding engine Raws Thumbnailer
    [main] TRACE 06:17:04.401 Scanning network interface eth0 / eth0
    [main] TRACE 06:17:04.403 Using address /192.168.0.20 found on network interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.20;
    [main] TRACE 06:17:04.403 Created socket: /192.168.0.20:5001
    [main] TRACE 06:17:04.548 Using database located at : /filers/fvEXT3-01/_applications_/opt/pms/database
    [main] TRACE 06:17:04.930 A tiny media library admin interface is available at: http://192.168.0.20:5001/console/home
    [main] TRACE 06:17:05.001 Using the following UUID: d83f2e45-d8b8-3db7-b0ff-a6fc95ce046c
    [New I/O server worker #1-1] TRACE 06:17:08.787 Renderer Playstation 3 found on this address: /192.168.0.15
    [main] TRACE 06:17:09.902 It's ready! You should see the server appear on the XMB
    [New I/O server worker #1-1] TRACE 06:17:10.794 Renderer Playstation 3 has an estimated network speed of: 93 Mb/s
    /opt/pms/debug.log :
    available at : http://dpaste.org/774i/
    B - I tried playing the AVI file with external subtitles (SRT) and the file is playing with subtitles but no sound :-(
    /var/log/pms.log :
    GUI environment not available
    Switching to console mode
    [main] TRACE 06:20:24.967 Starting PS3 Media Server 1.21.0
    [main] TRACE 06:20:24.968 by shagrath / 2008-2011
    [main] TRACE 06:20:24.968 http://ps3mediaserver.org
    [main] TRACE 06:20:24.968 http://ps3mediaserver.blogspot.com
    [main] TRACE 06:20:24.968 http://code.google.com/p/ps3mediaserver
    [main] TRACE 06:20:24.969
    [main] TRACE 06:20:24.969 Java: 1.6.0_22-Sun Microsystems Inc.
    [main] TRACE 06:20:24.969 OS: Linux amd64 2.6.37-ARCH
    [main] TRACE 06:20:24.969 Encoding: UTF-8
    [main] TRACE 06:20:24.969 PMS.conf: /filers/fvEXT3-01/_applications_/opt/pms/PMS.conf
    [main] TRACE 06:20:24.969 Working directory: /filers/fvEXT3-01/_applications_/opt/pms
    [main] TRACE 06:20:24.973 Temp folder: /tmp/ps3mediaserver
    [main] TRACE 06:20:25.038 Loading configuration file: FreeboxHD.conf
    [main] TRACE 06:20:25.040 Loading configuration file: XBMC.conf
    [main] TRACE 06:20:25.041 Loading configuration file: FreecomMusicPal.conf
    [main] TRACE 06:20:25.044 Loading configuration file: XBOX360.conf
    [main] TRACE 06:20:25.047 Loading configuration file: PS3.conf
    [main] TRACE 06:20:25.055 Loading configuration file: Streamium.conf
    [main] TRACE 06:20:25.057 Loading configuration file: WDTVLive.conf
    [main] TRACE 06:20:25.059 Loading configuration file: N900.conf
    [main] TRACE 06:20:25.061 Loading configuration file: Philips.conf
    [main] TRACE 06:20:25.063 Loading configuration file: Bravia4500.conf
    [main] TRACE 06:20:25.065 Loading configuration file: WMP.conf
    [main] TRACE 06:20:25.068 Loading configuration file: Samsung.conf
    [main] TRACE 06:20:25.069 Loading configuration file: Bravia5500.conf
    [main] TRACE 06:20:25.071 Loading configuration file: Realtek.conf
    [main] TRACE 06:20:25.073 Loading configuration file: Kuro.conf
    [main] TRACE 06:20:25.076 Loading configuration file: Android.conf
    [main] TRACE 06:20:25.077 Loading configuration file: BraviaEX.conf
    [main] TRACE 06:20:25.080 Loading configuration file: PopcornHour.conf
    [main] TRACE 06:20:25.082 Checking font cache... launching simple instance of MPlayer... You may have to wait 60 seconds!
    [main] TRACE 06:20:25.144 Done!
    [main] TRACE 06:20:25.153 Loading plugins from /filers/fvEXT3-01/_applications_/opt/pms/plugins
    [main] TRACE 06:20:25.153 No plugins found
    [main] TRACE 06:20:25.160 Registering transcoding engine FFmpeg Audio
    [main] TRACE 06:20:25.166 Registering transcoding engine MEncoder
    [main] TRACE 06:20:25.167 Registering transcoding engine MPlayer Audio
    [main] TRACE 06:20:25.167 Registering transcoding engine MEncoder Web
    [main] TRACE 06:20:25.167 Registering transcoding engine MPlayer Video Dump
    [main] TRACE 06:20:25.168 Registering transcoding engine MPlayer Web
    [main] TRACE 06:20:25.169 Registering transcoding engine TsMuxer
    [main] TRACE 06:20:25.169 Registering transcoding engine Audio High Fidelity
    [main] TRACE 06:20:25.170 Registering transcoding engine VLC Audio Streaming
    [main] TRACE 06:20:25.170 Registering transcoding engine VLC Video Streaming
    [main] TRACE 06:20:25.170 Registering transcoding engine Raws Thumbnailer
    [main] TRACE 06:20:25.223 Scanning network interface eth0 / eth0
    [main] TRACE 06:20:25.224 Using address /192.168.0.20 found on network interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.20;
    [main] TRACE 06:20:25.224 Created socket: /192.168.0.20:5001
    [main] TRACE 06:20:25.279 Using database located at : /filers/fvEXT3-01/_applications_/opt/pms/database
    [main] TRACE 06:20:26.010 A tiny media library admin interface is available at: http://192.168.0.20:5001/console/home
    [main] TRACE 06:20:26.017 Using the following UUID: d83f2e45-d8b8-3db7-b0ff-a6fc95ce046c
    [New I/O server worker #1-1] TRACE 06:20:28.867 Renderer Playstation 3 found on this address: /192.168.0.15
    [New I/O server worker #1-1] TRACE 06:20:30.872 Renderer Playstation 3 has an estimated network speed of: 93 Mb/s
    [main] TRACE 06:20:32.488 It's ready! You should see the server appear on the XMB
    [New I/O server worker #1-6] TRACE 06:20:56.875 Starting transcode/remux of test with subs.avi
    So, obviously here, the only thing which changes from before was that, this time, the PS3 Media Server did a transcode/remux of the file (for the subtitles to be streamed)
    /opt/pms/debug.log :
    available at : http://dpaste.org/6XMI/
    I have pasted the complete debug.log but I believe the problem is around this :
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Opened request handler on socket /192.168.0.15:64494 // Playstation 3
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Request: HTTP/1.0 : HEAD : get/0$0$4$0/test+with+subs.avi
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Accept-Encoding: identity
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Cache-Control: no-cache
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Connection: close
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Host: 192.168.0.20:5001
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: User-Agent: PLAYSTATION 3
    [New I/O server worker #1-6] INFO 06:20:56.874 HTTP: get/0$0$4$0/test+with+subs.avi / 0-0
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Searching for objectId: 0$0$4$0 with children option: false
    [New I/O server worker #1-6] DEBUG 06:20:56.875 Asked stream chunk [0-0] timeseek: 0.0 of test with subs.avi and player MEncoder
    [New I/O server worker #1-6] TRACE 06:20:56.875 Starting transcode/remux of test with subs.avi
    [New I/O server worker #1-6] DEBUG 06:20:56.875 Looking for an audio track with lang: eng
    [New I/O server worker #1-6] DEBUG 06:20:56.883 Looking for an audio track with lang: fre
    [New I/O server worker #1-6] DEBUG 06:20:56.884 Looking for an audio track with lang: jpn
    [New I/O server worker #1-6] DEBUG 06:20:56.886 Looking for an audio track with lang: ger
    [New I/O server worker #1-6] DEBUG 06:20:56.887 Looking for an audio track with lang: und
    [New I/O server worker #1-6] DEBUG 06:20:56.888 Matched audio track: Audio: MP3 / lang: und / ID: 1
    [New I/O server worker #1-6] DEBUG 06:20:56.888 Search a match for: und with fre and off
    [New I/O server worker #1-6] DEBUG 06:20:56.889 Search a match for: und with fr and off
    [New I/O server worker #1-6] DEBUG 06:20:56.889 Search a match for: und with eng and off
    [New I/O server worker #1-6] DEBUG 06:20:56.890 Search a match for: und with en and off
    [New I/O server worker #1-6] DEBUG 06:20:56.891 Found subtitles track: Sub: SubRip / lang: und / ID: 100 / FILE: /srv/shares/test_with_sub/test with subs.srt
    [New I/O server worker #1-6] DEBUG 06:20:56.891 Found external file: /srv/shares/test_with_sub/test with subs.srt
    [New I/O server worker #1-6] DEBUG 06:20:56.892 channels=2
    [mkfifo] INFO 06:20:56.979 Starting mkfifo --mode=777 /tmp/ps3mediaserver/mencoder1300252856978
    [mkfifo] INFO 06:20:56.995 Unix process ID (mkfifo): 4390
    [mencoder] INFO 06:20:57.029 Starting mencoder -ss 0 -quiet /srv/shares/test_with_sub/test with subs.avi -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=256:threads=4:keyint=1:vqscale=1:vqmin=2 -spuaa 3 -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -quiet -quiet -ofps 24000/1001 -sub /srv/shares/test_with_sub/test with subs.srt -utf8 -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/ps3mediaserver/mencoder1300252856978
    [mencoder] INFO 06:20:57.048 Reading pipe: /tmp/ps3mediaserver/mencoder1300252856978
    [mencoder] DEBUG 06:20:57.049 Opening file /tmp/ps3mediaserver/mencoder1300252856978 for reading...
    [New I/O server worker #1-6] DEBUG 06:20:57.129 Sleeping for 6000 milliseconds
    [mencoder] INFO 06:20:57.395 Attaching thread: mencoder
    [Timer-1] DEBUG 06:20:57.396 Buffered Space: 0 bytes / inputs: 0
    [mencoder] INFO 06:20:57.396 Unix process ID (mencoder): 4395
    [Thread-30] DEBUG 06:20:57.396 MEncoder SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team
    [Thread-30] DEBUG 06:20:57.397 161 audio & 351 video codecs
    [Thread-30] DEBUG 06:20:57.397 success: format: 0 data: 0x0 - 0x15db931a
    [Thread-30] DEBUG 06:20:57.397 AVI file format detected.
    [Thread-30] DEBUG 06:20:57.397 [aviheader] Video stream found, -vid 0
    [Thread-30] DEBUG 06:20:57.397 [aviheader] Audio stream found, -aid 1
    [Thread-30] DEBUG 06:20:57.397 VIDEO: [XVID] 624x352 24bpp 23.976 fps 977.5 kbps (119.3 kbyte/s)
    [Thread-30] DEBUG 06:20:57.397 [V] filefmt:3 fourcc:0x44495658 size:624x352 fps:23.976 ftime:=0.0417
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    [Thread-30] DEBUG 06:20:57.397 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
    [Thread-30] DEBUG 06:20:57.397 Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 PACKET SIZE: 2048 bytes, deltascr: 884
    [Thread-30] DEBUG 06:20:57.397 Opening video filter: [expand osd=1]
    [Thread-30] DEBUG 06:20:57.397 Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    [Thread-30] DEBUG 06:20:57.403 Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    [Thread-30] DEBUG 06:20:57.403 ==========================================================================
    [Thread-27] DEBUG 06:20:57.403 [ac3 @ 0xd37ca0]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
    [Thread-27] DEBUG 06:20:57.437 Limiting audio preload to 0.4s.
    [Thread-27] DEBUG 06:20:57.437 Increasing audio density to 4.
    [Thread-30] DEBUG 06:20:57.463 Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
    [Thread-30] DEBUG 06:20:57.463 videocodec: libavcodec (624x352 fourcc=3267706d [mpg2])
    [Thread-30] DEBUG 06:20:57.463 [VE_LAVC] Using constant qscale = 1.000000 (VBR).
    [Thread-30] DEBUG 06:20:57.617 Writing header...
    [Timer-1] DEBUG 06:20:59.396 Buffered Space: 26595328 bytes / inputs: 0
    [Thread-28] DEBUG 06:21:01.227 freeMemory: 25791584
    [Thread-28] DEBUG 06:21:01.227 totalMemory: 81592320
    [Thread-28] DEBUG 06:21:01.228 maxMemory: 715849728
    [Thread-28] DEBUG 06:21:01.228 Extending buffer to 419430400
    [Timer-1] DEBUG 06:21:01.397 Buffered Space: 49999872 bytes / inputs: 0
    [Thread-28] DEBUG 06:21:01.726 Done extending
    Thing is, I do not have the same issue with files that are not (yet) MP3-Audio powered, for instance :
    General
    Complete name : /srv/shares/media03/directories/toto.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    Format profile : OpenDML
    Format settings : rec
    File size : 1.59 GiB
    Duration : 1h 46mn
    Overall bit rate : 2 140 Kbps
    Writing application : AVI-Mux GUI 1.17.8.3, Feb 16 201019:42:50
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : Yes
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 1h 46mn
    Bit rate : 1 620 Kbps
    Width : 1 280 pixels
    Height : 544 pixels
    Display aspect ratio : 2.35:1
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.097
    Stream size : 1.20 GiB (76%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio #1
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 46mn
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 292 MiB (18%)
    Alignment : Aligned on interleaves
    Interleave, duration : 64 ms (1.53 video frames)
    Interleave, preload duration : 192 ms
    Title : UW 6ch audio
    Audio #2
    ID : 2
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 46mn
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 97.4 MiB (6%)
    Alignment : Aligned on interleaves
    Interleave, duration : 64 ms (1.53 video frames)
    Interleave, preload duration : 192 ms
    Title : UW 2ch audio
    This file is well played by PS3 Media Server.
    I am quite confused with this issue ; did anyone experienced the same thing ?
    Best Regards,

    Having the same problem. I'm watching all of my movies without subs now, because transcoding kills the 5.1 audio (no problems with 2 channel audio). A workaround is posted in the comments of the pms-svn package.
    I will post the URL to this thread to another thread with probably the same problem (mplayer/x264). I have not yet seen a real solution to this, and I'm not really familiar with the bugzilla's from both projects.
    Other threads with similar problems:
    https://bbs.archlinux.org/viewtopic.php?id=112219 (devede also uses mplayer and x264)
    https://bugs.archlinux.org/task/22654 (related bug in Archlinux)
    http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1865 (related bug in mplayer)
    https://bbs.archlinux.org/viewtopic.php?id=115165 (this thread)
    Another workaround might be to trick pms into using ffmpeg or vlc rather than mencoder. I'm also streaming to a ps3 - I didn't try it, but it could be as easy as temporarily changing settings inside the profile for a ps3-client.
    Last edited by zenlord (2011-03-22 16:15:38)

  • After upgrading to Lion, the Finder will increase the virtual memory while using external HD

    after upgrading to Lion, the Finder will increase the "virtual memory size" while using external HD. I check it using Activity Monitor and found that "Finder" wll increase the "Virtual Memory Size" and "Private Memory Size". and then after a while. the system told me my HD is full and hanging there.
    My External HD is 1TB. and I have installed new version Paragon NTFS for Mac V.9.01. I am not sure it is related or not.
    but I attached my external HD. the "Finder" will start to increase the "Virtual Memory Size".
    please help out this case and solve this issue.
    thank you !!!

    The one has nothing to do with the other. Virtual memory size and Private memory size are used by developers to analyze their software. it has nothing to do with anything related to the user.

  • I have a 17" Macbook pro with flickering red and cyan(blue) lines across the screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem.

    I purchased my Macbook (17") through a certified apple tecnition in August 2012, it was refurbished and the motherboard was completely replaced. I do a lot of photo editing, but I have been unable to do so because of the red vibrating lines that interrupt my screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem. I brought the computer back to the technition I purchased it from and he said that it was a problem with my fan, so I have two new fans but the issue is still occuring. He says he doesnt know whats wrong. Does anyone have any information on this issue?
    Here is an image of the issue
    http://www.flickr.com/photos/67839707@N08/8884847081/

    I recommend having your Mac serviced by someone competent. A force sufficient to "blow apart" the fans was clearly excessive and may have damaged the display cable, as well as any number of other problems.
    Dust is properly cleaned with a vacuum, preferably one designed for computer service, and they are not cheap.
    Compressed air should never be used. It just blows dust everywhere, often into places where it can no longer be removed.

  • Problem with Progress DB while using to connect using JDBC Adapter

    Hi,
      I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
    Error during database connection to the database URL  jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db using the  JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db "
    I tried using the following all URLs,
    1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.       
    2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db     
    3.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.                                      
    4.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db.                                  
    Can anyone please help me out in solving this issue.
    May be the cause for this is :
    1) The Wrong URL  format
    2) CLASSPATH is not setted properly..
    Can you look more into this stuff.
    Thanks,
    Soorya.

    Hi,
    To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
    Just check this note 831162.
    Also, check this PDF to install Drivers in XI,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10

  • Turning off internal monitor while using external one

    Hello, Apple Support Communities.
    Before OSX Lion, anyone could turn off internal monitor while using external one, by waking up computer with lid closed, and the internal monitor will be kept turned off. But now, -I wonder what made Apple to think this way- Lion will turn on the internal one back on.
    I don't care about all sorts of reasons why should I or shouldn't I desire to this. I just want it, because I have nice big monitor, which is apparently bigger than my Macbook Pro. Besides using double monitor will just exhaust my poor laptop. -mine is bit old-
    I found ridicoulus answer from community, saying I should try fridge magnet. Sorry, but I don't want risk my whole computer, especially my HDD from getting magnetic damage. It happened so many times, -thanks my little bro- so now I am sick of magnet. I don't think Apple will cover this AKA magnetic damage anyway. -It wouldn't just damage, just erase your HDD-
    So.... Any helpful insights? Thanks.

    Nevermind. I found solution. Though it cost me 24 bucks.
    Now Apple is seriously making me to consider to roll back to sucking Windows.
    Thanks Jobs!

  • Can we define cursors from in procedure while using .procedure file?

    Hi Team,
    Can we define cursors from in procedure while using .procedure file?
    I have a catalog procedure in which am using cursors and it is working fine. But while trying to create the same procedure using .procedure , the validation is failing with "An error occurred while parsing your procedure".
    Request your suggestions.
    Regards,
    Krishna Tangudu

    Hi Krishna,
    I also tried to find the validation for procedure and failed. What was on my mind when I posted earlier was related to Window -> Properties -> SAP HANA -> Modeler -> Validation Rules but this is not the same for procedure.
    Also the validation error seems to not being raised by Studio but the server, so it's not a frontend validation anyway.
    Trying to replicate your error I create two procedures here and both worked fine with cursor.
    The behavior you found was the same I found, the .procedure goes to repository and _SYS_BIC after activation and .hdbprocedure goes to catalog only.
    As far as I understood as you are moving from catalog (manually) and it worked on catalog (.hdbprocedure), I could check the declaration of table types of header as it's the main difference.
    Despite this investigation of declaration, you can try create it on modeler direct and see what you found on .procedure created. This can speed up investigation.
    Regards, Fernando Da Rós
    BTW: I'm faced an very strange behavior that each caracter I type on .procedure or .hdbprocedure freezes studio by around 15 seconds ?!?!?!?! (studio rev73)

  • Problem in retriving varray when using weblogic connection pool

    Hi,
         I had similar problem when we I am using the weblogic connection pool. I had similar setup i.e weblogic 5.1 servicepack9 and oracle 8.1.7.
    I cofigarud the weblogic connection pool using Oracle thin driver.
    But if I am using with oracle thin driver directly I am able to retrive.
    If any one know how to retrive varray from procedure using weblogic connection pool please send me it.
    Thanx.
    Bye,
    Satya

    http://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html#setAutoCommit(boolean)

  • SQL0904N and SQL30081N while using DB2-Connect driver

    Scenario:
    Application program : Java on Unix
    Database : DB2 on Mainframe
    Database driver : IBM's DB2 connect
    Usage : A number of connections are taken by the program and are used as long as the program is alive
    (Life time of the program is variable. It can be as long as many days -- in a sense the program acts like a daemon process that runs as long it is not stopped).
    Scenario:
    -To one of the table using a load utility, such as BMC, data is loaded
    -Database goes to copy-pending status
    -Database is started by using the following command : "START DATABASE(database name) SPACENAM(table space name) ACCESS(FORCE)"
    Doubts:
    1. What happens to the connections that the program has opened to the database?
    2. Does the database relinquish all the resources (like the sockets it would have opened for the communication with the driver) held by it during restarting?
    (at least before restarting, it is evident that no query on the table in question is possible. A typical SQL0904N, which is non-availability of resources, is thrown)
    3. Can the above scenario cause a SQL30081N, which is resetting of connection by peer i.e. database in this case?

    Yes, there is a high probability for such things, you may want to consider using a connection pool instead of opening 2 connections once at the start of the program and using them all for days.
    Have a look at the following link to get an idea on how to implement a simple connection pool.
    http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/conpool.html

  • External Connection Pool - No Available Connections

    I am using Toplink 9.0.4 in an application deployed on WebLogic 7. Toplink is configured to use an external connection pool.
    Under heavy load we sometimes exhaust the connection pool. When this occurs we start to get failures when trying to acquire connections.
    It appears that when Toplink tries to obtain a connection from the pool and none are available the attempt immediately fails with an exception. What we would prefer to happen is for the thread to block and wait for a connection to become available.
    Do you know of any way to produce this behavior? Is there a way to configure Toplink so this occurs?
    Alternatively is there a practical way to produce this behavior by implementing logic in a ServerSession exception handler? We have implemented an exception handler that handles dropped and stale database connections, but I'm not sure if this is the appropriate place to handle a failure retrieving a connection from the external pool.
    Any suggestions are appreciated.

    Well I have tried but I am unable to write an effective exception handler that can recover from an exception retrieving a connection from an external pool. I wrote the following handler and attached it to the ServerSession.
         public Object handleException(RuntimeException exception) throws DatabaseException{
              if(exception instanceof DatabaseException){
                   DatabaseException dbex = (DatabaseException)exception;
                   String exceptionMessage = dbex.getMessage();
                   if(exceptionMessage != null && exceptionMessage.indexOf("No available connections in pool") >= 0){
                        try{
                             Thread.sleep(5000);                    
                        }catch(InterruptedException e){}
                        oracle.toplink.publicinterface.Session session = null;
                        session = serverSession.acquireClientSession();
                        dbex.setSession(session);
                        if(session != null){
                             DatabaseQuery query = dbex.getQuery();
                             if(query != null){
                                  return session.executeQuery(query);
                             }else{
                                  return null;
                        throw exception;
                   }else{
                        throw exception;
              }else{
                   throw exception;
    It works sometimes but other times I get strange errors when executing the query. I know the mappings are good, the queries succeed under normal circumstances. The following error is commmon:
    Exception Description: The parameter name [UNIQUE_ID] in the query's selection criteria does not match any parameter name defined in the query.
    The other problem I have is the recursive nature of the exception handling. If calling ServerSession.acquireClientSession() in the exception handler causes an exception, I end up in another exception handler. It's not clear which instance should execute and return the query in this case.
    Any suggestions or examples of exception handlers for this situation are appreciated.

  • Error While Creating Informix Connection Pool

    Hi,
    I am trying to port an application from Weblogic 6.1 to Weblogic 8.1. The Application accesses Informix database. I used the following driver, url and properties while connecting to this database using Weblogic 6.1
    url:->jdbc:weblogic:informix4:snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    port=22000
    user=snssadmn
    password=snssadmn
    server=10.115.26.40
    The above used to work fine with weblogic 6.1
    With Weblogic 8.1, I am using the following properties
    url :-> jdbc:bea:informix://10.115.26.40:22000;informixServer=10.115.26.40;databaseName=snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    informixServer=10.115.26.40
    user=snssadmn
    portNumber=22000
    databaseName=snss_live
    serverName=10.115.26.40
    However using these properties I am getting the following error while deploying the Connection Pool to the Managed Server
    <Dec 29, 2004 12:26:53 PM EST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "Btv_Vms_Pool": [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES.>
    <Dec 29, 2004 12:26:54 PM EST> <Error> <JDBC> <BEA-001150> <Connection Pool "Btv_Vms_Pool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES..>
    Any idea as to why this is happening
    Regards
    Nitin Nair

    Hi. I suspect that the databaseName property is causing the problem in
    8.1. Remove it and see if that works. Also, try running:
    java utils.dbping, and giving it the properties it asks for, for your
    Informix connection. Once it succeeds in making a connection, it will
    print out the URL and properties it used. Then define the pool with
    those (and only those) properties and URL.
    Joe
    Nitin Nair wrote:
    Hi,
    I am trying to port an application from Weblogic 6.1 to Weblogic 8.1. The Application accesses Informix database. I used the following driver, url and properties while connecting to this database using Weblogic 6.1
    url:->jdbc:weblogic:informix4:snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    port=22000
    user=snssadmn
    password=snssadmn
    server=10.115.26.40
    The above used to work fine with weblogic 6.1
    With Weblogic 8.1, I am using the following properties
    url :-> jdbc:bea:informix://10.115.26.40:22000;informixServer=10.115.26.40;databaseName=snss_live
    Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
    Properties :->
    informixServer=10.115.26.40
    user=snssadmn
    portNumber=22000
    databaseName=snss_live
    serverName=10.115.26.40
    However using these properties I am getting the following error while deploying the Connection Pool to the Managed Server
    <Dec 29, 2004 12:26:53 PM EST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "Btv_Vms_Pool": [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES.>
    <Dec 29, 2004 12:26:54 PM EST> <Error> <JDBC> <BEA-001150> <Connection Pool "Btv_Vms_Pool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES..>
    Any idea as to why this is happening
    Regards
    Nitin Nair

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • Error using mySQL connection Pool

    I see the following error when my application uses the connection pool - can anyone explain this ?
    INFO: CORE3282: stdout: =======================>ERROR :com.sun.enterprise.repository.J2EEResourceException
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
    INFO: CORE3282: stdout: java.lang.NoSuchMethodException: setdataSourceName

    Hi,
    You have used dataSourceName property while creating a connection pool.This property is not required to be set while creating a connection pool for MySql
    Use the following properties:
    <property name="serverName" value="<name of server>"
    <property name="port" value="<port number>"
    <property name="DatabaseName" value="<your db name>"
    <property name="User" value="<user name>"
    <property name="Password" value="<passwd>"
    Get back in case of any issues

Maybe you are looking for

  • IPhone is not recognized by iTunes

    iPhone 5, had nothing but problems with this Phone, something i never had when i had a wackberry. Firstly the lock button broke, now the phone wont sync and crashes every couple hours unexplainably which is excellent when im typing an email. The 3rd

  • Route sound output to microphone jack?

    Hi, I have a 5.1 Soundsystem I want to use. My Notebook has 2 headphone jacks and one microphone jack. Is it possible to route the sound so that micropone jack outputs front/center headphone1 gives front and headphone 2 gives rear with ALSA? I alread

  • How can i stop attached photos from being in the email body?

    I try to send pics often to places for printing and icloud puts them into the body of the email instead of as an attachment. THis can be quite annoying. Advice pleas,   Thank Carol

  • Urgent ! Need to know a FM or a BAPI.

    Hello Peers, I have an urgent requirement where I need to get the <b>***.ATP Quantity</b>  which you can find in CO06 or CO09 T.Code  & display in the Report. I tried with FM : MD_STOCK_REQUIREMENTS_LIST_API  which will return  material stock details

  • Received an apple id password reset email the night ipod classic was stolen. Coincidence?

    My iPod classic was stolen from my vehicle. The same evening I received an apple id password reset email. Is it possible that the thief initiated the email with just the iPod and maybe my name (as it is on the vehicle registration in my car). There i