How to set min & max connections for  MSSQLconnection pool

Hi,
I want to set minconnection, maxconnection, idletimeout initial limit for the pool
I have got a MSSQL database connection using following java code.
// MSSQL DbConnection Code
import java.sql.*;
public class MsSqlDataSource
public static void main(String arr[])
Connection con = null;
ResultSet rs = null;
try{
com.microsoft.sqlserver.jdbc.SQLServerDataSource ds = new com.microsoft.sqlserver.jdbc.SQLServerDataSource();
ds.setServerName("10.50.50.51");
ds.setPortNumber(1711);
ds.setDatabaseName("test");
ds.setUser("starhome");
ds.setPassword("starhome");
con = ds.getConnection();
}catch(Exception e){}
}In oracle i have passed min and max number of connection properties through setConnectionCacheProperties method.
//Connection Pooling using Oracle Data Source:
m_connSource = new OracleDataSource();
m_connSource.setDriverType("thin");
m_connSource.setServerName(m_host);
m_connSource.setNetworkProtocol("tcp");
m_connSource.setDatabaseName(m_db);
m_connSource.setPortNumber(m_port);
m_connSource.setUser(m_user);
m_connSource.setPassword(m_password);
// Enable caching. m_connSource.setConnectionCachingEnabled(true);
java.util.Properties prop = new java.util.Properties();
prop.setProperty("MinLimit", m_minConnections);
prop.setProperty("MaxLimit", m_maxConnections);
prop.setProperty("InitialLimit", m_initialConnections);
prop.setProperty("InactivityTimeout", m_inactivityTimeout);
prop.setProperty("AbandonedConnectionTimeout", m_abandonedTimeout);
prop.setProperty("ConnectionWaitTimeout", m_connWaitTimeout);
m_connSource.setConnectionCacheProperties(prop);I dont know how to pass min and max number of connection properties for SQLServerDataSource. Is there any method available to pass min and max number of connection properties for SQLServerDataSource.
Iam using Tomcat. I found one way to set min and max connections for pool by doing changes in context.xml and web.xml using below url http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html
I dont want to touch tomcat configuration files. I need to set connection pooling properties which is independent of application server.
Please anybody give solution for this?
Thanks,
Prisha

Hi,
you need to define your database under the DB Admin tab. In the Schema objects node you'll find Sequence Implementations, and there you can definde min max values as well as caching and increments.
Gerald

Similar Messages

  • How to increase the max connections for business rules.

    How and where to increase the connection to EAS.currently we have max connection as 20.Also please let me know,what is the maximum connection we can increase.
    In our system totally,we have 350 users are present.
    when more that 20 users running the business rule,EAS is stopped.

    You can find this in the application property section in planning. Just navigate to Manage Properties and update the JDBC max connections and JDBC Olap connections to your desired number.

  • How to use min-max functions for date in transformation in bpel?

    Hi,
    I have a requirement where i need to map earliest date of a Source field among all the dates to a target field in a transformation file in BPEL. There are functions called max-value-among-nodeset and min-value-among-nodeset in mathematical functions but they can be used only for numbers and strings.How to do these with dates?
    Thanks,
    Prasanna

    I exactly have the same requirement.Are you able to solve this?
    Its very urgent.Please help me.

  • How to set physical min/max values for a scale in xy graph?

    Hello,
    I have troubles with the way LabView handles physical units in xy graphs. In particular, I use a time scale for the x axis.
    The values are timestamps and have the unit [s]. Now I want to read write the min max values for this scale via
    property nodes. It seems that the properties for min max do not support the use of the unit I use for the data for
    that same axis. This is very inconvenient and I am not even sure which kind of data to use at all for this properties.
    Is it simply converting to/from [s] using the unit converter?
    (I am using LabView 7.1 for the programm in question).
    Thanks,
    Olaf

    Hi Olaf
    "It seems that the properties for min max do not support the use of the unit I use for the data for that same axis."  
    What are the units you are using? can you make it a littlebit clear.
    You can change the units also using Property node.
    Just check the attachment once. If that is what you are looking for, then the problem is solved.
    Regards
    Anil
    Message Edited by reddy on 05-23-2006 05:25 AM
    Message Edited by reddy on 05-23-2006 05:27 AM
    Attachments:
    X-Scale.jpg ‏8 KB

  • Possible to set min/max size to a resizable Stage? If so, how?

    Is it possible to set a minimum and maximum size to a resizable Stage? If so, how would this be done? Do I use some kind of onResize event handler or is there some other way?
    Here is a sample code where I have a 500 x 500 px image in a 300 x 300 px scrollable scene that is in a resizable stage. Right now, I am able to resize the stage to any size, but I would like to limit the resizable minimum width and height to 100 x 100 px and limit the resizable maximum width and height to 600 x 600 px.
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollView;
    import javafx.scene.control.ScrollBarPolicy;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var scene: Scene;
    Stage {
        resizable: true
        scene: scene = Scene {
            width: 300
            height: 300
            content: ScrollView {
                hbarPolicy: ScrollBarPolicy.ALWAYS
                vbarPolicy: ScrollBarPolicy.ALWAYS
                width: bind scene.width
                height: bind scene.height
                node: ImageView {
                    image: Image { url: "{__DIR__}roses.jpg"}
    }

    Hi, I don't understand how WidgetFX is going to allow me to set min/max size to a resizable Stage. After all, it is a desktop widget platform and I'm not trying to build a desktop widget. None of the demos I've tried use a decorated Stage with platform decorations that can be used to drag and resize the Stage.
    I'm just trying to limit the min/max size of a resizable Stage. If you think WidgetFX will address my problem, I think a better solution is the JavaFX Stage Controller class I found available at http://code.google.com/p/memefx/. However, the JavaFX Stage Controller class still doesn't address the problem I have because it doesn't stop the user from dragging the Stage beyond the size restricted by the min/max height. It only reverts the Stage to the max size after the user already dragged and resized the Stage beyond the max resizable width/height.

  • How to set a fixed width for a box

    Hi there,
    Struggling here.... must admit. 
    I need a solution whereby I can set a fixed width for a box that is grouping two buttons.  I suppose generally, I want to know how to set a fixed width for anything element.
    See the picture below.  I want the two buttons to stay the same distance apart, and I want the grouped buttons to stay the same distance from the right edge of the window, even as a user resizes the window.
    This is what happens when you reduce the size of the window .....
    I would like to stop this from happening.
    I can't figure out how accomplish keeping the parent div a fixed width, and a fixed position from the right side of the window, so the buttons won't overlap.
    Perhaps I'm doing the whole thing wrong. 
    I mean, is there a way to accomplish this without grouping the buttons?  That is, make the buttons fixed width, fixed distance apart from each other, and fixed distance from the right side of the window, even as the user resizes the page?
    I am trying to accomplish this using the Min/Max width settings, but given that there are so many different units to choose from, and the fact that when I place a button or box on the screen, it seems to be creating that button or box with a percentage-based width, I don't know how many pixels to set it to.... sigh....
    Many thanks in advance for your help.
    Sam

    Okay after much futzing I figured out at least part of the solution I need, but if someone knows of a more efficent way to do this please let me know. 
    I set a fixed minimum width in pixels for both of the buttons at 156px.
    I then made the left button float left and the right button float right.
    I then made the parent div for the buttons float right.
    That made the buttons stay the same size.
    The only thing I need to figure out how to do now is make the parent div stay a consistent distance in pixels from the right.  I tried setting a right margin but that didn't work.  As you size the window down, the div gets closer to the edge, until it passes it.  

  • How to get min/max price to be captured from last 6months

    Hi friends,
    I'm confusing about my report requirements can anybody suggest about the below comments.
    1) I want to generate report min/max price to be captured for last 6months based on query selection given values e.g: material, calmonth.
    2. Query date/Query month is based on Purchase order creation date.
    3. When we execute query for given 0material, 0calmonth e.g: 10000 , 12.2008 report output should be last six months min/max price for materials.
    How can i get this type of report.
    Anybody suggest me on this.
    Thanks lot
    Siri

    Dear Siri,
    I understand that your report should be like:
    Material     CalMonth    Min Price    Max Price
    Have you explored the option of using the Price field with the properties set to Min for one column and Max for another?
    Regards,
    Nitin S.

  • How to set up Airport Extreme for 11ac and 11n?

    I have just purchased the new Airport Extreme (August 2014) because Apple's website states
    Simultaneous dual-band support.
    AirPort Extreme features simultaneous dual-band 802.11ac Wi‑Fi. That means it transmits at both the 2.4GHz and 5GHz frequencies at the same time. So no matter which band your wireless devices use, they’ll automatically connect to the best available band for the fastest possible performance.
    I have number of Macs in my home from a new MacBook Pro with Mavericks to a Macbook Air with Snow Leopard (due to required software) and iPads.
    So after setting up the new Extreme my new MacBook only accesses 11n as does my older Macs. I checked by holding down the option key while clicking the WiFi icon at the top of my Mac. Well, not so automatic then as I was expecting 11ac and 3 times faster access (as stated by Apple).
    I then looked for some documentation for setting up but cannot find anything.
    Hence my question here.
    How to set up Airport Extreme for 11ac and 11n simultaneously?
    At present the new Extreme is no better than my previous 2 year old one.
    Thank you.
    Michael

    How to set up Airport Extreme for 11ac and 11n simultaneously?
    Assuming that it is operating correctly, 802.11ac and 802.11b/g/n are broadcast simultaneously by default.
    Simultaneous dual-band support.
    AirPort Extreme features simultaneous dual-band 802.11ac Wi‑Fi. That means it transmits at both the 2.4GHz and 5GHz frequencies at the same time. So no matter which band your wireless devices use, they’ll automatically connect to the best available band for the fastest possible performance.
    That is advertising. The real information is usually found in the small and hard to read footnotes:
    Based on theoretical peak speeds. Actual speeds will be lower.
    AirPort Extreme is based on an IEEE 802.11ac draft specification. Performance based on comparison with Apple’s 802.11n products. Comparison assumes AirPort Extreme network with 802.11ac-enabled computer. Speed and range will be less if an 802.11a/b/g product joins the network. Accessing the wireless network requires a Wi‑Fi-enabled device. Actual speed will vary based on range, connection rate, site conditions, size of network, and other factors. Range will vary with site conditions.
    Since the 802.11ac signal is being broadcast only using the 5 GHz band, some users report that they have had better results by using the option to assign a different name to the 5 GHz band, and then pointing their Mac to that specific signal or network. You may want to try that option.
    But first as a test, please locate the MacBook Pro about 10-15 feet or 3-4 meters from the AirPort Extreme with clear line-of-sight between the two devices. Restart both the AirPort Extreme and the Macbook Pro and then check to see if the Mac is connected to an 802.11ac signal.
    If not, please power off your other wireless devices...computers, mobile devices, etc. temporarily, and try the same test again.
    Please report on your results.

  • How to set up internet connection between MacBook Pro and an old eMac?

    I got an old eMac without wifi and a MacBook Pro. I'd like to share the network connection via ethernet cable to my eMac, but I can't get it work.
    I'd like to use it with screenrecycler and it needs a network connection.
    How to do it? How to set up the connection between the client and the host? Could somebedy give me a step by step guide?
    Thank you very much

    Hello,
    First, are you using Wifi for Internet on the MBP?
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list, Wifi on the MBP.
    In Shating on both, enable File Sharing, Screen Sharing, & Web Sharing on both.
    Then with the Ethernet cable between the two, find the IPs of both, or use Finder>Go>Connect to Server>Browse... see what shows up.

  • I just upgraded to garageband 10.0.2 and I don't know how to set up a mic for recording via USB

    I just upgraded to garageband 10.0.2 and I don't know how to set up a mic for recording via USB

    Connect your USB mic or USB Audio Interface to an USB port.
    Create an new Audio Track from the Tracks menu > New Track.
    Select "Audio > Record using a microphone ...."
    Click "Details" to reveal the Input sources.
    Click "My instrument is connected with..." to open the GarageBand Preferences "Audio" tab and select your microphone as Input device.
    In the Track menu > Track Header enable "Show Record enable" button.
    Enable this button for your vocal track.
    Open the Library pane to select a vocal patch your new track.

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How to set up automatic payment for the purchase order

    Hi, All,
    I have one question how to set up automatically payment for the Rent Office purchase Order?
    There is the requirement from the client. They want to create one kind of purchase order for the Office Rent, then pay the fees in the certain time of every month to the vendor for the rent fees without any invoice. Whatu2019s the normal solution for this kind of purchase order? Is it ERS? Or something else?
    Please give me the details and business flow. Also please tell me how to setup in the SAP and T-code.
    Thanks in advance

    Either you can set up ERS or you can pay directly from the FI side.
    Prerequisites
    Evaluated receipt settlement must be flagged in the purchase order item.
    The vendor must be flagged as being subject to ERS in the vendor master record.
    The goods receipt must refer to a purchase order.
    Goods-receipt-based Invoice Verification must be defined for the purchase order item.
    A tax code must have been maintained in the purchase order item.
    The order price of the materials may not be an estimated price.
    If you flag a vendor as being subject to ERS, the system sets the ERS indicator as a default in each item when you create a purchase order for the vendor. You can prevent this happening for certain vendors by flagging the info record for the material and the vendor as not being subject to ERS.
    In Purchasing, you can delete the default ERS indicator in a purchase order item.
    Choose Logistics Invoice Verification ® Automatic Settlement ® Evaluated Receipt Settlement (ERS).
    The selection screen appears.
    You can use the following criteria to narrow down selection of the transactions to be settled:
    Company code
    Plant
    Goods receipt posting date
    Goods receipt document
    Fiscal year of the goods receipt
    Vendor
    Purchase order and order item
    You can define the selection criteria for the invoice documents by:
    Delivery
    Purchase order
    Purchase order item
    Goods receipt document
    Credit memo
    Invoice
    Currency
    Choose  Execute.
    The system issues a log for Evaluated Receipt Settlement, which displays the following:
    Settled
    In line with your selection criteria, the system displays all the order items that were settled (or if you are working in test mode, which would have been settled).
    Could not be settled
    In line with your selection criteria, the system displays all order items for which ERS is defined but could not be settled. It also lists the reasons.
    If the system reports being unable to invoice a transaction, you should exclude the transaction from ERS to avoid it being included in the log the next time ERS is run.
    Select the item and choose Exclude from ERS.
    The system also generates and possibly sends a message to inform the vendor(s) about the transaction settled, depending on the settings in Customizing.
    You can display the following environment information for the order items selected. To do this, choose Goto ®:
    Display purchase order
    Display invoice
    Display material document
    Display long text

  • How to set-up a Timestamp for BI Delta Load in 0CLM_INVOICE datasrc at R/3?

    Hi Experts,
    Kindly let me know How to set-up a Timestamp for BI delta load at R/3 for the Data source 0CLM_INVOICE ?
    Since the Timestamp for Upload of BI Delta is " . . : : ", we are not getting any delta value to BW.
    I would like to know in where we need to maintain the DATE & TIME to fix the above problem.
    Thanks.
    Regards,
    Jayaprakash J

    Dear Jayprakash,
    Chech the below links, it may help you in your case :
    Re: 0FI_AA_11 Delta load failure
    http://wiki.sdn.sap.com/wiki/display/BI/GeneralErrorIn+BI
    Actaully you need not have to maintain the timestamp. Just try to replicate your datasource and the try to load the delta again.
    Hopefully it will work.
    Regards,
    Rahul
    Edited by: Rahul on Dec 10, 2010 10:23 AM

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

Maybe you are looking for

  • JRE1.6 in Windows Vista for Swing based application

    Hi, I am running a Swing based and applet based application in Windows VISTA using JRE 1.6_U13. The text font is appearing bold in JRE 1.6_U13 whereas it is appearing normal while using JRE 1.5, though the style of the Font is "SansSerif", PLAIN and

  • Viewing angle (with no colour shift) on new iPad much narrower than older iPads

    I just got a new iPad yesterday and the new display's resolution is magical!! I am unfortunately experiencing the yellow tinted screen that others are, but I'm hopeful this will improve over a short time as any glues involved perhaps dry. I THINK per

  • Adobe flash player not working correctly

    I need help about flash player. I have problems with video files in every browser. It is playing, but it is not possible to move video, use fullscreen or change volume. How can i solve this problem? Thanks for help Lukas

  • Connecting to Oracle 8i R2 via iiop

    Hi I am trying to connect to oracle 8i release 2 from a win nt 4 sp5 client. when I run sess_sh I receive the following error message. Exception in thread main org.omg.CORBA.COMM_FAILURE: java.net.SocketException: Connection shutdown: JVM_recv in soc

  • Birthday year (Question)

    Hello! Do we really have to put the person(s) birthday year in the address book? Is there anyway, just have there month/date instead? Thanks, James