Putting data to database??????HELP

Hello, can anybody help me. I'm trying to store a blob object in to SQL Server 2000 and i got java.lang.ArrayIndexOutOfBoundsException
on the line pstm.setBinaryStream(7,infile,infile.available());
THANKS !!!!
This is mainly my source:
Connection con = null;
PreparedStatement pstm = null;
try
Date dtDate = Date.valueOf(strDate);
con = getConnection();
con.setAutoCommit(false);
Blob blob = null;
pstm = con.prepareStatement("INSERT INTO Version(Id_Number, Description, Version_Size, Version_Number, Marked, Create_Date, The_File, File_Record_Number)values ('?','?','?',?,?,?,?,?)");
System.out.println("�essi f�na setning komin � ofninn");
java.io.File file = new java.io.File("c:\\tmp\\files\\filein.doc");
FileInputStream infile = new FileInputStream (file);
pstm.setBinaryStream(7, infile,infile.available());
System.out.println("b�in a� str�ma");
pstm.setString(1,strIdNo);
pstm.setString(2,strDescript);
pstm.setString(3,strSize);
pstm.setDouble(4,dVersionNo);
pstm.setInt(5,nMarked);
pstm.setDate(6,dtDate);
pstm.setInt(8, nFile);
pstm.execute();
con.commit();
return true;
}

pstm = con.prepareStatement("INSERT INTO
INTO Version(Id_Number, Description, Version_Size,
Version_Number, Marked, Create_Date, The_File,
File_Record_Number)values ('?','?','?',?,?,?,?,?)");I guess that should be
pstm = con.prepareStatement("INSERT INTO Version(Id_Number, Description, Version_Size,Version_Number, Marked, Create_Date, The_File,File_Record_Number)values (?,?,?,?,?,?,?,?)");
ie it should be ? and not '?'

Similar Messages

  • How to put data from database into array

    I need to answer hot to put data from database directly into array.
    I tried like the code below but the error message said: java.lang.ArrayIndexOutOfBoundsException: 0, and it points to this line: numbers [row][0]= rs.getString("ID");
    Hope you can help.
    ResultSet rs = stmt.executeQuery(query);
         int row=0;
         String [] [] numbers=new String [row][10];
         // output resultset
         while ( rs.next() )
              numbers [row][0]= rs.getString("ID");
              numbers [row][1]= rs.getString("name");
         row++;
         // close resultset
         rs.close();
    thanks,Devi

    The exception is been thrown simply because you assigned '0' to the 'row' variable, indicating a zero length of the array. In fact you should assign the row count to it.
    After all, don't do that. Make use of the Collection framework and map the ResultSet to a Collection of DTO's.
    List<User> users = new ArrayList<User>();
    while (resultSet.next()) {
        User user = new User();
        user.setID(resultSet.getString("ID"));
        user.setName(resultSet.getString("name"));
        users.add(user);
    }

  • Script to put Datas from Database to TextInput

    Hello,
    As it is said in the title, I would like to put Datas from Database to Textinput. Here's my application :
    Well, what I want to do is when you click on the lines in the Datagrid, the "Nom Area" is completed by the Name in the Datagrid, the "adresse area" by the adress in the Datagrid ...
    Can someone help me ? please
    Thank you

    Here's my code
    <code>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:fourD="http://www.4d.com/2007/mxml" layout="absolute"  viewSourceURL="srcview/index.html" backgroundGradientAlphas="[1.0,1.0]" backgroundGradientColors="[#EDE3E3, #555555]" color="#040404" height="899">
    <mx:Script>
    <![CDATA[
    import fourD.sql.*;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var _resultSet:SQLResultSet;
    // Initialisation de la connection
    private function connectHandler(event:Event):void
    fourDSQLService.execute("SELECT * FROM clients"); }
    private function resultHandler(event:ResultEvent):void
    if(event.result != null) { _resultSet = event.result as SQLResultSet; } }
    // En cas d'erreur
    private function faultHandler(event:FaultEvent):void
    var zeError:String= "Error #" + event.fault.faultCode;
    // Message d'erreur
    Alert.show(event.fault.faultString,zeError); }
    ]]>
    </mx:Script>
    <!-- Declaration du serveur SQL-->
    <!-- Connection automatique au dŽmarrage de l'application (login/mdp)-->
    <!-- ImplŽmentation des fonctions -->
    <fourD:SQLService id = "fourDSQLService"
    host = "127.0.0.1"
    userName = "sqlUser"
    userPassword="sql"
    autoConnect="true"
    result = "resultHandler(event)"
    fault = "faultHandler(event)"
    connect="connectHandler(event)"
    />
    <!-- Declare the 4D datagrid; It is also possible to use Flex embed datagrid -->
    <!-- Bind datagrid source to SQLresultSet coming from 4D-->
    <fourD:DataGrid id="contacts_dg"
    dataProvider="{_resultSet}" x="10" y="207" width="737" height="397"
    />
    <mx:Button x="588" y="627" label="Ajouter" id="btnAjouter"/>
    <mx:Button x="666" y="627" label="Supprimer" id="btnSupprimer"/>
    <mx:Text x="10" y="10" text="Nom" />
    <mx:Text x="10" y="36" text="Secteur d'activitŽ&#xd;"/>
    <mx:Text x="10" y="62" text="Groupe"/>
    <mx:Text x="10" y="112" text="Responsable commercial"/>
    <mx:Text x="10" y="88" text="Adresse"/>
    <mx:Text x="416" y="88" text="Ville"/>
    <mx:Text x="595" y="88" text="Code Postal"/>
    <mx:Text x="10" y="138" text="Responsable production&#xd;"/>
    <mx:Text x="416" y="112" text="Responsable 3"/>
    <mx:Text x="416" y="138" text="Responsable 4"/>
    <mx:Text x="624" y="10" text="Code"/>
    <mx:RadioButton x="610" y="34" label="Client"/>
    <mx:RadioButton x="675" y="34" label="Prospect"/>
    <mx:TextInput x="48" y="8" width="568" id="nomArea" />
    <mx:TextInput x="117" y="34" width="485"/>
    <mx:TextInput x="666" y="8" width="81"/>
    <mx:TextInput x="675" y="86" width="72"/>
    <mx:TextInput x="63" y="60" width="684"/>
    <mx:ComboBox x="157" y="110" width="251"></mx:ComboBox>
    <mx:ComboBox x="157" y="140" width="251"></mx:ComboBox>
    <mx:ComboBox x="512" y="110" width="235"></mx:ComboBox>
    <mx:ComboBox x="512" y="140" width="235"></mx:ComboBox>
    <mx:Text x="317.5" y="161" text="Liste Clients" fontSize="19"/>
    <mx:TextInput x="63" y="86" width="345"/>
    <mx:TextInput x="452" y="86" width="135"/>
    </mx:Application>
    </code>

  • How to put datas from database in html�s forms?

    Does anyone have any idea how to put datas from the database using JSP???

    One option: put your data into a JavaBean and then put that into the session. You can then access it from your JSP. You can access the properties of the bean using the basic JSP scripting elements, or if you want to get fancy, both JSTL and Struts have a bunch of custom tags for working with JavaBeans.

  • Commit data and put it to database

    Hi,
    Anyone know how to put data from objects to database table?
    Now I have a simple application which get data from table, modify some rows and now I don't know how to put this result to another table in database.
    Thanks for any suggestions.
    I have to add, that I put data from database, modify it, and insert new row to another database (anoteher phisical machines). So probably I need to create 2 connections. But do I need mapping table to objects in second database if tables are similar in both of this databases??
    Message was edited by:
    tutus

    What version of TopLink are you using? Are you using JPA? I'll assume EclipseLink JPA.
    The easiest thing to do is to create two persistence units (PU), one for each database schema. Using orm.xml mapping you can map the same class to both the source and target table. If the tables are pretty similar you could map the common mappings with annotations and use xml to map the things that are different.
    Using this approach you can read an object from the source PU, modify it and then persist it in the second PU.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why my JSP can't get any data from database(Ms ACCESS)

    The path of JSP and bean file are correct in Tomcat .Also,it has no syntax error on Jbuilder7.0(can get and put data to database successfully) and can display on IE,but it cannot communciate with Database in Tomcat .Can someone help me to solve this problem??(ergent)

    I'm having a similiar problem
    well, mine is like this....
    I'm using the MySQL in my project, so I downloaded the MySQL Java connector and placed the .jar file into
    WEB-INF/lib
    When I did the connection in Servlet scripts, it works
    But now i'm trying to make another one in JSP page, let's say i'm using the JSTL and the code is like this
    <sql:setDataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://127.0.0.1:3306/helpdesk"
         user="root" password="" var="hdesk" />
    <sql:query var="tickets" dataSource="${hdesk}">
         SELECT * FROM tblTicket
    </sql:query>
    A connection error appears:
    Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    Please help, thanks......

  • Urgent help with simple BPEL process for reading data from database

    Hello there,
    I need help with BPEL project.
    i have created a table Employee in Database.
    I did create application, BPEL project and connection to the database properly using Database Adapter.
    I need to read the records from the database and convert into xml fomat and it should to go approval for BPM worklist.
    Can someone please describe me step by step what i need to do.
    Thx,
    Dps

    I have created a table in Database with data like Empno,name,salary,comments.
    I created Database Connection in jsp page and connecting to BPEL process.
    It initiates the process and it goes automatically for approval.
    Please refer the code once which i created.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import="java.util.Map" %>
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
    <%@page import="javax.naming.Context" %>
    <%@page import="java.util.Hashtable" %>
    <%@page import="java.util.HashMap" %>
    <%@ page import="java.sql.*"%>
    <%@ page import= "jspprj.DBCon"%>
    <html>
    <head>
    <title>Invoke CreditRatingService</title>
    </head>
    <body>
    <%
    DBCon dbcon=new DBCon();
    Connection conn=dbcon.createConnection();
    Statement st=null;
    PreparedStatement pstmt=null;
    Hashtable env= new Hashtable();
    ResultSet rs = null;
    Map payload =null;
    try
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "opmn:ormi://localhost:port:home/orabpel");//bpel server
    env.put("java.naming.security.principal", "username");
    env.put("java.naming.security.credentials", "password");//bpel console
    Locator locator = new Locator("default","password",env);
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage();
    java.util.HashMap map = new HashMap();
    st=conn.createStatement();
    out.println("connected");
    String query1="Select * from EMPLOYEE";
    rs=st.executeQuery(query1);
    /*reading Data From Database and converting into XML format
    so that no need of going to BPEL console and entering the details.
    while (rs.next()){
    String xml1 = "<AsynchBPELProcess1ProcessRequest xmlns='http://xmlns.oracle.com/AsynchBPELProcess1'>"+
    "<Empno>"+rs.getString(1)+"</Empno>"+
    "<EmpName>"+rs.getString(2)+"</EmpName>"+
    "<Salary>"+rs.getString(3)+"</Salary>"+
    "<Comments>"+rs.getString(4)+"</Comments>"+
    "</AsynchBPELProcess1ProcessRequest>";
    out.println(xml1);
    nm.addPart("payload", xml1 );
    // EmployeeApprovalProcess is the BPEL process in which human task is implemented
    deliveryService.post("EmployeeApprovalProcess", "initiate", nm);
    // payload = res.getPayload();
    out.println( "BPELProcess CreditRatingService executed!<br>" );
    // out.println( "Credit Rating is " + payload.get("payload") );
    //Incase there is an exception while invoking the first server invoke the second server i.e lsgpas13.
    catch(Exception ee) {
    //("BPEL Server lsgpas14 invoking error.\n"+ee.toString());
    %>
    </body>
    </html>
    Its working fine.And i want it for Bulk approvals.please help me step by step procedure if any other way to implement this.

  • Help on SHUTTLE and how  to insert  multiple selection of data to database?

    Hi
    I looking for some help SHUTTLE. The scenario is given below. Appreciate your urgent help/steps how to use UIX SHUTTLE for this example.
    I). I have two tables user and dept
    User
    ====
    Fields=>(uid,uname)
    Dept
    ====
    Fields=>(deptno,uid)
    II). UIX screen with two fileds
    i. DeptNo =>messageInputText
    ii. Uid =>shuttle (This shuttle should display user.username, but when insert data it has to update as uid)
    III. Insert data to database
    Using form, I give one dept no and select multiple Unames. When click submit, it has to commit the changes to the database. For eg: I am given DeptNo=10, and unames selected are "RAM","GEORGE","CLINTON", it has to update 3 rows in to the database as shown below
    DEPTNO UID
    ================
    10 100 =>UNAME RAM
    10 200 =>UNAME GEORGE
    10 300 =>UNAME CLINTON
    Thanks
    NRK

    Sorry, Maybe i am not stated my problem clearly. After i execute my sql statement and put the result into the resultset, if the result is more than 1 records, then i dunnoe how to handle with the record and display it in jsp. Do u get wat i mean?

  • How to put date&time into a variable from a database?

    In an Oracle table, myDateColumn is 2002-06-25 17:40:55. I can't put it into a variable.
    java.text.SimpleDateFormat dF=new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    rs=stmt.executeQuery("select myDateColumn from myTable");
    rs.next()
    System.out.println(rs.getString(1)); // 2002-06-25 17:40:55 is output
    java.util.Date myDate=rs.getDate(1);
    out.println(dF.format(myDate)); // 25/06/2002 00:00:00 is output
    java.util.Date myDate=rs.getTime(1);
    out.println(dF.format(myDate)); // 01/01/1970 17:40:55 is output
    My question is: How should I put this date (both date and time) into a variable, myDate?

    There are three JDBC types relating to time:
    1] The JDBC DATE type represents a date consisting of day, month, and year. The corresponding SQL DATE type is defined in SQL-92, but it is implemented by only a subset of the major databases. Some databases offer alternative SQL types that support similar semantics.
    2] The JDBC TIME type represents a time consisting of hours, minutes, and seconds. The corresponding SQL TIME type is defined in SQL-92, but it is implemented by only a subset of the major databases. As with DATE, some databases offer alternative SQL types that support similar semantics.
    3] The JDBC TIMESTAMP type represents DATE plus TIME plus a nanosecond field. The corresponding SQL TIMESTAMP type is defined in SQL-92, but it is implemented by only a very small number of databases.
    In ur case pls use:
    java.sql.Timestamp
    good luck !
    ...san :--)

  • I recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help

    i recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help

    I don't think you're on iOS 5, I think you're using iOS 6.  That's the latest version.
    Unless you've used iCloud to back up your documents, you won't be able to restore them.  And for future reference, you don't have to uninstall Pages to update your iPad anymore.  Sorry about this.

  • How to display data from Database individually??? Anyone can help ?

    HI,
    i i had select a row of data from database using ,
    /* Query * From Table RESOURCEORDER where po = selected no and project = selected project */
         public ResultSet getAllData() throws SQLException
         getConnection();
         Statement stmt = conn.createStatement();
         ResultSet rs = stmt.executeQuery("SELECT * FROM RESOURCEORDER WHERE PROJECT = '" + getSelProject() + "' and PURCHASEORDERNO = '" + getPo() + "'" );
         return rs;
    After that , how do i display the data individually ?
    Eg select data is ('projectA','7891203-1', '10-4-2005','lcd',2000,'121-45217-8','electrical','pending','donwong')
    i want to display them individually, like this in a page
    Projectname: /* should display the Project A*/
    P.O no:
    Date:
    Order:
    Cost:
    Acc no:
    Type:
    status:
    Orderedby:
    Can anyone help ? cos i'm new to JSP ......Thanks alot!!!!!
    Regards,
    khim

    I assume PO being a unique key, will always return 1 row from db.
    public String[] getAllData() throws Exception
    getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM RESOURCEORDER WHERE PROJECT = '" + getSelProject() + "' and PURCHASEORDERNO = '" + getPo() + "'" );
    String [] returnValue = new String[9];
    while(rs.next())
    returnValue[1] = rs.getString("colname");
    returnValue[2] = rs.getString("colname");
    ///and so on
    return returnValue;
    }Once you get that you could individually view it by setting a loop to run through the returned array.
    Hope it helps

  • Help , How to get data from database using recordset with UI API

    I want to get a data from database
    when I want to create recordset i notice that UI API didn't has record set
    so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
    ======================================================
    Dim oCompanyUI As SAPbouiCOM.Company <<UI API
    Dim oRecSet As New SAPbobsCOM.Recordset << DI API
    Dim oCompanyDI As New SAPbobsCOM.Company << DI API
    '=====================================================
    oCompanyDI.Connect
    Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
    oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
    SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
    ======================================================
    but I got an error it said "you are not connected to company"
    I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
    can someone help me please, I really need it
    Thanks

    you need a single sign on
            Dim oDICompany As SAPbobsCOM.Company
            Dim sCookie As String
            Dim sConnStr As String
            Dim ret As Integer
            oDICompany = New SAPbobsCOM.Company
            sCookie = oDICompany.GetContextCookie
            sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
            If oDICompany.Connected Then
                oDICompany.Disconnect()
            End If
            ret = oDICompany.SetSboLoginContext(sConnStr)
            If Not ret = 0 Then
                SBO_Application.MessageBox("set Login Context failed!")
                Exit Sub
            End If
            ret = oDICompany.Connect()
            If Not ret = 0 Then
                SBO_Application.MessageBox("Company Connect failed!")
            End If

  • I have proubleam with string to date conversion, i out put date fromat is 2012-04-30T23:48:55.727-07:00 . so please help me the format conversion

    i have proubleam with string to date conversion, i out put date fromat is 2012-04-30T23:48:55.727-07:00 . so please help me the format conversion.
    i wrote the method but it not workig
    My method is
    -(NSDate *)dateformstr:(NSString *)str
    NSString *date = [str stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
        NSDateFormatter *dateFormate = [[NSDateFormatter alloc] init];
      [dateFormate setDateFormat:@"yyyy-MM-dd'T'HH:mm:sssZZZZ"]
    // NSDate *formatterDate = [dateFormate  dateFromString:str];
        return formatterDate;
    but i did not the value and if i try othere formate i is working but my requiremet format is 2012-04-30T23:48:55.727-07:00.
    can any help it out in this senario.

    Sorry Butterbean, but I'm interested in the answer to your question myself.
    I've spent a few hours transfering my library from one computer to another and then find out that my ratings didn't transfer. Like you, I've spent many hours rating my 2000+ songs. I'm sure you have more, nevertheless, I want to find out how to get those ratings. They still show in my iTunes on my laptop but, when I go to the iTunes folder and display the details of at song, no rating is there. If you find out how to get them to display there in the iTunes folder, it seems that would be the key.
    Hope you get your answer soon.

  • Help! Inserting data  into database

    Hi,
    I have problem in inserting new data into database.
    This is my code used.
    PROCEDURE insert_contact IS
    BEGIN
    GO_BLOCK('BLOCK3');
    first_record;
    LOOP
    insert into LIMS_JOB_LEVEL
         (JOB_LEVEL_CODE,JOB_LEVEL_DESC,LAST_UPD_ID,LAST_UPD_DATE)
         values
         ('FAF','FDSAFS','FDSAF','1-1-01');
         EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
         next_record;
    END LOOP;
    END;
    And I cannot insert the data.Can anyone help me to solve this
    problem of mine.
    Thanks a lot.

    I belive this got to do with the date format. There is another
    posting about this after your posting and there are couple of
    good solutions in there for the date formating. Please refer.

  • Coherence Help standalone java program put data in cache & Servlet to Read

    Hi,
    I have coherence 3.4 and using Oracle Application Server 10.1.3 We are in the process of developing a Web Application and want to use Coherence for caching the data. My Coherence is also installed on the same box as Oracle Application Server 10.1.3 need some help in storing the data in the coherence and reading it through the servlet. We have standalone java program that needs to put data in the cache and through servlet want to read that and display it on the page. When running the client the data is stored in the cache but when reading it through the servlet it returns null. We have included both coherence.jar and tangosol.jar in the war file and also in the path when running the standalone java program. Started the Coherence using the below command:
    C:\oracle\coherence\lib>java -cp coherence.jar -Dtangosol.coherence.cacheconfig=C:/oracle/coherence/tests/cache-config.xml com.tangosol.net.DefaultCacheServer
    here is the sample config file used when starting the server above:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
        <caching-scheme-mapping>
            <cache-mapping>
                <cache-name>VirtualCache</cache-name>
                <scheme-name>default-distributed</scheme-name>
            </cache-mapping>
        </caching-scheme-mapping>
        <caching-schemes>
            <!--
            Default Distributed caching scheme.
            -->
            <distributed-scheme>
                <scheme-name>default-distributed</scheme-name>
                <service-name>DistributedCache</service-name>
                <backing-map-scheme>
                    <class-scheme>
                        <scheme-ref>default-backing-map</scheme-ref>
                    </class-scheme>
                </backing-map-scheme>
            </distributed-scheme>
      <class-scheme>
                <scheme-name>default-backing-map</scheme-name>
                <class-name>com.tangosol.util.SafeHashMap</class-name>
                </class-scheme>
    </caching-schemes>
    </cache-config>And here is the standalone java program to put the data in the cache:
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    public class PutCache {
        public PutCache() {
        public static void main(String[] args) {
            PutCache putCache = new PutCache();
            NamedCache         cache = CacheFactory.getCache("VirtualCache");
            String key = "hello";
            cache.put(key, "Hello Cache123123");
    }And here is the Servlet code to read the data but it somehow returns null
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet1 extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            NamedCache         cache = CacheFactory.getCache("VirtualCache");
            String value = (String)cache.get("hello");
            out.println("<html>");
            out.println("<head><title>Servlet1</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a GET. This is the reply.</p>"+value);
            out.println("</body></html>");
            out.close();
    }Is there any other configuration I need. Any help is really appreciated.
    Thanks

    Hi,
    While starting the coherence using
    C:\oracle\coherence\lib>java -cp coherence.jar -Dtangosol.coherence.cacheconfig=C:/oracle/coherence/tests/cache-config.xml com.tangosol.net.DefaultCacheServer
    while running standaone jave program using the below command
    java -Dtangosol.coherence.cacheconfig=C:/oracle/coherence/tests/cache-config.xml Populatecache
    In the Web Application don't have any reference to cache-config.xml just using the coherence.jar & tangosol.jar.
    What are the steps or configurations I need in order to connect to the same Coherence Cache. Do I need to provide some host:port for the Coherence for storing the data in the cache. How does the java client program and Web Application knows to connect to the Coherence. As currently even if I don't start the coherence server and just run the java standalone program it goes and executes fine wondering wher exactly does it persists the cache if coherence itself is not started or just adding the jars is enough. Any help is appreciated.
    Thanks

Maybe you are looking for

  • Alv grid prg

    Dear Experts   I need to do  summation of netprice when ever the PO Changes for the sample report given below REPORT  ZTUFI091                                . *& Report  ZDEMO_ALVGRID                                               * *& Example of a s

  • Probem with numbers in scientific notation

    Hi, I Have a problem and I don�t know how to be solved this. I have a array of array ( String a[ ][ ] ) with numbers, but this numbers are like 2.48e+08 I need to copy the values of the String a [ ] [ ] into other Double b [ ] [ ] . So I do: String a

  • Adobe form version

    Dear Expert, I have created a new version for my ISR scenario as well as Form scenario (version 1). In addition, i set in ISR scenario (version 1) to use a new adobe form with additional field. In the process start configuration, i specify to use ISR

  • HOWTO: Perform a Calculation on One Row of a Query

    Use this method if you can't perform the calculation at the entity object level--for example, if the calculation involves columns from more than one table, involves transient attributes, or if your view object is pure SQL-based (i.e., not based on an

  • HT5577 I verified my apple Id yet when I am going to download in itunes it says  "you need to verify your account" yet I've done it what to do?

    What to do???? I verify my apple Id but it keeps saying "you need to verify your account"