How to implement paging on SQLSERVER JDBC ResultSet?

Dear experts,
Please show me somre tips to implement paging on an JDBC resultset?
Thanks in advanced.

JSP pagination ? how many records per page ?

Similar Messages

  • How to implement paging in struts

    is any body tell me how to implement paging in struts. because it works on action not on page URI.

    u will get so many TLDs' for this. just go googe

  • How to implement Oracle DWH using JDBC

    Hello,
    i'm new to the Oracle database and i'm wondering how to implement a DWH Core or Datamart System using Oracle 11g Express. How can i "switch" a relational oracle database to a dimensional one, preparing it for OLAP/BI queries´, preferably using the JDBC interface ?
    Thanks a lot!

    An good introduction to Oracle OLAP is found on the OTN site: Oracle OLAP.
    --Ken Chin

  • How to implement paging in webdynpro jave based on search criteria.

    Hi All,
    In a requirement I need to implement paging in webdynpro java development.
    I successfully did it when there is no search criteria is available i.e webdynpro fetched all data from the BO object and I did it using a "indexNO" (unique serial no from 1,2,3,4.....) field available in BO object.
    But when there is search criteria available , i.e the data to be fetched from the BO based on some specific field , at that time the "indexNo"  field of all data fetched based on search criteria are discrete i.e not continious. In that case how to implement the paging concept.
    I am using CE version 7.1 EHP 1.
    Thanks in advance
    Srikanta Satapathy

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • How to implement paging?

    Hi,
    i have lacks and lacks of records in my table. how can we implement the paging with this table. Consider the table name as "sample".
    i have worked with Mysql, in that we have use the option "limit" in the select statement to select specified range row like 1 - 100, 101 - 200.
    So, how can we use the paging in the oracle select statement?
    Regards,
    S.Ashokkumar.

    See Tom Kyte article in Oracle Magazine.

  • Exception "not implemented for class oracle.jdbc.driver.T4CNumberAccessor"

    Hello I'm having some troubles dealing with 'java.sql.Date' I'm working with express edition database and I have three classes(different packages)
    1.Mapper
    2.Objects Class
    3.ConsoleTest
    I need to get an arraylist of objects, some of which contain dates, but when try to do it I get this exception
    "java.sql.SQLException: Invalid column type: getDate not implemented for class oracle.jdbc.driver.T4CNumberAccessor"
    Do you have any idea how I can implement the getDate method for this T4CNumberAccessor
    Here are the methods that I'm using
    1.Mapper
    public ArrayList<Object> getAllTaskAuctions(Connection con)
              ArrayList<Object> l1 = new ArrayList<Object>();
              String SQLString1 = "select * from taskauction natural join tasks";
    PreparedStatement statement=null;
    try
    //=== get taskauctions natural join tasks
    statement = con.prepareStatement(SQLString1);
    ResultSet rs = statement.executeQuery();
    while(rs.next())
    l1.add(new TaskAuction(rs.getInt(1), rs.getInt(2), rs.getInt(3),
    rs.getDate(4), rs.getDate(5), rs.getInt(6)));
    l1.add(new Task(rs.getInt(1), rs.getInt(2), rs.getString(3),
    rs.getString(4), rs.getString(5), rs.getString(6), rs.getInt(7)));
    catch (Exception exc)
    System.out.println("Fail in TaskAuctionMapper - getAllTaskAuctions");
    System.out.println(exc);
    return l1;
    2.ConsoleTest class
    Connection con;
         public Connection getConnection(){
              try{ 
         Class.forName("oracle.jdbc.driver.OracleDriver");
         con = DriverManager.getConnection(
         "jdbc:oracle:thin:@localhost:1521:XE", "Project", "123" );
         //username/password@[/]host[:port][service_name]
         catch (Exception e)
         {   System.out.println("fail in getConnection()");
         System.out.println(e); }
              return con;
         public static void main(String[] args) {
              ConsoleTest ct = new ConsoleTest();
              TaskAuctionMapper tam1 = new TaskAuctionMapper();
    ArrayList<Object> alt1 = tam1.getAllTaskAuctions(ct.getConnection());
    Iterator<Object> itr1 = alt1.iterator();
    while (itr1.hasNext())
    TaskAuction taskauct = (TaskAuction) itr1.next();
    //Problem, exception traced to TaskAuctionMapper
    System.out.println(
              "Task ID: " + taskauct.getTaskid()+ ", "+
              "StartDate: "+ taskauct.getStartdate()+", "+
              "User ID: " + taskauct.getUserid());
         }

    Found the answer, I shouldn't use integers as parameters of column index in the result set, but instead use String to mark the fields :)

  • How to implement simple CEV rules?

    Hi,
    I have some doubts how to implement very simple CEV rules (ex: When enddate is filled then determinationdate is sysdate)
    When i follow the CDM Guidelines then I have to create a custom routine and make a derivation expression for the column.
    When i use commom sense I do a update in the BR implementation. Saves a lot of work.
    What is the opinion of the Headstart team?
    Regards, Jan-Derk

    Hi Kathyaini,
    For using a XML connection as data source then you have to follow the below:
    Configure the following elements as described below:
    u2022 <JavaDir>
    u2022 <Classpath>
    u2022 <JDBCURL>
    u2022 <JDBCUserName>
    u2022 <JDBCClassName>
    It will prompt you for the class name and path of the URL using, that also depends upon the data base you use.
    It is different for each database like oracle, sql and DB2.
    For configuring the connection you should follow the process for each database.
    JDBCURL  - The JDBCURL parameter value is the default JDBC connection URL that will be displayed in Crystal Reports when you create a new JDBC data connection. The exact format of the connection URL is specific to the database driver and is provided by the database driver vendor.
    For example, the connection URL for the Oracle JDBC driver is:
    jdbc:oracle:thin:@<hostname>:<port>:<sid>
    Sample for SQL Server:
    jdbc:microsoft:sqlserver://SERVERNAME:1433
    Sample for DB2:
    jdbc:db2:XTREME
    JDBCUserName  - Default username for the Database
    JDBCDriverName - The JDBCDriverName is the default full classname of the JDBC driver that will be displayed in Crystal Reports when creating a new JDBC data connection..
    Oracle: oracle.jdbc.driver.OracleDriver
    Let me know if any.
    Regards,
    Naveen.

  • Casting a JDBC resultSet to VO RowSet?

    Is it possible to somehow transform a plain vanilla jdbc ResultSet to a VO RowSet? (Of course without iterating!) Either by passing the entire object (with all rows intact) or by casting?
    Thanks
    -Nat
    PS. Rob, you know why I want to do this, right&lt;g&gt;?

    We use JDBC to access the database internally. BC4J automates a best-practice use of JDBC PreparedStatements and ResultSet's for you without your having to worry about remembering the low-level details.
    Our generic JDBC-interaction code worries about consistently applying the best-practice and highest-performance JDBC techniques for you. When we discover a further improvement and implement it, all of your view objects immediately benefit in the next release.
    We had a team in Oracle Applications who claimed they could read large amounts of data faster with hand-coded JDBC than with BC4J. They weren't using BC4J in the optimal way and I illustrated by modifying their benchmark how to make BC4J be faster than hand-coded raw use of JDBC.
    Their benchmark wasn't really comparing apples to apples, so I made sure they were comparing roughly equivalent amounts of work before we could conclude what was better.

  • JDBC ResultSet out of memory problem with Scrollable one

    Hey guys,
    I'm facing the following problem when accessing an Oracle 10g database over oracle jdbc driver 1.4.
    I need to access the rows of a resultset (millions of rows) at least twice. Forward only doesn't need much memory - but I can't do a rs.beforeFirst()
    Switching to ResultSet.TYPE_SCROLL_SENSITIVE gives me always an java.lang.OutOfMemoryError: Java heap space exception after rs.next() and I can see the used memory constantly increasing.
    Here is my test code:
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@host:1521:ORCL", "user", "pass");
    Statement my_stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    ResultSet result = my_stmt.executeQuery("select * from stats_big");
    System.out.println("Query back :)");
    while(result.next()) {      //here happens the error after 200 000 rows
    //make statistics
    //ask user what to do
    result.beforeFirst();
    while(result.next()) {
         //apply function and deliver new values
    conn.close();
    Is the implementation caching all the already read rows in memory?
    Any help would be great,
    Alex

    if and how there are ways to read a Resultset 2 or more times
    forward-only and the data is not completelly cached on the client If the client reads a million rows, how can it read them a second time without either storing them somewhere on the client as in scrollable cursors, or rereading them from the server as in regular cursors. To me this looks like the laws of physics, rather than something that can be changed in a software release.
    In order of preference I would
    1. Not process a million rows on the client.
    2. Use a regular cursor and fetch it twice, the second fetch will be faster as the database already caches as much of it as it can.
    Fetching that much data somewhere is going to take some time anyway, which is why I prefer the first option..

  • Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned

    Hello guys,
    I have been setting a production system with bitronix transaction manager, SQL server 2008, XA transactions and jetty 6. In the beginning this software was configured to run with MySQL. But one of my customer decided to move everything to MSSQL server 2008.
    In that moment I was trying to get this up and running for some weeks (The configuration was completely different) and finally I got it.
    The configuration with MSSQL server was running perfectly during 1 month but then from one day to other the error message I will show now appeared and I do not how to solve it. I almost read all the hints from google about this exception but nothing helped
    me out.
    I hope you guys can help me to find a way to solve it.
    - I tried different version of the jdbc driver 3.0 and 4.0.
    - I tried to export exactly the database to my localserver and it's running perfectly with the same configuration.
    The problem is that I cannot reproduce the error in other place that is not the customer and at the same time I have no access to their internal database server. They installed all the XA transaction stuff (dll in binn, enable XA, and grant the permissions
    for SQLXAUser), I am quite sure because it was running for one month without any problem.
    I asked to the customer if anything happenend on their server (microsoft updates, machines reboot, ...) but nothing of these happened.
    Also I tried this link out but did not help me.
    <a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess">http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess</a>
    The exception is the following:
     [2014-05-15 14:06:08,842] INFO  3666[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Starting Bitronix Transaction Manager
    [2014-05-15 14:06:08,951] INFO  3775[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Extract ./webapps/myscript-fpp-wrapper-server.war to D:\Temp\Jetty_0_0_0_0_8080_myscript.fpp.wrapper.server.war__myscript.form.wrapper.server__.bnwnn7\webapp
    [2014-05-15 14:06:10,324] INFO  5148[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - NO JSP Support for /myscript-form-wrapper-server, did not find org.apache.jasper.servlet.JspServlet
    [2014-05-15 14:06:12,742] WARN  7566[main] - org.dozer.config.GlobalSettings.loadGlobalSettings(GlobalSettings.java:118) - Dozer configuration file not found: dozer.properties.  Using defaults for all Dozer global properties.
    [2014-05-15 14:06:13,288] WARN  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:100) - SQL Error: 0, SQLState: null
    [2014-05-15 14:06:13,288]ERROR  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:101) - error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with
    usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
    [2014-05-15 14:06:13,319]ERROR  8143[main] - org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220) - Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleRegistration' defined in class path resource [com/visionobjects/myscript/fpp/wrapper/module-registration.xml]: Invocation of init method failed; nested exception is
    org.hibernate.exception.GenericJDBCException: could not execute query
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:534)
        at org.mortbay.start.Main.start(Main.java:441)
        at org.mortbay.start.Main.main(Main.java:119)
    Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
        at org.hibernate.loader.Loader.doList(Loader.java:2235)
        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
        at org.hibernate.loader.Loader.list(Loader.java:2124)
        at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1597)
        at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
        at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
        at com.visionobjects.myscript.fpp.form.dao.impl.ModuleInfoDaoImpl.getModuleInfo(ModuleInfoDaoImpl.java:57)
        at com.visionobjects.myscript.fpp.ModuleRegistration$1.doInTransactionWithoutResult(ModuleRegistration.java:73)
        at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at com.visionobjects.myscript.fpp.ModuleRegistration.init(ModuleRegistration.java:66)
        at com.visionobjects.myscript.fpp.ModuleRegistration.start(ModuleRegistration.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
        ... 33 more
    Caused by: java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
        at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)
        at bitronix.tm.resource.jdbc.JdbcConnectionHandle.prepareStatement(JdbcConnectionHandle.java:243)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
        at $Proxy29.prepareStatement(Unknown Source)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
        at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
        at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
        at org.hibernate.loader.Loader.doQuery(Loader.java:696)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
        at org.hibernate.loader.Loader.doList(Loader.java:2232)
        ... 52 more
    Caused by: bitronix.tm.internal.BitronixSystemException: cannot enlist an XAResourceHolderState with uniqueName=fppDataSource XAResource= XAResourceID:1 with XID a Bitronix XID [6A657474792D6670702D73657276657200000145FFC68B9B00000000 : 6A657474792D6670702D73657276657200000145FFC68BCA00000002],
    error=XAER_RMERR
        at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:100)
        at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:70)
        at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)
        ... 66 more
    <b>Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned </b>
        at com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:642)
        at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(SQLServerXAResource.java:674)
        at bitronix.tm.internal.XAResourceHolderState.start(XAResourceHolderState.java:211)
        at bitronix.tm.internal.XAResourceManager.enlist(XAResourceManager.java:108)
        at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:93)
        ... 68 more
    I think the "bold" exception is the key.
    Also the configuration file of my jetty server.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
    <!-- developpment jetty configuration -->
    <!-- launch with main class : org.mortbay.start.Main app arguments:
    deploy-conf/jetty-conf/mysql/jetty-dev.xml vm arguments : -Xmx1024M -DSTOP.KEY=stop
    -DSTOP.PORT=6669 to stop : - - stop -Xmx1024M -DSTOP.KEY=stop -DSTOP.PORT=6669 -->
    <Configure id="Server" class="org.mortbay.jetty.Server">
    <Array id="plusConfig" type="java.lang.String">
    <Item>org.mortbay.jetty.webapp.WebInfConfiguration</Item>
    <Item>org.mortbay.jetty.plus.webapp.EnvConfiguration</Item>
    <Item>org.mortbay.jetty.plus.webapp.Configuration</Item>
    <Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration</Item>
    <Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item>
    </Array>
    <Array id="serverClasses" type="java.lang.String">
    </Array>
    <Array id="systemClasses" type="java.lang.String">
    </Array>
    <!-- web apps -->
    <Set name="handler">
    <New id="handlerContext" class="org.mortbay.jetty.handler.ContextHandlerCollection">
    <Set name="handlers">
    <Array id="handlerArray" type="org.mortbay.jetty.webapp.WebAppContext">
    <!-- wrapper server -->
    <Item>
    <New class="org.mortbay.jetty.webapp.WebAppContext">
    <Arg>./webapps/myscript-fpp-wrapper-server.war</Arg>
    <Arg>/myscript-form-wrapper-server</Arg>
    <Set name="serverClasses">
    <Ref id="serverClasses" />
    </Set>
    <Set name="ConfigurationClasses">
    <Ref id="plusConfig" />
    </Set>
    </New>
    </Item>
    <!-- form server -->
    <Item>
    <New class="org.mortbay.jetty.webapp.WebAppContext">
    <Arg>./webapps/myscript-fpp-form-server.war
    </Arg>
    <Arg>/myscript-form-server</Arg>
    <Set name="serverClasses">
    <Ref id="serverClasses" />
    </Set>
    <Set name="ConfigurationClasses">
    <Ref id="plusConfig" />
    </Set>
    </New>
    </Item>
    <!-- hwr server -->
    <Item>
    <New class="org.mortbay.jetty.webapp.WebAppContext">
    <Arg>./webapps/myscript-fpp-hwr-server.war</Arg>
    <Arg>/myscript-form-hwr-server</Arg>
    <Set name="serverClasses">
    <Ref id="serverClasses" />
    </Set>
    <Set name="ConfigurationClasses">
    <Ref id="plusConfig" />
    </Set>
    </New>
    </Item>
    </Array>
    </Set>
    </New>
    </Set>
    <Call name="addConnector">
    <Arg>
    <New class="org.mortbay.jetty.nio.SelectChannelConnector">
    <Set name="port">8080</Set>
    </New>
    </Arg>
    </Call>
    <!-- Use the jdk 1.5 platformMBeanServer -->
    <Call id="MBeanServer" class="java.lang.management.ManagementFactory"
    name="getPlatformMBeanServer" />
    <Get id="Container" name="container">
    <Call name="addEventListener">
    <Arg>
    <New class="org.mortbay.management.MBeanContainer">
    <Arg>
    <Ref id="MBeanServer" />
    </Arg>
    <Call name="start" />
    </New>
    </Arg>
    </Call>
    </Get>
    <!-- Setup the RMIRegistry on a specific port -->
    <Call id="rmiRegistry" class="java.rmi.registry.LocateRegistry"
    name="createRegistry">
    <Arg type="int">2099</Arg>
    </Call>
    <!-- Setup the JMXConnectorServer on a specific rmi server port -->
    <Call id="jmxConnectorServer" class="javax.management.remote.JMXConnectorServerFactory"
    name="newJMXConnectorServer">
    <Arg>
    <New class="javax.management.remote.JMXServiceURL">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    </Arg>
    <Arg />
    <Arg>
    <Ref id="MBeanServer" />
    </Arg>
    <Call name="start" />
    </Call>
    <!--************************* -->
    <!-- embbeded ActiveMQ Broker -->
    <!--************************* -->
    <New id="brokerService" class="org.apache.activemq.broker.BrokerService">
    <Set name="brokerName">fppBrokerActiveMQ</Set>
    <Set name="dataDirectoryFile"></Set>
    <Call name="getSystemUsage">
    <Call name="getMemoryUsage">
    <Set name="limit">26428800</Set>
    </Call>
    <Call name="getStoreUsage">
    <Set name="limit">204857600</Set>
    </Call>
    </Call>
    <Call name="addConnector">
    <Arg>nio://localhost:61615</Arg>
    </Call>
    <Call name="start"></Call>
    </New>
    <!-- ************************** -->
    <!-- common fpp jndi resources -->
    <!-- ************************** -->
    <!-- ui debug properties -->
    <New id="fpp.common-ui.velocityProperties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.common-ui.velocityProperties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="spring.resource.loader.class">org.springframework.ui.velocity.SpringResourceLoader
    </Put>
    <Put name="spring.resource.loader.cache">false</Put>
    <Put name="velocimacro.library.autoreload">true</Put>
    </New>
    </Arg>
    </New>
    <New id="fpp.wrapper-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.wrapper-server.properties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="fpp.wrapper-server.instanceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/instance?wsdl
    </Put>
    <Put name="fpp.wrapper-server.formServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/form?wsdl
    </Put>
    <Put name="fpp.wrapper-server.formDeprecatedServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/formDeprecated?wsdl
    </Put>
    <Put name="fpp.wrapper-server.hwrResourceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/hwrResource?wsdl
    </Put>
    <Put name="fpp.wrapper-server.defaultEnvironmentName">default</Put>
    <Put name="fpp.wrapper-server.defaultEnvironmentType">STANDARD</Put>
    <Put name="fpp.wrapper-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.show_sql">true</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.use_query_cache">false</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.use_second_level_cache">false</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.use_structured_cache">false</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
    </New>
    </Arg>
    </New>
    <!-- transaction manager - bitronix -->
    <Call name="getConfiguration" class="bitronix.tm.TransactionManagerServices">
    <Set name="serverId">jetty-fpp-server</Set>
    <Set name="gracefulShutdownInterval">45</Set>
    <Set name="logPart1Filename">btm/btm1.tlog</Set>
    <Set name="logPart2Filename">btm/btm2.tlog</Set>
    </Call>
    <Set name="gracefulShutdown">60000</Set>
    <Call name="addLifeCycle">
    <Arg>
    <New class="bitronix.tm.integration.jetty6.BTMLifeCycle" />
    </Arg>
    </Call>
    <New class="org.mortbay.jetty.plus.naming.Transaction">
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <New class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>java:/TransactionManager</Arg>
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>java:comp/TransactionManager</Arg>
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>java:comp/UserTransaction</Arg>
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <!-- database data source -->
    <New id="fppDataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource">
    <Set name="uniqueName">fppDataSource</Set>
    <Set name="className">com.microsoft.sqlserver.jdbc.SQLServerXADataSource</Set>
    <Set name="minPoolSize">0</Set>
    <Set name="maxPoolSize">50</Set>
    <Get name="driverProperties">
    <Put name="serverName">DYHVDB01</Put>
    <Put name="instanceName">ALPHA</Put>
    <Put name="integratedSecurity">false</Put>
    <Put name="databaseName">tdb_digipen_fpp</Put>
    <Put name="user">manage_digipen</Put>
    <Put name="password">5T1fte?</Put>
    <!--Needed to test??<Put name="pinGlobalTxToPhysicalConnection">true</Put>-->
    </Get>
    <Call name="init" />
    </New>
    <!-- Jms connection factories -->
    <New id="fppServerConnectionFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory">
    <Set name="className">org.apache.activemq.ActiveMQXAConnectionFactory</Set>
    <Set name="uniqueName">fppServerConnectionFactory</Set>
    <Set name="minPoolSize">4</Set>
    <Set name="maxPoolSize">40</Set>
    <Set name="allowLocalTransactions">true</Set>
    <Get name="driverProperties">
    <Put name="brokerURL">nio://localhost:61615?jms.prefetchPolicy.all=50</Put>
    <New class="org.apache.activemq.RedeliveryPolicy">
    <Set name="maximumRedeliveries">-1</Set>
    <Set name="backOffMultiplier">2</Set>
    </New>
    </Get>
    <Call name="init" />
    </New>
    <!-- JMS Queues & topics -->
    <New id="formNotifiationTopic" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/formNotifiationTopic</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQTopic">
    <Arg>formNotifiationTopic</Arg>
    </New>
    </Arg>
    </New>
    <New id="fieldJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/fieldJmsQueue</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQQueue">
    <Arg>fieldJmsQueue</Arg>
    </New>
    </Arg>
    </New>
    <New id="fieldNotifJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/fieldNotifJmsQueue</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQQueue">
    <Arg>fieldNotifJmsQueue</Arg>
    </New>
    </Arg>
    </New>
    <New id="inkJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/inkJmsQueue</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQQueue">
    <Arg>inkJmsQueue</Arg>
    </New>
    </Arg>
    </New>
    <!-- native library services -->
    <New id="myscriptLicenseService" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/myscriptLicenseService</Arg>
    <Arg>
    <New
    class="com.visionobjects.licensemanager.impl.MyscriptLicenseServiceImpl">
    <Arg>localhost</Arg>
    </New>
    </Arg>
    </New>
    <!-- *********************** -->
    <!-- form server properties -->
    <!-- *********************** -->
    <New id="fpp.form.properties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.form.properties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="fpp.form.defaultEnvironmentName">default</Put>
    <Put name="fpp.form.defaultEnvironmentType">STANDARD</Put>
    <Put name="fpp.form.jbpm.job.nbexecutor">4</Put>
    <Put name="fpp.form.jbpm.job.idleinterval">1000</Put>
    <Put name="fpp.form.field.notif.nbconsumers">2</Put>
    <Put name="fpp.form.ink.nbconsumers">2</Put>
    <Put name="fpp.form.instance.instanceValidationMode">STANDARD</Put>
    <Put name="fpp.form.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <!--<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>-->
    <Put name="fpp.form.formdb.hibernate.show_sql">true</Put>
    <Put name="fpp.form.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put name="fpp.form.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
    </Put>
    <Put name="fpp.form.formdb.hibernate.cache.use_query_cache">false</Put>
    <Put name="fpp.form.formdb.hibernate.cache.use_second_level_cache">false</Put>
    <Put name="fpp.form.formdb.hibernate.cache.use_structured_cache">false</Put>
    <Put name="fpp.form.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
    <Put name="fpp.form.jbpmdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <Put name="fpp.form.jbpmdb.hibernate.show_sql">true</Put>
    <Put name="fpp.form.jbpmdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put name="fpp.form.jbpmdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
    </Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.use_query_cache">false</Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.use_second_level_cache">false</Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.use_structured_cache">false</Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
    <Put name="fpp.form.scheduler.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.MSSQLDelegate</Put>
    <Put name="fpp.form.scheduler.dataSource.driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</Put>
    <Put name="fpp.form.scheduler.dataSource.URL">jdbc:sqlserver://DYHVDB01\ALPHA;DatabaseName=tdb_digipen_fpp;integratedSecurity=false
    </Put>
    <Put name="fpp.form.scheduler.dataSource.user">manage_digipen</Put>
    <Put name="fpp.form.scheduler.dataSource.password">5T1fte?</Put>
    <!-- Cron Format A cron expression is a string comprised of 6 or 7 fields
    separated by white space. Fields can contain any of the allowed values, along
    with various combinations of the allowed special characters for that field.
    The fields are as follows: Field Name Mandatory Allowed Values Allowed Special
    Characters Seconds YES 0-59 , - * / Minutes YES 0-59 , - * / Hours YES 0-23
    , - * / Day of month YES 1-31 , - * ? / L W Month YES 1-12 or JAN-DEC , -
    * / Day of week YES 1-7 or SUN-SAT , - * ? / L # Year NO empty, 1970-2099
    , - * / -->
    <Put name="fpp.form.purge.moduleinfo.cron">0 0/1 * * * ?</Put>
    <Put name="fpp.form.purge.instances.cron">0 0 * * * ?</Put>
    <Put name="fpp.form.purge.instances.defaultcase">365</Put>
    <Put name="fpp.form.purge.instances.case1">10</Put>
    <Put name="fpp.form.purge.instances.case2">60</Put>
    <Put name="fpp.form.purge.instances.case3">100</Put>
    <Put name="fpp.form.purge.instances.case4">30</Put>
    <Put name="fpp.form.purge.instances.case5">60</Put>
    <Put name="fpp.form.export.cron">0 0 * * * ?</Put>
    <Put name="fpp.form.export.exportpath">C:\FPP</Put>
    <Put name="fpp.form.export.exportMode">REGULAR</Put>
    <Put name="fpp.form.export.buildingType">INCREMENTAL</Put>
    <Put name="fpp.form.export.addInformations">true</Put>
    </New>
    </Arg>
    </New>
    <New id="fppFormDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>jdbc/fppFormDbDataSource</Arg>
    <Arg>
    <Ref id="fppDataSource"></Ref>
    </Arg>
    </New>
    <New id="fppJbpmDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>jdbc/fppJbpmDbDataSource</Arg>
    <Arg>
    <Ref id="fppDataSource" />
    </Arg>
    </New>
    <New id="formJmsTopicConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/formJmsTopicConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="fieldProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldProducerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="fieldNotifConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldNotifConsumerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="inkConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/inkConsumerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <!-- HWR SERVER -->
    <New id="fpp.hwr-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.hwr-server.properties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="fpp.hwr-server.formbroker.uri">failover:nio://localhost:61615</Put>
    <Put name="fpp.hwr-server.fieldConsumers">4</Put>
    <Put name="fpp.hwr-server.resourceManager.memoryUsageThreshold">262144000</Put>
    <Put name="fpp.hwr-server.resourceManager.resourceCountThreshold">150</Put>
    <Put name="fpp.hwr-server.resourceManager.idleTimeLimit">1800000</Put>
    <Put name="fpp.hwr-server.resourceManager.timeToLive">3600000</Put>
    <Put name="fpp.hwr-server.resourceManager.wakeUpInterval">100000</Put>
    <Put name="fpp.hwr-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <Put name="fpp.hwr-server.formdb.hibernate.show_sql">true</Put>
    <Put name="fpp.hwr-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put
    name="fpp.hwr-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
    <Put name="fpp.hwr-server.internal.dumpRecognition">false</Put>
    </New>
    </Arg>
    </New>
    <New id="myscriptHwrService" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/myscriptHwrService</Arg>
    <Arg>
    <New class="com.visionobjects.myscript.commons.hwr.engine.HwrEngineService">
    <Set name="handwritingContextUserLimit">50</Set>
    <Set name="resourceUserLimit">0</Set>
    <Set name="otherObjectUserLimit">500</Set>
    <Call name="doStart" />
    </New>
    </Arg>
    </New>
    <New id="fieldNotificationProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldNotificationProducerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="fieldConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldConsumerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <!-- wrapper -->
    <New id="fppWrapperServerConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <Set name="brokerURL">nio://localhost:61615</Set>
    <Set name="redeliveryPolicy">
    <New class="org.apache.activemq.RedeliveryPolicy">
    <Set name="maximumRedeliveries">-1</Set>
    <Set name="backOffMultiplier">2</Set>
    </New>
    </Set>
    </New>
    <New id="formNotificationConsumerFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/formNotificationConsumerFactory</Arg>
    <Arg>
    <Ref id="fppWrapperServerConnectionFactory" />
    </Arg>
    </New>
    <New id="inkProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/inkProducerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppWrapperServerConnectionFactory" />
    </Arg>
    </New>
    <!-- JMX/SENSORS -->
    <New id="inkJmsQueueUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="inkJmsQueueObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=inkJmsQueue
    </Arg>
    </New>
    <New id="fieldNotifJmsQueueUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="fieldNotifJmsQueueObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldNotifJmsQueue
    </Arg>
    </New>
    <New id="fieldJmsQueueUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="fieldJmsQueueObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldJmsQueue
    </Arg>
    </New>
    <New id="formNotifiationTopicUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="formNotifiationTopicObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=formNotifiationTopic
    </Arg>
    </New>
    <New id="server.list" class="java.util.HashMap">
    <!-- InkJmsQueue -->
    <Put name="WRP">
    <New class="java.util.ArrayList">
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8081</Arg>
    </New>
    </Arg>
    </Call>
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8084</Arg>
    </New>
    </Arg>
    </Call>
    </New>
    </Put>
    <Put name="FORM">
    <New class="java.util.ArrayList">
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8080</Arg>
    </New>
    </Arg>
    </Call>
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8084</Arg>
    </New>
    </Arg>
    </Call>
    </New>
    </Put>
    <Put name="HWR">
    <New class="java.util.ArrayList">
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8083</Arg>
    </New>
    </Arg>
    </Call>
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8084</Arg>
    </New>
    </Arg>
    </Call>
    </New>
    </Put>
    </New>
    <New id="fpp.form.jmx.properties" class="java.util.HashMap">
    <!-- InkJmsQueue -->
    <Put name="inkJmsQueueSize">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">QueueSize</Put>
    </New>
    </Put>
    <Put name="inkJmsConsumerCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">ConsumerCount</Put>
    </New>
    </Put>
    <Put name="inkJmsDequeueCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">DequeueCount</Put>
    </New>
    </Put>
    <Put name="inkJmsAverageEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">AverageEnqueueTime</Put>
    </New>
    </Put>
    <Put name="inkJmsMaxEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">MaxEnqueueTime</Put>
    </New>
    </Put>
    <!--FieldNotifJmsQueue -->
    <Put name="fieldNotifJmsQueueSize">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">QueueSize</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsConsumerCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">ConsumerCount</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsDequeueCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">DequeueCount</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsAverageEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">AverageEnqueueTime</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsMaxEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">MaxEnqueueTime</Put>
    </New>
    </Put>
    </New>
    <New id="fpp.form.ui.parameters" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.form.ui.parameters</Arg>
    <Arg>
    <New
    class="com.visionobjects.myscript.fpp.ui.parameters.impl.UIParametersServiceImpl">
    <Set name="jmxProperties">
    <Ref id="fpp.form.jmx.properties"></Ref>
    </Set>
    <Set name="serverList">
    <Ref id="server.list"></Ref>
    </Set>
    </New>
    </Arg>
    </New>
    </Configure>
    Thanks so much in advance.
     

    Hello guys,
    I have been setting a production system with bitronix transaction manager, SQL server 2008, XA transactions and jetty 6. In the beginning this software was configured to run with MySQL. But one of my customer decided to move everything to MSSQL server 2008.
    In that moment I was trying to get this up and running for some weeks (The configuration was completely different) and finally I got it.
    The configuration with MSSQL server was running perfectly during 1 month but then from one day to other the error message I will show now appeared and I do not how to solve it. I almost read all the hints from google about this exception but nothing helped
    me out.
    I hope you guys can help me to find a way to solve it.
    - I tried different version of the jdbc driver 3.0 and 4.0.
    - I tried to export exactly the database to my localserver and it's running perfectly with the same configuration.
    The problem is that I cannot reproduce the error in other place that is not the customer and at the same time I have no access to their internal database server. They installed all the XA transaction stuff (dll in binn, enable XA, and grant the permissions
    for SQLXAUser), I am quite sure because it was running for one month without any problem.
    I asked to the customer if anything happenend on their server (microsoft updates, machines reboot, ...) but nothing of these happened.
    Also I tried this link out but did not help me.
    <a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess">http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess</a>
    The exception is the following:
     [2014-05-15 14:06:08,842] INFO  3666[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Starting Bitronix Transaction Manager
    [2014-05-15 14:06:08,951] INFO  3775[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Extract ./webapps/myscript-fpp-wrapper-server.war to D:\Temp\Jetty_0_0_0_0_8080_myscript.fpp.wrapper.server.war__myscript.form.wrapper.server__.bnwnn7\webapp
    [2014-05-15 14:06:10,324] INFO  5148[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - NO JSP Support for /myscript-form-wrapper-server, did not find org.apache.jasper.servlet.JspServlet
    [2014-05-15 14:06:12,742] WARN  7566[main] - org.dozer.config.GlobalSettings.loadGlobalSettings(GlobalSettings.java:118) - Dozer configuration file not found: dozer.properties.  Using defaults for all Dozer global properties.
    [2014-05-15 14:06:13,288] WARN  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:100) - SQL Error: 0, SQLState: null
    [2014-05-15 14:06:13,288]ERROR  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:101) - error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with
    usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
    [2014-05-15 14:06:13,319]ERROR  8143[main] - org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220) - Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleRegistration' defined in class path resource [com/visionobjects/myscript/fpp/wrapper/module-registration.xml]: Invocation of init method failed; nested exception is
    org.hibernate.exception.GenericJDBCException: could not execute query
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:534)
        at org.mortbay.start.Main.start(Main.java:441)
        at org.mortbay.start.Main.main(Main.java:119)
    Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
        at org.hibernate.loader.Loader.doList(Loader.java:2235)
        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
        at org.hibernate.loader.Loader.list(Loader.java:2124)
        at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1597)
        at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
        at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
        at com.visionobjects.myscript.fpp.form.dao.impl.ModuleInfoDaoImpl.getModuleInfo(ModuleInfoDaoImpl.java:57)
        at com.visionobjects.myscript.fpp.ModuleRegistration$1.doInTransactionWithoutResult(ModuleRegistration.java:73)
        at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at com.visionobjects.myscript.fpp.ModuleRegistration.init(ModuleRegistration.java:66)
        at com.visionobjects.myscript.fpp.ModuleRegistration.start(ModuleRegistration.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
        ... 33 more
    Caused by: java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
        at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)
        at bitronix.tm.resource.jdbc.JdbcConnectionHandle.prepareStatement(JdbcConnectionHandle.java:243)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
        at $Proxy29.prepareStatement(Unknown Source)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
        at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
        at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
        at org.hibernate.loader.Loader.doQuery(Loader.java:696)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
        at org.hibernate.loader.Loader.doList(Loader.java:2232)
        ... 52 more
    Caused by: bitronix.tm.internal.BitronixSystemException: cannot enlist an XAResourceHolderState with uniqueName=fppDataSource XAResource= XAResourceID:1 with XID a Bitronix XID [6A657474792D6670702D73657276657200000145FFC68B9B00000000 : 6A657474792D6670702D73657276657200000145FFC68BCA00000002],
    error=XAER_RMERR
        at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:100)
        at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:70)
        at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)
        ... 66 more
    <b>Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned </b>
        at com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:642)
        at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(SQLServerXAResource.java:674)
        at bitronix.tm.internal.XAResourceHolderState.start(XAResourceHolderState.java:211)
        at bitronix.tm.internal.XAResourceManager.enlist(XAResourceManager.java:108)
        at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:93)
        ... 68 more
    I think the "bold" exception is the key.
    Also the configuration file of my jetty server.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
    <!-- developpment jetty configuration -->
    <!-- launch with main class : org.mortbay.start.Main app arguments:
    deploy-conf/jetty-conf/mysql/jetty-dev.xml vm arguments : -Xmx1024M -DSTOP.KEY=stop
    -DSTOP.PORT=6669 to stop : - - stop -Xmx1024M -DSTOP.KEY=stop -DSTOP.PORT=6669 -->
    <Configure id="Server" class="org.mortbay.jetty.Server">
    <Array id="plusConfig" type="java.lang.String">
    <Item>org.mortbay.jetty.webapp.WebInfConfiguration</Item>
    <Item>org.mortbay.jetty.plus.webapp.EnvConfiguration</Item>
    <Item>org.mortbay.jetty.plus.webapp.Configuration</Item>
    <Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration</Item>
    <Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item>
    </Array>
    <Array id="serverClasses" type="java.lang.String">
    </Array>
    <Array id="systemClasses" type="java.lang.String">
    </Array>
    <!-- web apps -->
    <Set name="handler">
    <New id="handlerContext" class="org.mortbay.jetty.handler.ContextHandlerCollection">
    <Set name="handlers">
    <Array id="handlerArray" type="org.mortbay.jetty.webapp.WebAppContext">
    <!-- wrapper server -->
    <Item>
    <New class="org.mortbay.jetty.webapp.WebAppContext">
    <Arg>./webapps/myscript-fpp-wrapper-server.war</Arg>
    <Arg>/myscript-form-wrapper-server</Arg>
    <Set name="serverClasses">
    <Ref id="serverClasses" />
    </Set>
    <Set name="ConfigurationClasses">
    <Ref id="plusConfig" />
    </Set>
    </New>
    </Item>
    <!-- form server -->
    <Item>
    <New class="org.mortbay.jetty.webapp.WebAppContext">
    <Arg>./webapps/myscript-fpp-form-server.war
    </Arg>
    <Arg>/myscript-form-server</Arg>
    <Set name="serverClasses">
    <Ref id="serverClasses" />
    </Set>
    <Set name="ConfigurationClasses">
    <Ref id="plusConfig" />
    </Set>
    </New>
    </Item>
    <!-- hwr server -->
    <Item>
    <New class="org.mortbay.jetty.webapp.WebAppContext">
    <Arg>./webapps/myscript-fpp-hwr-server.war</Arg>
    <Arg>/myscript-form-hwr-server</Arg>
    <Set name="serverClasses">
    <Ref id="serverClasses" />
    </Set>
    <Set name="ConfigurationClasses">
    <Ref id="plusConfig" />
    </Set>
    </New>
    </Item>
    </Array>
    </Set>
    </New>
    </Set>
    <Call name="addConnector">
    <Arg>
    <New class="org.mortbay.jetty.nio.SelectChannelConnector">
    <Set name="port">8080</Set>
    </New>
    </Arg>
    </Call>
    <!-- Use the jdk 1.5 platformMBeanServer -->
    <Call id="MBeanServer" class="java.lang.management.ManagementFactory"
    name="getPlatformMBeanServer" />
    <Get id="Container" name="container">
    <Call name="addEventListener">
    <Arg>
    <New class="org.mortbay.management.MBeanContainer">
    <Arg>
    <Ref id="MBeanServer" />
    </Arg>
    <Call name="start" />
    </New>
    </Arg>
    </Call>
    </Get>
    <!-- Setup the RMIRegistry on a specific port -->
    <Call id="rmiRegistry" class="java.rmi.registry.LocateRegistry"
    name="createRegistry">
    <Arg type="int">2099</Arg>
    </Call>
    <!-- Setup the JMXConnectorServer on a specific rmi server port -->
    <Call id="jmxConnectorServer" class="javax.management.remote.JMXConnectorServerFactory"
    name="newJMXConnectorServer">
    <Arg>
    <New class="javax.management.remote.JMXServiceURL">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    </Arg>
    <Arg />
    <Arg>
    <Ref id="MBeanServer" />
    </Arg>
    <Call name="start" />
    </Call>
    <!--************************* -->
    <!-- embbeded ActiveMQ Broker -->
    <!--************************* -->
    <New id="brokerService" class="org.apache.activemq.broker.BrokerService">
    <Set name="brokerName">fppBrokerActiveMQ</Set>
    <Set name="dataDirectoryFile"></Set>
    <Call name="getSystemUsage">
    <Call name="getMemoryUsage">
    <Set name="limit">26428800</Set>
    </Call>
    <Call name="getStoreUsage">
    <Set name="limit">204857600</Set>
    </Call>
    </Call>
    <Call name="addConnector">
    <Arg>nio://localhost:61615</Arg>
    </Call>
    <Call name="start"></Call>
    </New>
    <!-- ************************** -->
    <!-- common fpp jndi resources -->
    <!-- ************************** -->
    <!-- ui debug properties -->
    <New id="fpp.common-ui.velocityProperties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.common-ui.velocityProperties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="spring.resource.loader.class">org.springframework.ui.velocity.SpringResourceLoader
    </Put>
    <Put name="spring.resource.loader.cache">false</Put>
    <Put name="velocimacro.library.autoreload">true</Put>
    </New>
    </Arg>
    </New>
    <New id="fpp.wrapper-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.wrapper-server.properties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="fpp.wrapper-server.instanceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/instance?wsdl
    </Put>
    <Put name="fpp.wrapper-server.formServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/form?wsdl
    </Put>
    <Put name="fpp.wrapper-server.formDeprecatedServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/formDeprecated?wsdl
    </Put>
    <Put name="fpp.wrapper-server.hwrResourceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/hwrResource?wsdl
    </Put>
    <Put name="fpp.wrapper-server.defaultEnvironmentName">default</Put>
    <Put name="fpp.wrapper-server.defaultEnvironmentType">STANDARD</Put>
    <Put name="fpp.wrapper-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.show_sql">true</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.use_query_cache">false</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.use_second_level_cache">false</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.use_structured_cache">false</Put>
    <Put name="fpp.wrapper-server.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
    </New>
    </Arg>
    </New>
    <!-- transaction manager - bitronix -->
    <Call name="getConfiguration" class="bitronix.tm.TransactionManagerServices">
    <Set name="serverId">jetty-fpp-server</Set>
    <Set name="gracefulShutdownInterval">45</Set>
    <Set name="logPart1Filename">btm/btm1.tlog</Set>
    <Set name="logPart2Filename">btm/btm2.tlog</Set>
    </Call>
    <Set name="gracefulShutdown">60000</Set>
    <Call name="addLifeCycle">
    <Arg>
    <New class="bitronix.tm.integration.jetty6.BTMLifeCycle" />
    </Arg>
    </Call>
    <New class="org.mortbay.jetty.plus.naming.Transaction">
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <New class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>java:/TransactionManager</Arg>
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>java:comp/TransactionManager</Arg>
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>java:comp/UserTransaction</Arg>
    <Arg>
    <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
    </Arg>
    </New>
    <!-- database data source -->
    <New id="fppDataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource">
    <Set name="uniqueName">fppDataSource</Set>
    <Set name="className">com.microsoft.sqlserver.jdbc.SQLServerXADataSource</Set>
    <Set name="minPoolSize">0</Set>
    <Set name="maxPoolSize">50</Set>
    <Get name="driverProperties">
    <Put name="serverName">DYHVDB01</Put>
    <Put name="instanceName">ALPHA</Put>
    <Put name="integratedSecurity">false</Put>
    <Put name="databaseName">tdb_digipen_fpp</Put>
    <Put name="user">manage_digipen</Put>
    <Put name="password">5T1fte?</Put>
    <!--Needed to test??<Put name="pinGlobalTxToPhysicalConnection">true</Put>-->
    </Get>
    <Call name="init" />
    </New>
    <!-- Jms connection factories -->
    <New id="fppServerConnectionFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory">
    <Set name="className">org.apache.activemq.ActiveMQXAConnectionFactory</Set>
    <Set name="uniqueName">fppServerConnectionFactory</Set>
    <Set name="minPoolSize">4</Set>
    <Set name="maxPoolSize">40</Set>
    <Set name="allowLocalTransactions">true</Set>
    <Get name="driverProperties">
    <Put name="brokerURL">nio://localhost:61615?jms.prefetchPolicy.all=50</Put>
    <New class="org.apache.activemq.RedeliveryPolicy">
    <Set name="maximumRedeliveries">-1</Set>
    <Set name="backOffMultiplier">2</Set>
    </New>
    </Get>
    <Call name="init" />
    </New>
    <!-- JMS Queues & topics -->
    <New id="formNotifiationTopic" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/formNotifiationTopic</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQTopic">
    <Arg>formNotifiationTopic</Arg>
    </New>
    </Arg>
    </New>
    <New id="fieldJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/fieldJmsQueue</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQQueue">
    <Arg>fieldJmsQueue</Arg>
    </New>
    </Arg>
    </New>
    <New id="fieldNotifJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/fieldNotifJmsQueue</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQQueue">
    <Arg>fieldNotifJmsQueue</Arg>
    </New>
    </Arg>
    </New>
    <New id="inkJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>fpp/inkJmsQueue</Arg>
    <Arg>
    <New class="org.apache.activemq.command.ActiveMQQueue">
    <Arg>inkJmsQueue</Arg>
    </New>
    </Arg>
    </New>
    <!-- native library services -->
    <New id="myscriptLicenseService" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/myscriptLicenseService</Arg>
    <Arg>
    <New
    class="com.visionobjects.licensemanager.impl.MyscriptLicenseServiceImpl">
    <Arg>localhost</Arg>
    </New>
    </Arg>
    </New>
    <!-- *********************** -->
    <!-- form server properties -->
    <!-- *********************** -->
    <New id="fpp.form.properties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.form.properties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="fpp.form.defaultEnvironmentName">default</Put>
    <Put name="fpp.form.defaultEnvironmentType">STANDARD</Put>
    <Put name="fpp.form.jbpm.job.nbexecutor">4</Put>
    <Put name="fpp.form.jbpm.job.idleinterval">1000</Put>
    <Put name="fpp.form.field.notif.nbconsumers">2</Put>
    <Put name="fpp.form.ink.nbconsumers">2</Put>
    <Put name="fpp.form.instance.instanceValidationMode">STANDARD</Put>
    <Put name="fpp.form.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <!--<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>-->
    <Put name="fpp.form.formdb.hibernate.show_sql">true</Put>
    <Put name="fpp.form.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put name="fpp.form.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
    </Put>
    <Put name="fpp.form.formdb.hibernate.cache.use_query_cache">false</Put>
    <Put name="fpp.form.formdb.hibernate.cache.use_second_level_cache">false</Put>
    <Put name="fpp.form.formdb.hibernate.cache.use_structured_cache">false</Put>
    <Put name="fpp.form.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
    <Put name="fpp.form.jbpmdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <Put name="fpp.form.jbpmdb.hibernate.show_sql">true</Put>
    <Put name="fpp.form.jbpmdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put name="fpp.form.jbpmdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
    </Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.use_query_cache">false</Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.use_second_level_cache">false</Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.use_structured_cache">false</Put>
    <Put name="fpp.form.jbpmdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
    <Put name="fpp.form.scheduler.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.MSSQLDelegate</Put>
    <Put name="fpp.form.scheduler.dataSource.driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</Put>
    <Put name="fpp.form.scheduler.dataSource.URL">jdbc:sqlserver://DYHVDB01\ALPHA;DatabaseName=tdb_digipen_fpp;integratedSecurity=false
    </Put>
    <Put name="fpp.form.scheduler.dataSource.user">manage_digipen</Put>
    <Put name="fpp.form.scheduler.dataSource.password">5T1fte?</Put>
    <!-- Cron Format A cron expression is a string comprised of 6 or 7 fields
    separated by white space. Fields can contain any of the allowed values, along
    with various combinations of the allowed special characters for that field.
    The fields are as follows: Field Name Mandatory Allowed Values Allowed Special
    Characters Seconds YES 0-59 , - * / Minutes YES 0-59 , - * / Hours YES 0-23
    , - * / Day of month YES 1-31 , - * ? / L W Month YES 1-12 or JAN-DEC , -
    * / Day of week YES 1-7 or SUN-SAT , - * ? / L # Year NO empty, 1970-2099
    , - * / -->
    <Put name="fpp.form.purge.moduleinfo.cron">0 0/1 * * * ?</Put>
    <Put name="fpp.form.purge.instances.cron">0 0 * * * ?</Put>
    <Put name="fpp.form.purge.instances.defaultcase">365</Put>
    <Put name="fpp.form.purge.instances.case1">10</Put>
    <Put name="fpp.form.purge.instances.case2">60</Put>
    <Put name="fpp.form.purge.instances.case3">100</Put>
    <Put name="fpp.form.purge.instances.case4">30</Put>
    <Put name="fpp.form.purge.instances.case5">60</Put>
    <Put name="fpp.form.export.cron">0 0 * * * ?</Put>
    <Put name="fpp.form.export.exportpath">C:\FPP</Put>
    <Put name="fpp.form.export.exportMode">REGULAR</Put>
    <Put name="fpp.form.export.buildingType">INCREMENTAL</Put>
    <Put name="fpp.form.export.addInformations">true</Put>
    </New>
    </Arg>
    </New>
    <New id="fppFormDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>jdbc/fppFormDbDataSource</Arg>
    <Arg>
    <Ref id="fppDataSource"></Ref>
    </Arg>
    </New>
    <New id="fppJbpmDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>jdbc/fppJbpmDbDataSource</Arg>
    <Arg>
    <Ref id="fppDataSource" />
    </Arg>
    </New>
    <New id="formJmsTopicConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/formJmsTopicConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="fieldProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldProducerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="fieldNotifConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldNotifConsumerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="inkConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/inkConsumerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <!-- HWR SERVER -->
    <New id="fpp.hwr-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.hwr-server.properties</Arg>
    <Arg>
    <New class="java.util.Properties">
    <Put name="fpp.hwr-server.formbroker.uri">failover:nio://localhost:61615</Put>
    <Put name="fpp.hwr-server.fieldConsumers">4</Put>
    <Put name="fpp.hwr-server.resourceManager.memoryUsageThreshold">262144000</Put>
    <Put name="fpp.hwr-server.resourceManager.resourceCountThreshold">150</Put>
    <Put name="fpp.hwr-server.resourceManager.idleTimeLimit">1800000</Put>
    <Put name="fpp.hwr-server.resourceManager.timeToLive">3600000</Put>
    <Put name="fpp.hwr-server.resourceManager.wakeUpInterval">100000</Put>
    <Put name="fpp.hwr-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
    <Put name="fpp.hwr-server.formdb.hibernate.show_sql">true</Put>
    <Put name="fpp.hwr-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
    <Put
    name="fpp.hwr-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
    <Put name="fpp.hwr-server.internal.dumpRecognition">false</Put>
    </New>
    </Arg>
    </New>
    <New id="myscriptHwrService" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/myscriptHwrService</Arg>
    <Arg>
    <New class="com.visionobjects.myscript.commons.hwr.engine.HwrEngineService">
    <Set name="handwritingContextUserLimit">50</Set>
    <Set name="resourceUserLimit">0</Set>
    <Set name="otherObjectUserLimit">500</Set>
    <Call name="doStart" />
    </New>
    </Arg>
    </New>
    <New id="fieldNotificationProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldNotificationProducerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <New id="fieldConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fieldConsumerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppServerConnectionFactory" />
    </Arg>
    </New>
    <!-- wrapper -->
    <New id="fppWrapperServerConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <Set name="brokerURL">nio://localhost:61615</Set>
    <Set name="redeliveryPolicy">
    <New class="org.apache.activemq.RedeliveryPolicy">
    <Set name="maximumRedeliveries">-1</Set>
    <Set name="backOffMultiplier">2</Set>
    </New>
    </Set>
    </New>
    <New id="formNotificationConsumerFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/formNotificationConsumerFactory</Arg>
    <Arg>
    <Ref id="fppWrapperServerConnectionFactory" />
    </Arg>
    </New>
    <New id="inkProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/inkProducerJmsConnectionFactory</Arg>
    <Arg>
    <Ref id="fppWrapperServerConnectionFactory" />
    </Arg>
    </New>
    <!-- JMX/SENSORS -->
    <New id="inkJmsQueueUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="inkJmsQueueObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=inkJmsQueue
    </Arg>
    </New>
    <New id="fieldNotifJmsQueueUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="fieldNotifJmsQueueObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldNotifJmsQueue
    </Arg>
    </New>
    <New id="fieldJmsQueueUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="fieldJmsQueueObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldJmsQueue
    </Arg>
    </New>
    <New id="formNotifiationTopicUrl" class="java.lang.String">
    <Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
    </Arg>
    </New>
    <New id="formNotifiationTopicObjectName" class="java.lang.String">
    <Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=formNotifiationTopic
    </Arg>
    </New>
    <New id="server.list" class="java.util.HashMap">
    <!-- InkJmsQueue -->
    <Put name="WRP">
    <New class="java.util.ArrayList">
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8081</Arg>
    </New>
    </Arg>
    </Call>
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8084</Arg>
    </New>
    </Arg>
    </Call>
    </New>
    </Put>
    <Put name="FORM">
    <New class="java.util.ArrayList">
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8080</Arg>
    </New>
    </Arg>
    </Call>
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8084</Arg>
    </New>
    </Arg>
    </Call>
    </New>
    </Put>
    <Put name="HWR">
    <New class="java.util.ArrayList">
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8083</Arg>
    </New>
    </Arg>
    </Call>
    <Call name="add">
    <Arg>
    <New class="java.lang.String">
    <Arg>http://localhost:8084</Arg>
    </New>
    </Arg>
    </Call>
    </New>
    </Put>
    </New>
    <New id="fpp.form.jmx.properties" class="java.util.HashMap">
    <!-- InkJmsQueue -->
    <Put name="inkJmsQueueSize">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">QueueSize</Put>
    </New>
    </Put>
    <Put name="inkJmsConsumerCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">ConsumerCount</Put>
    </New>
    </Put>
    <Put name="inkJmsDequeueCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">DequeueCount</Put>
    </New>
    </Put>
    <Put name="inkJmsAverageEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">AverageEnqueueTime</Put>
    </New>
    </Put>
    <Put name="inkJmsMaxEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="inkJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="inkJmsQueueObjectName" />
    </Put>
    <Put name="attribute">MaxEnqueueTime</Put>
    </New>
    </Put>
    <!--FieldNotifJmsQueue -->
    <Put name="fieldNotifJmsQueueSize">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">QueueSize</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsConsumerCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">ConsumerCount</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsDequeueCount">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">DequeueCount</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsAverageEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">AverageEnqueueTime</Put>
    </New>
    </Put>
    <Put name="fieldNotifJmsMaxEnqueueTime">
    <New class="java.util.HashMap">
    <Put name="urlQueue">
    <Ref id="fieldNotifJmsQueueUrl" />
    </Put>
    <Put name="objectName">
    <Ref id="fieldNotifJmsQueueObjectName" />
    </Put>
    <Put name="attribute">MaxEnqueueTime</Put>
    </New>
    </Put>
    </New>
    <New id="fpp.form.ui.parameters" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>
    <Ref id="Server" />
    </Arg>
    <Arg>fpp/fpp.form.ui.parameters</Arg>
    <Arg>
    <New
    class="com.visionobjects.myscript.fpp.ui.parameters.impl.UIParametersServiceImpl">
    <Set name="jmxProperties">
    <Ref id="fpp.form.jmx.properties"></Ref>
    </Set>
    <Set name="serverList">
    <Ref id="server.list"></Ref>
    </Set>
    </New>
    </Arg>
    </New>
    </Configure>
    Thanks so much in advance.
     

  • BUG JSF h:dataTable with JDBC ResultSet - only last column is updated

    I tried to create updatable h:dataTable tag with three h:inputText columns with JDBC ResultSet as data source. But what ever I did I have seceded to update only the last column in h:dataTable tag.
    My JSF page is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.people}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>
    My java been is:
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getPeople() {
    return resultSet;
    I have instaled “Oracle Database 10g Express Edition Release 10.2.0.1.0” – product on my PC localy. I have enabled HR schema and I have instaled and pupulated with sample data folloving table:
    CREATE TABLE "PERSON"
    (     "PIN" VARCHAR2(20) NOT NULL ENABLE,
         "SURNAME" VARCHAR2(30),
         "NAME" VARCHAR2(30),
         CONSTRAINT "PERSON_PK" PRIMARY KEY ("PIN") ENABLE
    I have:
    Windows XP SP2
    Oracle JDeveloper Studio Edition Version 10.1.3.1.0.3894
    I am not shure why this works in that way, but I think that this is a BUG
    Thanks in advance.

    Hi,
    I am sorry because of formatting but while I am entering text looks fine but in preview it is all scrambled. I was looking on the Web for similar problems and I did not find anything similar. Its very simple sample and I could not believe that the problem is in SUN JSF library. I was thinking that problem is in some ResultSet parameter or in some specific Oracle implementation of JDBC thin driver. I did not try this sample on any other platform, database or programming tool. I am new in Java and JSF and I have some experience only with JDeveloper.
    Java been(session scope):
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement
    (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getZaposleni() {
    return resultSet;
    JSF Page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.zaposleni}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>

  • How to implement scroll in a list of data in a carac. RF terminal?

    Hi,
    Does anyone know how to implement some sort of scroll box in a SAPConsole context, to appear in a caracter based RF terminal?
    Thanks,
    Bruno

    I'm pretty sure there is nothing like that.  That is more of a GUI function.  You can probably to something, like paging up and down.  Of course you would have to handle this in your ABAP code.  For example,  say your screen is 20X16.  Meaning that you have 16 lines to work with.  Say that your list has 32 lines.  When presenting to the user for the first time, your screen would have the first 16 lines display,  if the user would press some FCODE, then you would refresh the screen with the next 16 lines. Make sense?  Exactly what is your requirement.
    Regards,
    Rich Heilman

  • Using objects rather than jdbc resultset to fill reports

    Hi buddies!
    I�m developing a small sample of application that generates reports using values retrieved from objects.
    The idea is simple, I have an arraylist of objects and want to fill my report which these objects atributes.
    Jasper Project API has a class called JasperFillManager which is used to fill reports and takes 3 arguments, for instance:
    JasperFillManager.fillReport(JasperReport reporttofill,HashMap parameters, JRDataSource dataSource)
    I�ve created a custom JRDataSource named fonteDadosJasperCustomizada
    This class implements an arraylist of objects and two methods from the interface JRDataSource which are responsible for giving the values to fill the report. This class doesn�t take values from a resultset! ;)
    but for some reason nothing appears to me after executing the application... everything is alright I think the might be a mistake in the interface methods, the report also is alright.
    All sugestions are welcome
    thanks
    import java.sql.*;
    import java.util.HashMap;
    import java.util.Map;
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    import net.sf.jasperreports.view.JasperViewer;
    public class relatorioteste1{
         public relatorioteste1(){
         try{     
              fonteDadosJasperCustomizada fonte = new fonteDadosJasperCustomizada();
              JasperDesign relatoriocarregado = JRXmlLoader.load("c:/relatorioteste1.jrxml");          
              JasperReport relatoriocompilado = JasperCompileManager.compileReport(relatoriocarregado);
              /*the parameter fonte being passed to fillManager is a custom JRDataSource.
              * The default JRResultSetDataSource only receives a JDBC ResultSet and
              * extracts Data from it to fill the Report, such Object is implements
              * the JRDataSource interface which defines methods that are used by
              * fillManager to obtain data from the ResultSet.
              * My intention is to create my own JRDataSource class which should
              * be able to retrieve data from objects instead of ResultSet
              * See class fonteDadosJasperCustomizada for details
              JasperPrint relatorioimpresso = JasperFillManager.fillReport(relatoriocompilado,new HashMap(),fonte);
              JasperViewer.viewReport(relatorioimpresso);
         catch(Exception e){
              javax.swing.JOptionPane.showMessageDialog(null, e.getMessage());
         public static void main(String args[]){
              new relatorioteste1();
    import net.sf.jasperreports.engine.JRDataSource;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JRField;
    import java.util.ArrayList;
    public class fonteDadosJasperCustomizada implements JRDataSource {
         public Object getFieldValue(JRField arg0) throws JRException{
         /*The following line returns the next object(aluno) from
         * the arraylist collection
              Aluno aluno = (Aluno) dados.listIterator().next();
         /*This block verifies which column value(field) is being
         * requested by the jasperFillManager.fillReport and returns
         * an object value corresponding to the field
              if ("codigo".equals(arg0.getName()))
                   return Integer.valueOf(aluno.getCodigo());
              else if ("nome".equals(arg0.getName()))
                   return aluno.getNome();
              else
                   return Integer.valueOf(aluno.getIdade());     
              public boolean next() throws JRException{
              /*this decision verifies if there�re more elements in
              * the arraylist collection if so returns true... else returns
              * false
              if (dados.listIterator().hasNext())
                   return true;
              else
                   return false;
         public fonteDadosJasperCustomizada(){
              /*The constructor of my custom JRResulSetDataSource should receive
              * a JDBC ResultSet in place of an Arraylist of Objects
              * The atributes of each object is mapped to a field in
              * jasperreports template
              dados = new ArrayList();
              dados.add(new Aluno(1,"charlles cuba",25));
              dados.add(new Aluno(2,"Maicom napolle",25));
              dados.add(new Aluno(3,"Gustavo castro",21));          
         public static void main(String args[]){
              new fonteDadosJasperCustomizada();
         ArrayList dados;     
    }

    Buddies thansk everyone
    I�m really grateful... the previous post in here was very useful to me. I
    was wrong about ArrayList.listIterator.
    I finnaly generated a report from an arraylist of objects.
    Here�s the code... I made some changes the first one was wrong
    HERE IS MY MAIN CLASS RESPONSIBLE FOR GENERATING THE REPORT
    public class relatorioteste1{     
         public relatorioteste1(){
              try{     
                   fonteDadosJasperCustomizada fonte = new fonteDadosJasperCustomizada();
                   JasperDesign relatoriocarregado = JRXmlLoader.load("c:/relatorioteste1.jrxml");          
                   JasperReport relatoriocompilado = JasperCompileManager.compileReport(relatoriocarregado);                    
                   JasperPrint relatorioimpresso = JasperFillManager.fillReport(relatoriocompilado,new HashMap(),fonte);
                   JasperViewer.viewReport(relatorioimpresso);
              catch(Exception e){
                   javax.swing.JOptionPane.showMessageDialog(null, e.getMessage());
         public static void main(String args[]){
              new relatorioteste1();
    HERE IS MY CUSTOM JRDATASOURCE
    public class fonteDadosJasperCustomizada implements JRDataSource {
         public Object getFieldValue(JRField arg0) throws JRException{     
              if ("codigo".equals(arg0.getName()))
                   return Integer.valueOf(aluno.getCodigo());
              else if ("nome".equals(arg0.getName()))
                   return aluno.getNome();
              else
                   return Integer.valueOf(aluno.getIdade());
         public boolean next() throws JRException{
              if (iterator.hasNext()){
                   aluno = (Aluno) iterator.next();                    
                   return true;
              else
                   return false;          
         public fonteDadosJasperCustomizada(){          
              dados = new ArrayList();
              dados.add(new Aluno(1,"charlles cuba",25));
              dados.add(new Aluno(2,"Maicom napolle",25));
              dados.add(new Aluno(3,"Gustavo castro",21));
              iterator = dados.listIterator();
         public static void main(String args[]){
              new fonteDadosJasperCustomizada();
         ArrayList dados;
         Iterator iterator;
         Aluno aluno;
    }

  • How to implement XI interfaces in online and offline modes?

    Hi Everybody,
    Can you please tell me how to implement XI interfaces in online and offline modes?
    thanks a lot,
    Ramya Shenoy.

    Hi,
    Are you looking for Push and Pull mechanism of PI?
    When the adapters like SOAP, HTTP, IDOC, etc. send the data to PI , it is nothing but a push mechanism, and hence the communication is synchronous by default.
    But adapters like JDBC, File, etc. they fetch the data from Source Applications, so it is a kind of Pull mechanism for PI, and
    by default communication is asynchrnous.
    Pls elaborate exactly what are you looking for?
    Regards,
    Supriya.

  • How to implement the FCKeditor in the WPC

    Hi all,
    can anyone tell me how to implement the FCKeditor in the Web Page Composer?
    I failed to implement TinyMCE because of the domain relaxing thing...
    Thanks a lot
    Steffi

    It's one of J2EE Patterns - Value List Handler.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html
    Here is some implementation.
    http://valuelist.sourceforge.net/
    and some article
    http://www.devx.com/Java/Article/21383
    Just google "J2EE paging"

Maybe you are looking for