How to return jolt connection back to the joltpool?

hi
I used following codes to get joltconnection pool:
SessionPool sessionPool = sessionPoolManager.getSessionPool(poolName);
     DataSet request = new DataSet(requestString.length()*2);
     request.setValue("STRING", requestString);
     Result result = sessionPool.call(serviceName, request, null);
     return (String) result.getValue("STRING", null);
my question is : how to return jolt connection back to the joltpool? do I need
to do that?
when I used jdbc connection pool, I used conn.close() to return
to jdbc connection pool. Is there any method like "close()" in
jdbc connection?
Wei Jiang

Hi,
The below is the simple source code using Pool which it is extracted from
BEA's support web site.
and it is helpful.
The Pool doesn't need to return jolt connection back to the joltpool.
because it is done by Pool Manager automatically.
import bea.jolt.*;
import bea.jolt.pool.*;
public class Pho2 {
public static void main(String argv[])
try
String[] adresses = new String[1];
adresses[0] = "//aglaia:7040";
// creation du manager et du pool par defaut
SessionPoolManager sessionPoolManager = new SessionPoolManager();
int i = sessionPoolManager.createSessionPool(adresses, null, 1, 3, new
UserInfo(), null);
SessionPool sessionPool = sessionPoolManager.getSessionPool(null);
DataSet dataset = new DataSet();
Result result=null;
dataset.setValue("rhaine","coucou");
try
result = sessionPool.call("TOUPPER", dataset, null);
catch(Exception Ex)
System.out.println("session");
Ex.printStackTrace();
System.out.println("dataset="+dataset);
System.out.println("result ="+result);
System.out.println("ApplicationCode="+(new
Integer(result.getApplicationCode())).toString());
catch(Exception Ex)
System.out.println(Ex.getMessage());
Hope this helps.
Mr, Ko.
"wei jiang" <[email protected]> wrote in message
news:[email protected]..
>
hi
I used following codes to get joltconnection pool:
SessionPool sessionPool = sessionPoolManager.getSessionPool(poolName);
DataSet request = new DataSet(requestString.length()*2);
request.setValue("STRING", requestString);
Result result = sessionPool.call(serviceName, request, null);
return (String) result.getValue("STRING", null);
my question is : how to return jolt connection back to the joltpool? do Ineed
to do that?
when I used jdbc connection pool, I used conn.close() to return
to jdbc connection pool. Is there any method like "close()" in
jdbc connection?
Wei Jiang

Similar Messages

  • The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password.  I have an HP laptop

    The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password? I have an HP laptop. 

    Chances are, there was a signficant power surge or voltage fluctuation just before the power went out. This type of thing can cause the AirPort Extreme to reset back to default settings.
    If this occurs, your only option is re-configure the device again, just as you did originally.
    In order to improve your chances this next time this happens, (especially if you live in an area where thunderstorms are severe), a good quality surge suppressor / voltage limiting power strip will really help, and may save you the entire device or a nearby computer next time something like this occurs.

  • I found a iPad Mini and would like to return it to the original owner.  I believe it was previously stolen and it cannot be activated.  Any idea how I can get it back to the original owner?

    I found a iPad Mini and would like to return it to the original owner.  I believe it was previously stolen and it cannot be activated.  Any idea how I can get it back to the original owner?

    I am very disappointed (yet I somewhat understand) Apple and how they completely have no interest in helping return lost items.  I don't believe the person who traded me this was from around here so I don't even know where to begin.  I seen on ebay you can sell them for parts but I don't really believe in doing that and would like to at least try my best to get it back to whom it belongs to.  I will be contacting my local police department regarding this but I don't think they will be able to do much if it was stolen from somewhere else.  However if nobody claims it in 90 days and I have a letter from my local police station saying I am the new owner, will that be enough for apple to unhold their policy of proving the item belongs to you?

  • I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • How to get deleted photos back in the trash can?

    I tried to dele all the photos I've deleted from iPhoto by cmd+delete all the photos in the iPhoto trash can, but that only made all the photos reappear in iPhoto.
    How do I get the deleted photos back in the trash can?
    I discovered this the next time I turned on my mac, so I couldn't just "go back".
    I really don't wanna go trough ALL of my pictures and delete the thousands of pictures I've deleted over the past three years..
    I now know how to delete dem properly, but not how to get them all back in the trash can. Please help me!
    Ida

    There's no way to do that. If you try and trash thousands of photos at one go you'll trash the Library - which is what sounds like you've done.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • My e-mail has quit updating.  Anybody know why or how to get it started back?  The result is that I dont get my e-mails on the phone.

    My e-mail has quit updating. Anybody know why or how to get it started back?  The result is that I can not get e-mails on my phone.

    Thank you for the info re. the main menu. Your answer I used worked; however, the menu bar all the way across is solid black. The only way I can find out the names on the menu is to point the cursor from left to right over the black bar to find "file" "edit" tools", etc. What do I need to do to get these menu titles to be seen?
    As regarding the GMail --the menu bar used to have an envelope symbol which was white and outlined in red. That disappeared. I googled "mail.google.com" to try to get back my email. This didn't work. I then tried to get a different email address and password--after 8-19 attempts, this never worked. My other email (sbcglobal.net) has never returned. So I don't know where that went or how to get it back

  • My screen on the touch is frozen. the screen shows a usb cable and the itunes logo above it. How can I get it back to the main screen?

    My screen on the touch is frozen. the screen shows a usb cable and the itunes logo above it. How can I get it back to the main screen

    The screen is telling you to connect the iPod to a computer with iTunes via the USB cable.  iTunes should open and give you instructions.  If not, open iTunes and retore the iPod via iTunes.

  • The list of open web pages just flipped from right to left. How do I get it back on the right? Thankyou.

    The list of open web pages, which normally sits bottom right on my screen, flipped to the left. How can I move it back to the right?
    I clicked Alt + tab and saw 'Deplacer' (Reposition - I'm in France). Then the cursor became a thing like a crossroads and I clicked where I wanted to put the list of open pages but nothing happened.

    You may have placed the bookmarks icon on the Navigation Toolbar to open the bookmarks in the sidebar instead of the bookmarks menu button that opens a drop down list.<br />
    There are two icons available for opening or accessing the bookmarks that both have a star.<br />
    The icon with the drop marker opens the drop down list with the bookmarks (Bookmarks Menu button).<br />
    The other, without the star, opens the bookmarks in the sidebar, just like the Ctrl+B shortcut or View > Sidebar > Bookmarks
    See:
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing
    *http://kb.mozillazine.org/Toolbar_customization

  • My mail subfolders are missing from the viewing pane, but available from inbox drop down menu. How do I get them back in the viewpane?

    After a restart, all of my mail subfolders are gone from the side view pane. I can pull them down individually from the 'inbox' drop down menu. How do I get them back into the sidebar so I can sort mail out of the inbox?

    No anti virus software running as far as I am aware, as in I didn't launch any before reinstating the search email function.
    I was running a folder repair function on my inbox (which seemed to complete successfully for the emails in the inbox) when I noticed the majority of the mail folders had disappeared.

  • My dock disappears when I am using Word. How can I get it back on the screen?

    My dock disappears when I am using Word.  How can I get it back on the screen?  Thanks very much.
    Bill

    You may have blundered into "Full Screen" mode, an abomination ported from iOS, the iPhone Operating System, land of tiny screens and one-at-a-time Applications.
    Try clicking the double-arrows in the extreme upper right of the MenuBar or Window.

  • I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount

    I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount?

    In Outlook, export your contacts to a .pst or .csv file. Keep the exported file
    How to export contacts from Outlook for Windows.

  • Had to buy a new PC as the hard disk of the old one broke and lost all purchases, but still have them on the iPhone. How can I sync them back to the new PC in iTunes?

    Had to buy a new PC as the hard disk of the old one broke and lost all purchases, but still have them on the iPhone. How can I sync them back to the new PC in iTunes without losing them?

    You should be able to:
    Backup the device to the new installation
    Transfer your purchases into a newly authorized library
    Recover any other media using third party tools as suggested in this post from forum regular Zevoneer
    Restore the device from the backup
    This process should switch the association of the device to the new library, preserving the data and settings in your apps.
    May also be prudent to attempt a backup to iCloud directly from the device before you start... Settings > iCloud > Storage & Backup > iCloud Backup > On. It won't save any media but it would preserve the general account settings and documents in case anything goes wrong while you are trying to extract your other data.
    When you get it all fixed, make a backup!
    tt2

  • Backed up my songs from itunes onto a hard drive and now my playlists in itunes are gone! How do I retrieve them back to the way it was before?

    Help! My husband backed up my songs from itunes onto a hard drive and now my playlists in itunes are gone from my library! How do I retrieve them back to the way it was before?

    Hello Nataroo007,
    Thank you for using Apple Support Communities!
    There is a file in the iTunes library folder that contains your playlist information is the iTunes Library.xml file.
    Try and find the file, usually located in one of these locations depending on your OS:
    Operating System
    Default location of iTunes Folder
    Mac OS X
    /Users/[your username]/Music
    Microsoft Windows XP
    \Documents and Settings\[your username]\My Documents\My Music\
    Microsoft Windows Vista
    \Users\[your username]\Music\
    Microsoft Windows 7
    \Users\[your username]\My Music\
    Then you can import this file to your iTunes Library like this:
    1. Choose File > Library > Import Playlist.
    2. Navigate to the "iTunes Library.xml" file
    3. Windows users: Click Open.
    If your Podcasts list in iTunes is empty after following these steps, learn how to add them back into iTunes.
    Note: information in this post comes from article:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/HT1451
    Cheers,
    Sterling

  • I upgraded from 4S to Iphone 5 but i lost all my messages how can i get them back on the new device ?i did back up using the icloud ?

    i upgraded from 4S to Iphone 5 but i lost all my messages how can i get them back on the new device ?i did back up using the icloud ?
    having said that i have an i pad as well and when i backed up i got the contacts which are on the i pad on my new iphone 5 not the ones who were on
    i phone 4s ...
    any one can advise me please what to do to get my stuff from iphone 4s to iphone 5 ,rather than the stuff from my ipad ?

    If you made a backup using icloud, then restore your 5 to that backup.  http://support.apple.com/kb/HT4859

  • I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    Click on the Menu bar  and go to View .  Or, hover over where the Menu bar shiuld be and click on it when it appears.  Try quitting and relaunching Finder.

Maybe you are looking for

  • DVD drive does not read SOME discs

    Hello there, My DVD drive had been working fine for the last 2 years, but now it sometimes simply won't read some film DVDs. The problem is not related to the DVD area thing. What happens is that I put the disc in the drive, it spends a long time spi

  • Which Mp3 is the one for me?please he

    Ok, well heres the deal. I have had mp3's for many years now, had two Creative nomad jukebox Zen NX and was not very impressed with them and a Zen Touch, still not really much of a benifit. I'm looking for a 25/30G mp3 player, no video's, just music,

  • Adobe Download Assistant won't install

    I've tried downloading the Adobe Download Assistant but I get the following message, "The Installer File is Damaged please get a new one from the author". I've tried with Safari, Firefox and Chrome, cleared the cache each time but no luck. I'm attemp

  • Standard programs for smartforms

    Hi experts    How can we find standard programs for smart forms

  • How to import photos from iPhoto to Lightroom?

    Hey Guys, How do I export photos from iPhoto to Lightroom? I deleted them from the SD Card so I cannot import them directly to Lightroom. Im using a mac so its all very confusing for me. Please help me., Hey Guys, How do I export photos from iPhoto t