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.

Similar Messages

  • Urgent help with simple BPEL process

    Hello there,
    I need help with BPEL project.
    I'm new in JDeveloper&BPEL and i'd like to create process that we'll after sending employee ID return personal details of that employee.
    I did create application, BPEL project and connection to the database properly but somehow i can't deal input and output variable.
    Can someone please describe me step by step what i need to do, how to set up variable etc
    Thx,
    DI

    Me again. This time i hope i'll get some help :(
    Solution to my problem is change to the data-sources.xml and oc4j-ra.xml.
    Since i have database on same machine with BPEL PM Server that uses Olite DB when i tried to make changes i found in tutorials, here on forum and rest of internet
    BPEL PM Server just freeze, didn't start at all.
    Here are data-sources.xml, oc4j-ra.xml and DBAdapter wsdl file. Plz can someone make changes to those files i'll appreciate that.
    HOME\bpel\system\appserver\oc4j\j2ee\home\application-deployments\default\DbAdapter
    oc4j-ra.xml
    <?xml version="1.0"?>
    <oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd" schema-major-version="10" schema-minor-version="0" >
         <imported-shared-libraries>
              <import-shared-library name="oracle.bpel.common"/>
              <import-shared-library name="oc4j.internal"/>
              <import-shared-library name="oracle.xml"/>
              <import-shared-library name="oracle.sqlj"/>
              <import-shared-library name="oracle.toplink"/>
              <import-shared-library name="oracle.jdbc"/>
         </imported-shared-libraries>
         <connector-factory location="eis/DB/DBConn_XE" connector-name="Database Adapter">
              <config-property name="xADataSourceName" value="jdbc/DBConn_XEDataSource"/>
              <config-property name="dataSourceName" value="loc/DBConn_XEDataSource"/>
              <config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
              <config-property name="usesNativeSequencing" value="true"/>
              <config-property name="sequencePreallocationSize" value="50"/>
              <config-property name="defaultNChar" value="false"/>
              <config-property name="usesBatchWriting" value="true"/>
              <connection-pooling use="none">
              </connection-pooling>
              <security-config use="none">
              </security-config>
         </connector-factory>
         <connector-factory location="eis/DB/BPELSamples" connector-name="Database Adapter">
              <config-property name="xADataSourceName" value="jdbc/BPELSamplesDataSource"/>
              <config-property name="dataSourceName" value=""/>
              <config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
              <config-property name="usesNativeSequencing" value="true"/>
              <config-property name="sequencePreallocationSize" value="50"/>
              <config-property name="defaultNChar" value="false"/>
              <config-property name="usesBatchWriting" value="false"/>
              <connection-pooling use="none">
              </connection-pooling>
              <security-config use="none">
              </security-config>
         </connector-factory>
    </oc4j-connector-factories>
    HOME \bpel\system\appserver\oc4j\j2ee\home\config
    data-sources.xml
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd">
    <data-sources>
    <!-- Connection pool for oracle database -->
    <!--
    <connection-pool name="BPELPM_CONNECTION_POOL">
    <connection-factory factory-class="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:[username]/[password]@[hostname]:[port]:[sid]" />
    </connection-pool>
    -->
    <!-- Connection pool for oracle lite -->
    <connection-pool name="BPELPM_CONNECTION_POOL">
    <connection-factory factory-class="oracle.lite.poljdbc.POLJDBCDriver"
    user="system"
    password="manager"
    url="jdbc:[email protected]:1531:orabpel" />
    </connection-pool>
    <managed-data-source name="BPELServerDataSource"
    connection-pool-name="BPELPM_CONNECTION_POOL"
    jndi-name="jdbc/BPELServerDataSource" tx-level="global"/>
    <managed-data-source name="BPELServerDataSourceWorkflow"
    connection-pool-name="BPELPM_CONNECTION_POOL"
    jndi-name="jdbc/BPELServerDataSourceWorkflow" tx-level="local"/>
    <managed-data-source name="BPELSamplesDataSource"
    connection-pool-name="BPELPM_CONNECTION_POOL"
    jndi-name="jdbc/BPELSamplesDataSource" />
    </data-sources>
    DBAdapter wsdl file
    GetData_WS.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    name="GetData_WS"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/GetData_WS/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/GetData_WS/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetDataWS"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/db/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/" location="DBAdapterOutboundHeader.wsdl"/>
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetDataWS"
    schemaLocation="GetDataWS_table.xsd"/>
    </schema>
    </types>
    <message name="EmpDetailsViewCollection_msg">
    <part name="EmpDetailsViewCollection" element="top:EmpDetailsViewCollection"/>
    </message>
    <message name="GetData_WSSelect_EMP_ID_inparameters">
    <part name="GetData_WSSelect_EMP_ID_inparameters" element="top:GetData_WSSelect_EMP_IDInputParameters"/>
    </message>
    <portType name="GetData_WS_ptt">
    <operation name="GetData_WSSelect_EMP_ID">
    <input message="tns:GetData_WSSelect_EMP_ID_inparameters"/>
    <output message="tns:EmpDetailsViewCollection_msg"/>
    </operation>
    </portType>
    <binding name="GetData_WS_binding" type="tns:GetData_WS_ptt">
    <jca:binding />
    <operation name="GetData_WSSelect_EMP_ID">
    <jca:operation
    InteractionSpec="oracle.tip.adapter.db.DBReadInteractionSpec"
    DescriptorName="GetDataWS.EmpDetailsView"
    QueryName="GetData_WSSelect"
    ReturnSingleResultSet="false"
    MappingsMetaDataURL="GetDataWS_toplink_mappings.xml" />
    <input>
    <jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
    </input>
    </operation>
    </binding>
    <!-- Your runtime connection is declared in
    J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
    These 'mcf' properties here are from your design time connection and
    save you from having to edit that file and restart the application server
    if eis/DB/DBConn_XE is missing.
    These 'mcf' properties are safe to remove.
    -->
    <service name="GetData_WS">
    <port name="GetData_WS_pt" binding="tns:GetData_WS_binding">
    <jca:address location="eis/DB/DBConn_XE"
    UIConnectionName="DBConn_XE"
         ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
         mcf.DriverClassName="oracle.jdbc.OracleDriver"
    mcf.PlatformClassName="oracle.toplink.platform.database.oracle.OraclePlatform"
    mcf.ConnectionString="jdbc:oracle:thin:@localhost:1521:xe"
    mcf.UserName="hr"
    mcf.Password="62C32F70E98297522AD97E15439FAC0E"
    />
    </port>
    </service>
    <plt:partnerLinkType name="GetData_WS_plt" >
    <plt:role name="GetData_WS_role" >
    <plt:portType name="tns:GetData_WS_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>
    Thx,
    DI

  • Dynamic Internal Table for reading data from external file

    Hello All,
    The task was to create a internal table with dynamic columns,
    Actually this is my first task in the WebAS 6.20, my program is based on input file provided by user with certain effort. this file can have different effort for a one yr to five year frame..
    I needed to read the raw data from file, based on months create a internal table to hold the data, after this i need to validate the data...
    I have browsed thru dynamic internal table topic, but couldn't find any dynamic appending structure, the dynamic structure would contains 12 month fileds.
    can any one help me in getting my task completed..
    Thanks
    Kumar

    Hi,
    I see that you posted the same question a couple of days ago at Dynamic Internal Table for reading data from external file Didn't Charles's response address your problem?
    Regards

  • Call bpel process as Web service from database

    Hi!
    i'm trying tocall bpel process as web service from Oracle database. When i try the same pl sql function, i can successfully call regular j2ee web service without any problem. When i instantiate process from bpel console - everything is ok .. but when i call process from plsql function, i get this error:
    ORA-20000: soapenv:Server.generalException - Missing BPEL archive file.
    The process domain cannot locate the BPEL archive for process
    &quot;AuthorizeKeyCode&quot;, revision &quot;AuthorizeKeyCode&quot;.
    If you have deployed the process please check that it is located in the
    directory &quot;/ora/bpelpm/integration/orabpel/domains/vinves/deploy&quot;.
    ; nested exception is:
    ORABPEL-05205
    Missing BPEL archive file.
    The process domain cannot locate the BPEL archive for process
    &quot;AuthorizeKeyCode&quot;, revision &quot;AuthorizeKeyCode&quot;.
    If you have deployed the process please check that it is located in the
    directory &quot;/ora/bpelpm/integration/orabpel/domains/vinves/deploy&quot;.
    i tried undeploy and deploy the process again, i tried to restart the server - still the same problem...
    anyone can help, please?
    thanks ...
    Tomas

    Hi,
    I am trying to invoke the HelloWorld BPEL process from Oracle DB using the demo_soap package downloaded from oracle.com.
    Find the PL/SQL block below:
    DECLARE
    req Demo_Soap.request;
    resp Demo_Soap.response;
         zipcode VARCHAR2(100) := 'Suresh';
    BEGIN
    req := Demo_Soap.new_request('initiate',
    'xmlns="http://xmlns.oracle.com/HelloWorld"');
    Demo_Soap.add_parameter(req, 'HelloWorldProcessRequest', 'xsd:string', zipcode);
    resp := Demo_Soap.invoke(req,
    'http://nooslux037t.gl.2wglobal.com:7777/BPELConsole/Dev/displayProcess.jsp?processId=HelloWorld',
    'http://xmlns.oracle.com/HelloWorld');
    END;
    Please help me in knowing what value i should pass for the
    1. New_request procedure
    2. Add_parameter procedure
    3. Invoke procedure.
    The HelloWorld is same as the example in the BPEL Tutorial Session 1.
    Thanks for your time.

  • How to relate data of tables returned by FM for reading data from ST03N

    Hello,
    I am using the FM SWNC_COLLECTOR_GET_AGGREGATES to retrieve data displayed in T-Code ST03N into my report.
    I am able to get the required data in different tables like Times, Memory, Usertcode, Userworkload, Hitlist_database.
    However I am unable to undertand how to relate the data of these different tables, prepare another internal table with only the fields that are required for my report and then display those details.
    Like, I want to loop through one of these internal tables, read data from other internal tables and consolidate my required data. But I am unable to understand based on what criteria I can read other internal tables inside a loop of any one of the above said internal tables.
    I searched a lot and found many threads and blogs related to ST03N and learnt a lot about this T-code. But I could not find how to relate the data of all these tables.
    Request you to please help.
    Thanks and Best Regards,
    Eswar

    Hi,
    I see the common fields like TaskType, EntryId. But, I want to make sure that these are the fields that are enough to read the records or is there any other way that I can be sure that I am getting the correct record in my read statement. So my question is specific to the tables returned from the FM SWNC_COLLECTOR_GET_AGGREGATES and not a generic one.
    Thank you for your help.
    Best Regards,
    Eswar.
    Edited by: eswar praveen on Aug 20, 2010 12:19 PM

  • How to read data from database to applet

    hi i am writing a program below which reads data from mysql database successfully ;
    import java.sql.*;
    import java.lang.*;
    import java.util.*;
    public class Read_Capital_country_from_database {
    public static void main (String args[] ){
    int index,mess;
    String country_arr[] = new String[250];
    String capital_arr[] = new String[250];
    int i = 0 ;
    String URL = "jdbc:mysql://localhost/allusers";
    String user = "shadab";
    String password ="shadab@123";
    try {
    Class.forName("com.mysql.jdbc.Driver");
    Connection conn = DriverManager.getConnection(URL,user,password);
    for( SQLWarning warn = conn.getWarnings(); warn != null; warn = warn. getNextWarning() )
    System.out.println( "SQL Warning:" ) ;
    System.out.println( "State : " + warn.getSQLState() ) ;
    System.out.println( "Message: " + warn.getMessage() ) ;
    System.out.println( "Error : " + warn.getErrorCode() ) ;
    String sql = "select * from country_capital";
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while( rs.next() ) {
    System.out.println( rs.getString(1) );
    System.out.println(" " +rs.getString(2) );
    System.out.println();
    catch (SQLException se){
    System.out.println( "SQL Exception:" ) ;
    System.out.println("Exception - raju");
    while( se != null )
    System.out.println( "State : " + se.getSQLState() ) ;
    System.out.println( "Message: " + se.getMessage() ) ;
    System.out.println( "Error : " + se.getErrorCode() ) ;
    se = se.getNextException() ;
    catch( Exception e )
    System.out.println( e ) ;
    java Read_Capital_country_from_database
    OUT PUT OF ABOVE PROGRAM IS :
    INDIA NEW DELHI
    PAKISTAN ISLAMABAD
    AFGHANISTAN KABUL
    BUT SAME PROGRAM WHEN I GO TO WRITE IN APPLET
    THIS TIME APPLET DOES OPEN BUT ERROR SHOWS ON STANDARD OUT PUT
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    THIS IS THE PROGRAM WRITTEN FOR JAVA APPLET
    import java.sql.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Read_Capital_country_from_database extends Applet {
    Choice country, capital;
    String msg=" ", msg1;
    int index,mess;
    String country_arr[] = new String[250];
    String capital_arr[] = new String[250];
    char chr;
    int i = 0;
    public void init() {
    country = new Choice();
    capital = new Choice();
    String URL = "jdbc:mysql://localhost/allusers";
    String user = "shadab";
    String password ="shadab@123";
    try {
    Class.forName("com.mysql.jdbc.Driver");
    Connection conn = DriverManager.getConnection(URL,user,password);
    for( SQLWarning warn = conn.getWarnings(); warn != null; warn = warn. getNextWarning() )
    System.out.println( "SQL Warning:" ) ;
    System.out.println( "State : " + warn.getSQLState() ) ;
    System.out.println( "Message: " + warn.getMessage() ) ;
    System.out.println( "Error : " + warn.getErrorCode() ) ;
    String sql = "select * from country_capital";
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while( rs.next() ) {
    country_arr[i] = rs.getString(1);
    country.add(country_arr);
    capital_arr[i] = rs.getString(2);
    capital.add(capital_arr[i]);
    i++;
    catch (SQLException se){
    System.out.println( "SQL Exception:" ) ;
    System.out.println("Exception - raju");
    while( se != null )
    System.out.println( "State : " + se.getSQLState() ) ;
    System.out.println( "Message: " + se.getMessage() ) ;
    System.out.println( "Error : " + se.getErrorCode() ) ;
    se = se.getNextException() ;
    catch( Exception e )
    System.out.println( e ) ;
    add(country);
    add(capital);

    It doesn't make sense to read a database directly from an applet. If an applet needs data from a database is should request if from the server which the applet is located on and the server should do the actual database actions.
    The whole point of applets is that they require no installation on the client machine. If you have to change policy files or the like, you might as well install a Swing application. Furthermore accessing a database tends to depend on how the client is set up on the network. Any sensible network has firewall settings that block access to the database ports to any external access (and, again, if you are limiting the facility to a few internal machines then why not just install a program on them).

  • BPEL or OSB for reading data from db and then writing to another db

    Hi All,
    I have a requirement of reading the data from a table in one database and then writing into the table in another databas.I dont need any transformation on the data.
    I understand that i can do this by creating a BPEL process with DB adapters.
    Is there any better way of implementing this.I am new to OSB and If need to use OSB, then how can we do this in OSB and what are the advantages of using OSB over BPEL in implementing this.
    Thanks,
    ashok

    probably it would be much easier to develop everything in JDeveloper using DBAdapter.
    You can run it inside SOA Suite, but you don't even need BPEL, just use Mediator.
    Otherwise you can export all the JCA and WSDL and XSD paraphernalia from JDeveloper and import into OSB, it should run smoothly.
    How do you trigger the transfer? Polling the DB to look for new rows?

  • Hot to begin a BPEL process when a TRIGGER from DATABASE is on

    Hello, I have acces to a database Oracle Lite in BPEL (Jdevelopper) and I 'd like to begin a process when a trigger of this table is on (when update for example) do you know how to catch this event?
    Thak's a lot
    Jack

    Hi Jack,
    Please have a look at - http://www.orafaq.com/faqpol.htm
    Oracle lite databse does not give you normal RDMS database facilities (e.g oracle). If you want to have a control at the databse level, then install your SOA Suite with a Oracle 9i or 10G database.
    When you do so, you can configure your trigger to call a PL/SQL procedure which can use utilities like dbms_job to call the BPEL webservice.
    Regards,
    Nishant

  • Need help in reading data from Database.

    Hi experts,
    I have created a custom smartforms and custom print program. In my print program i have read all the data and populated the internal table and i am able to display the data in the smartform output.
    I'm using Tcode me23n to print preview the form. i have to read the "text" tab from the me23n tcode using FM  "READ_TEXT". The data is getting populated into an internal table. I coded these statements in Initialization tab in global definition.
    Now my problem is ..... Can anyone tell me how to display the data into the forms.
    please help.
    Thanks

    Follow below example to using FM 'READ_TEXT'
    DATA  BEGIN OF i_tlines OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA  END   OF i_tlines.
    DATA: w_textname(70) TYPE c.
      w_textname = vbdkr-vbeln.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                        = sy-mandt
          id                            = 'Z006'
          language                      = 'E'
          name                          = w_textname
          object                        = 'VBBK'
        TABLES
          lines                         = i_tlines.
      IF sy-subrc = 0.
        READ TABLE i_tlines INDEX 1.
        t_in-m1 = i_tlines-tdline.   "Now t_in_m1 will have the value
      ENDIF.
    Regards,
    SaiRam

  • User Exit for reading data from a hierarchy in BW-BPS

    Hello Forum,
    How can i fetch all the records from a particular node in a Hierarchy using a user exit in a variable in BW-BPS,
    Plz Help,
    Regards,
    KK

    Hi,
    This is a sample code that may help you.
    DATA: BEGIN OF wa_val,
            from TYPE rsleaffrom,
            to   TYPE rsleafto,
          END OF wa_val,
          tb_val LIKE wa_val OCCURS 0 WITH HEADER LINE,
          tb_grpval_ce LIKE wa_val OCCURS 0 WITH HEADER LINE,
            tb_ce_val   TYPE rshi_t_hienode,
            tb_ce_intervl TYPE rshi_t_interval,
            wa_hiedirkey TYPE rshi_s_rshiedirkey,
            tb_node_val TYPE rshi_t_hienode,
            tb_interval TYPE rshi_th_interval,
            wa_interval TYPE rshi_s_interval,
    SELECT SINGLE hieid objvers FROM /bi0/haccount
                    INTO wa_hiedirkey
                    WHERE nodename = group-name.
      CALL FUNCTION 'RSSH_HIERARCHY_READ'
        EXPORTING
          i_rshiedirkey     = wa_hiedirkey
          i_date            = sy-datum
        IMPORTING
          e_t_rsnodes       = tb_node_val
          e_th_rsinterval   = tb_interval
        EXCEPTIONS
          invalid_hierarchy = 1
          name_error        = 2
          iobj_not_found    = 3
          OTHERS            = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    thanks
    pratyush

  • Problem reading data from database

    Hi All,
    I'm doing some test with Oracle Coherence, particulary testing partitioned cache of a database. I'm using a client/server archictecture and I developed my own CacheStore. So, the problem is, after start the server and the client, when i do a get() in the client for a object that is on database and not in the cache, the cache answer is it doesn't exist. Isn't it supposed the cache "call" the cache store and read/verify if it is on database?
    My Configuration file:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>Recharge</cache-name>
    <scheme-name>partitioned-cache</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>partitioned-cache</scheme-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <write-delay>0</write-delay>
    <read-only>false</read-only>
    <internal-cache-scheme>
    <local-scheme>
    <scheme-name>InMemoryScheme</scheme-name>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>RechargeCacheStore</class-name>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <listener/>
    <autostart>true</autostart>
    </distributed-scheme>
    </caching-schemes>
    </cache-config>
    Tanks,
    Paulo Sousa

    Hi Paolo,
    You should use a fully qualified class name to enable the JVM class loader to find the RechargeCacheStore class.
    Regards,
    Harv

  • Question about making printible reports by reading data from database

    We have a pressure test system which we want analyze and plot the instant pressure values in a pre-defined time interval. After each test we want the record the test results along with the other information(date, time, operator name, test no, product type, product number, etc.) added by the system operator. The data will be recorded to an access data base. Doing that, we want to make test results archive which we can make search within, to list the past test results, searching by date, seraching by product number, or searching by any other information in the database. Plus, in the future, we want to be able to take reports of these past test results, including the pressure/time graph and other information added by the system operator. Also we want to set the report format.
    My question is, is it possible to do this with LABVIEW 8.2? Do we need any toolkits or add-ons?
    Regards

    Hi, Hasan.
    That would be an excellent use of LabVIEW. At the very least, you'll probably want to get the Database Connectivity Toolkit, and depending on your needs you may also want the Report Generation Toolkit. There are a lot of tools in the LabVIEW Development Environment for generating reports dynamically, but the Report Generation Toolkit includes a lot of advanced functionality not included in regular LabVIEW installations.
    That said, however, I really recommend you speak with one of our sales representatives to make sure you have everything you need. Since I know so little about how you'd be implementing each step of that process, I'm reluctant to guarantee it, and one of our representatives can tell you with much more certainty. You can get in touch with one from ni.com/contact.
    Good luck! Have a nice evening.
    Sarah K.
    Search PME
    National Instruments

  • Read data from database  write it in excel sheet throw java

    hi
    i wanna to read database table & write it contain in excel sheet how i will do this connectivity between jdbc & excelDB how i will do this
    tell me
    sandeep patil
    [email protected]

    Read Suns JDBC Tutorial, then if there is already an Excel spreadsheet set up to use as an ODBC datasource use JDBC and the JDBC/ODBC bridge. If there is not an already setup ODBC Datasource then Google POI HSSF and/or JExcel to do the Excel part.

  • Is there is any setting for export data from database- datasource

    Hi ALL
    i am using crm 2007 system in there , i had activated opportunities OLTP reports , here but i can not able to get the data in reports , then i check the respective data source in RSA3 it showing zero records,
    is there is any procedure to getting data from data base tables to data source.

    you can follow the same 3.x dataflow eventhough u upgrade.
    the only diff
    3.x - would be emulated DS
    7.0 - RSDS
    3.x - file path declared in infopack
    7.0 - is declared in DS (that would be inherted by infopack)
    Infosource - optional - works fine on both the versions
    creating a new DS, it has to be RSDS .. no way out

  • [solved]Need help with a bash script for MOC conky artwork.

    I need some help with a bash script for displaying artwork from MOC.
    Music folders have a file called 'front.jpg' in them, so I need to pull the current directory from MOCP and then display the 'front.jpg' file in conky.
    mocp -Q %file
    gives me the current file playing, but I need the directory (perhaps some way to use only everything after the last  '/'?)
    A point in the right direction would be appreciated.
    thanks, d
    Last edited by dgz (2013-08-29 21:24:28)

    Xyne wrote:
    You should also quote the variables and output in double quotes to make the code robust, e.g.
    filename="$(mocp -Q %file)"
    dirname="${filename%/*}"
    cp "$dirname"/front.jpg ~/backup/art.jpg
    Without the quotes, whitespace will break the code. Even if you don't expect whitespace in any of the paths, it's still good coding practice to include the quotes imo.
    thanks for the tip.
    here it is, anyhow:
    #!/bin/bash
    filename=$(mocp -Q %file)
    dirname=${filename%/*}
    cp ${dirname}/front.jpg ~/backup/art.jpg
    then in conky:
    $alignr${execi 30 ~/bin/artc}${image ~/backup/art.jpg -s 100x100 -p -3,60}
    thanks for the help.
    Last edited by dgz (2013-08-29 21:26:32)

Maybe you are looking for

  • Show Reply icon in message list stopped working

    About a week ago I noticed that the curvy show reply icon in my Mail message list stopped working. This feature has worked flawlessly with my set-up since it was introduced and suddenly it's dead on all messages going way back. I use IMAP but this ha

  • BMP file corrupted - split in 2 and reversed

    I am using Captivate 3 - we had to recreate a simulation because of an interface change. The size of the new interface was not compatible with our template size, so we captured the software, resized it and imported it into the original cp file. The b

  • [GeForceFX] WDM video capture image size and position

    Hello to all. When I do video capture with my MSI FX5900-VTD128, the picture is not centered correctly and not at the right size either. Let's take for example that I want to record TLC. I always get a black vertical bar on the left side of the captu

  • Finder does not see my Western Digital Hard drive?

    I have been using a Western digital to back my macbook, but since upgrading to OS X 9 maverick it is no longer visible in the finder window? I've used the Western digital utility and the drive passes all tests and it sees it? updated the driver view

  • I am trying to move a file via ftp

    I am trying to move a file from my local share drive on my computer to another server via ftp protocol. I can log into the server and get acknowledgments after entering my user name and password. The problem lies when trying to send my file. I am get