Need to persist data in JVM...

Hi,
I have a requirement in my project where once the user logs in, the database is queried and some information
related to the user is retrieved and stored in JVM.So the number of hits to the database is decreased.
The requirement in detail :
This is Simple Cart-Shopping application.
There is a UI which displays various products which one can view and purchase.
*1)Once the user logs in he can view the various products.*
*2)There are restriction which decides which products that particular user can purchase,*
although a user can view all the products listed in the store.
*3)Every time a user clicks on a product, database is queried to retrieve access info for the user on that product.*
*4)If a user has proper access only then he can purchase the product.*
Presently the database is queried in all the four steps explained above.
I intend to :
Hit database once user logs in and retrive information regarding the access levels of the user for all products listed in the store.
Persist this info in JVM(serialization or by other means...).
Now for any further access info, the persisted objects will provide the data.
This reduces the database hits.
Other details :
App Server - Jboss
Database - oracle
Expected Concurrent users - 2000 - 3000
Please provide your suggestions as to what should be the ideal approach.
regards,
Abhishek.

Hi,
The valueHolder class is a name a suggested and it is used in axis webservice implementation to hold the value by refrence ( array ) which is an implemetaion (if I still remember ) of the wsdl array type
Even Spring is using this type of pattern to hold a constructor argument as an inner static class for another class.
Ex:
import java.util.HashMap;
import java.util.Map;
public class  ValueHolder {
     private static final Map<String, Information> valueHolder = new HashMap<String, Information>();
     public static void addValue(String userId, Information info) {
          valueHolder.put(userId, info);
     public static Information getValue(String userId) {
          return valueHolder.get(userId); // check for none existing userId to avoid null returned value
     public void cleanOnEvent(){
           * Clean on certain occation if the heap size gets into certain point etc.. or other
           *  predefined conditions etc..
          valueHolder.clear();
}Regards,
Alan Mehio
London,UK

Similar Messages

  • Help Needed in persisting data in cache from CEP on to a database

    Hi,
    We are trying to create a Oracle Complex Event Processing (CEP) application in which persist the data stored in the cache (Oracle Coherence) to a back end database
    Let me provide you the steps that I have followed:
    1)     Created a CEP project with cache implementation to store the events.
    2)     Have the following configuration in the context file:
    <wlevs:cache id="Task_IN_Cache" value-type="Task" key-properties="TASKID" caching-system="CachingSystem1">
    <wlevs:cache-store ref="cacheFacade"></wlevs:cache-store>
    </wlevs:cache>
    <wlevs:caching-system id="CachingSystem1" provider="coherence">
    <bean id="cacheFacade" class="com.oracle.coherence.handson.DBCacheStore">
    </bean>
    3)     Have the following in the coherence cache config xml:
    <cache-mapping>
    <cache-name>Task_IN_Cache</cache-name>
    <scheme-name>local-db-backed</scheme-name>
    </cache-mapping>
    <local-scheme>
    <scheme-name>local-db-backed</scheme-name>
    <service-name>LocalCache</service-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <local-scheme/>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.oracle.coherence.handson.DBCacheStore</class-name>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    </local-scheme>
    4)     Have configured tangosol-coherence-override.xml to make use of coherence in my local machine.
    5)     Have written a class that implements com.tangosol.net.cache.CacheStore
    public class DBCacheStore implements CacheStore{
    But when I try to deploy the project on to the CEP server getting the below error:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Task_IN_AD': Cannot resolve reference to bean 'wlevs_stage_proxy_forTask_IN_Cache' while setting bean property 'listeners' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wlevs_stage_proxy_forTask_IN_Cache': Cannot resolve reference to bean '&Task_IN_Cache' while setting bean property 'cacheFactoryBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Task_IN_Cache': Invocation of init method failed; nested exception is java.lang.RuntimeException: Error while deploying application 'AIT_Caching'. Cache store specified for cache 'Task_IN_Cache' does not implement the required 'com.tangosol.net.cache.CacheStore' interface.
    Can you please let me know if I am missing any configuration. Appreciate your help.

    Hi JK,
    Yes my class com.oracle.coherence.handson.DBCacheStore implements the com.tangosol.net.cache.CacheStore interface. I am providing you with the DBCacheStore class.
    package com.oracle.coherence.handson;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.net.cache.CacheStore;
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.Map;
    import oracle.jdbc.pool.OracleDataSource;
    public class DBCacheStore implements CacheStore {
    protected Connection m_con;
    protected String m_sTableName;
    private static final String DB_DRIVER = "oracle.jdbc.OracleDriver";
    private static final String DB_URL = "jdbc:oracle:thin:@XXXX:1521:XXXX";
    private static final String DB_USERNAME = "XXXX";
    private static final String DB_PASSWORD = "XXXX";
    public DBCacheStore()
    m_sTableName = "TASK";
    System.out.println("Inside constructor");
    init();
    //store("10002", "10002");
    public void init()
    try
         OracleDataSource ods = new OracleDataSource();
    /* Class.forName(DB_DRIVER);
    m_con = DriverManager.getConnection(DB_URL, DB_USERNAME, DB_PASSWORD);
    m_con.setAutoCommit(true);*/
         ods.setURL(DB_URL);
         ods.setUser(DB_USERNAME);
         ods.setPassword(DB_PASSWORD);
         m_con = ods.getConnection();
    System.out.println("Connection Successful");
    catch (Exception e)
         e.printStackTrace();
    //throw ensureRuntimeException(e, "Connection failed");
    public String getTableName() {
    return m_sTableName;
    public Connection getConnection()
    return m_con;
    public Object load(Object oKey)
    Object oValue = null;
    Connection con = getConnection();
    String sSQL = "SELECT TASKID, REQNUMBER FROM " + getTableName()
    + " WHERE TASKID = ?";
    try
    PreparedStatement stmt = con.prepareStatement(sSQL);
    stmt.setString(1, String.valueOf(oKey));
    ResultSet rslt = stmt.executeQuery();
    if (rslt.next())
    oValue = rslt.getString(2);
    if (rslt.next())
    throw new SQLException("Not a unique key: " + oKey);
    stmt.close();
    catch (SQLException e)
    //throw ensureRuntimeException(e, "Load failed: key=" + oKey);
    return oValue;
    public void store(Object oKey, Object oValue)
         System.out.println("Inside Store method");
         NamedCache cache = CacheFactory.getCache("Task_IN_Cache");
         System.out.println("Cache Service:" + " "+ cache.getCacheService());
         System.out.println("Cache Size:" + " "+ cache.size());
         System.out.println("Is Active:" + " "+ cache.isActive());
         System.out.println("Is Empty:" + " "+ cache.isEmpty());
         //cache.put("10003", "10003");
         //System.out.println("Values:" + " "+ cache.put("10003", "10003"));
    Connection con = getConnection();
    String sTable = getTableName();
    String sSQL;
    if (load(oKey) != null)
    sSQL = "UPDATE " + sTable + " SET REQNUMBER = ? where TASKID = ?";
    else
    sSQL = "INSERT INTO " + sTable + " (TASKID, REQNUMBER) VALUES (?,?)";
    try
    PreparedStatement stmt = con.prepareStatement(sSQL);
    int i = 0;
    stmt.setString(++i, String.valueOf(oValue));
    stmt.setString(++i, String.valueOf(oKey));
    stmt.executeUpdate();
    stmt.close();
    catch (SQLException e)
    //throw ensureRuntimeException(e, "Store failed: key=" + oKey);
    public void erase(Object oKey)
    Connection con = getConnection();
    String sSQL = "DELETE FROM " + getTableName() + " WHERE id=?";
    try
    PreparedStatement stmt = con.prepareStatement(sSQL);
    stmt.setString(1, String.valueOf(oKey));
    stmt.executeUpdate();
    stmt.close();
    catch (SQLException e)
    // throw ensureRuntimeException(e, "Erase failed: key=" + oKey);
    public void eraseAll(Collection colKeys)
    throw new UnsupportedOperationException();
    public Map loadAll(Collection colKeys) {
    throw new UnsupportedOperationException();
    public void storeAll(Map mapEntries)
         System.out.println("Inside Store method");
    throw new UnsupportedOperationException();
    public Iterator keys()
    Connection con = getConnection();
    String sSQL = "SELECT id FROM " + getTableName();
    List list = new LinkedList();
    try
    PreparedStatement stmt = con.prepareStatement(sSQL);
    ResultSet rslt = stmt.executeQuery();
    while (rslt.next())
    Object oKey = rslt.getString(1);
    list.add(oKey);
    stmt.close();
    catch (SQLException e)
    //throw ensureRuntimeException(e, "Iterator failed");
    return list.iterator();
    }

  • Storing Persistent Data In A Flat File -- Design Ideas?

    I have an application that needs to store a small amount of persistent data. I want to store it in a flat config file, with categories and key-value pairs. The flat file might look something like this:
    John:
    hair=green
    weight=170
    Sally:
    eyes=blue
    weight=110
    and so on. My application will initialize a custom class with the data stored in the file, and then work with that class. When updates are made to the data as the application runs, the file will need to be changed too (so that changes will be reflected even if the program crashes, eg).
    What is the best way to implement this? Does Java have any built in classes that allow for something like this? I was thinking about Serializable (which I've never used), but I want the file to be human readable and editable. How about using RandomAccessFile? I'm guessing there is a better way....
    Thanks for any advice,
    John

    I'd use a XML structure; classes for XML storing/parsing are part of the API, the structure of XML is flexible enough and human-readable.

  • Persistent Data Question

    Hi all,
    As I was looking into implementing persistent data conversion, I tried something for giggle (see below), and I found out that I didn't actually have to do anything, to perform the conversion. This baffles me, and so if anyone could explain to me what's going on, I'd really appreciate it:
    I have a persistent interface on kWorkspaceBoss:
    AddIn {
    kWorkspaceBoss,
    kInvalidClass, {
    IID_SOME_PERSIST_INTERF, kSomePersistInterfImpl,
    In the older version of my plug-in, I have:
    void SomePersistInterfImpl::ReadWrite(IPMStream* stream, ImplementationID prop) {
    stream->XferBool(boolVal1);
    stream->XferBool(boolVal2);
    stream->XferBool(boolVal3);
    stream->XferBool(boolVal4);
    // and many more...
    In the newer version of my plug-in, I have:
    void SomePersistInterfImpl::ReadWrite(IPMStream* stream, ImplementationID prop) {
    stream->XferBool(boolVal1);
    stream->XferBool(boolVal2);
    stream->XferInt32(int32Val);
    pmStringVal.ReadWrite(stream);
    // and many more...
    Using the older plugin, I set boolVal1, boolVal2, boolVal3, boolVal4 to, say, kFalse, kTrue, kFalse, kFalse, and then closed InDesign. And then I replaced the older plugin with the newer one. Now using the newer plug-in, I set boolVal1, boolVal2, int32Val, pmStringVal to, say, kTrue, kFalse, 50, "random", and then closed InDesign.
    It turned out that switching back to the older plug-in, the four bools' values are still preserved. The same also for all the newer plug-in's data when switching back to the newer one.
    1. Does this mean I don't even need to worry about data conversion?
    2. I realize that I should probably also persist the version information (as one of the suggested approach offered by the programming guide) for future changes. The problem is I didn't persist this information in my older plugin, can I still stick that value in for the newer one?
    Thanks a bunch!
    Dennis

    Hi all,
    As I was looking into implementing persistent data conversion, I tried something for giggle (see below), and I found out that I didn't actually have to do anything, to perform the conversion. This baffles me, and so if anyone could explain to me what's going on, I'd really appreciate it:
    I have a persistent interface on kWorkspaceBoss:
    AddIn {
    kWorkspaceBoss,
    kInvalidClass, {
    IID_SOME_PERSIST_INTERF, kSomePersistInterfImpl,
    In the older version of my plug-in, I have:
    void SomePersistInterfImpl::ReadWrite(IPMStream* stream, ImplementationID prop) {
    stream->XferBool(boolVal1);
    stream->XferBool(boolVal2);
    stream->XferBool(boolVal3);
    stream->XferBool(boolVal4);
    // and many more...
    In the newer version of my plug-in, I have:
    void SomePersistInterfImpl::ReadWrite(IPMStream* stream, ImplementationID prop) {
    stream->XferBool(boolVal1);
    stream->XferBool(boolVal2);
    stream->XferInt32(int32Val);
    pmStringVal.ReadWrite(stream);
    // and many more...
    Using the older plugin, I set boolVal1, boolVal2, boolVal3, boolVal4 to, say, kFalse, kTrue, kFalse, kFalse, and then closed InDesign. And then I replaced the older plugin with the newer one. Now using the newer plug-in, I set boolVal1, boolVal2, int32Val, pmStringVal to, say, kTrue, kFalse, 50, "random", and then closed InDesign.
    It turned out that switching back to the older plug-in, the four bools' values are still preserved. The same also for all the newer plug-in's data when switching back to the newer one.
    1. Does this mean I don't even need to worry about data conversion?
    2. I realize that I should probably also persist the version information (as one of the suggested approach offered by the programming guide) for future changes. The problem is I didn't persist this information in my older plugin, can I still stick that value in for the newer one?
    Thanks a bunch!
    Dennis

  • Session Facade and Access to a Non SQL Based Persistent Data Store

    Hi,
    We are currently using jDeveloper 10.1.3.5 and Oracle Application Server 10.1.3.5. We develop all our applications as Java portlets using Oracle PDK and they are exposed through Oracle Portal.
    In our environment, the persistent data is stored on a combination of an Oracle database and a non SQL based persistent data store.
    The way we access the non SQL persistent data store is by posting a URL and receiving an XML document back in response. This mechanism is used both for enquiry and update of the persistent store.
    We have to create a new XML schema for each entity that we need to access and there are software changes on both our environment (Java) and the non SQL based persistent data store.
    In an attempt to shorten development times we are looking to start using ADF faces and EJB3.
    We have downloaded the SRDemo tutorial and made it work but there are some challenges.
    1. The SRDemo seem to have a very minimal implementation of a business layer. From what I can see, it is essentially some straightforward wiring between database attributes and their viewable representation. Is there a demo/tutorial containing a bit more meat in the business layer that you are aware of?
    2. Given our non SQL based persistent data store, how would you go about implementing EJB3 for such scenario. Is it recommended at all? How would you go about integrating the rest of the application (business layer and representation layer) to data arriving from such source?
    3. SRDemo is not intended to be exposed as a portlet. Is there a tutorial that we can use incorporating JSR168, ADF Faces and EJB3 in the same application? I also understand that there is a JSF-JSR168 bridge available. Can you provide some pointers here? Where can we find it? Would we be able to use it in jDeveloper 10.1.3.5?
    Regards

    Matt,
    The only way to associate an "x-axis" with a signal in the Write Data VI would be to feed it waveforms, which are constrained to use time as the x-axis unit. There is really no way around this, so in my opinion, the best solution for you would be to use the "rows are channels" conversion and write the frequency and amplitude values to the file independently. Then when you read the file in DIAdem, take the two channels and build a graph out of them there.
    Regards,
    E. Sulzer
    Applications Engineer
    National Instruments
    E. Sulzer
    Applications Engineer
    National Instruments

  • Problems with persistent data in Plugin

    Hi everybody,
    I'm currently working on an old plugin for the company i'm working. I never have done something with InDesign before so i guess that is one of the main problems ^^. The Plugin was originally developed for CS 2 and was first ported to CS3 and now to CS4. The code is neither commented nor is the person that wrote the plugin still available (hurray for me ^^). The new port is running, but it still misses a feature that was, at least in cs2, functional but never used so it didnt got ported.
    The plugin uses preferences to store persistent data and according to that data highlight some text or dont highlight it. The problem i cant fix now, is that the plugin cant instanciate the preferences to store the data.I posted the first code that tries to get a new instance of the preferences and fails. I looked throught the sdk-sample, but they use a different way to get and set the preferences. So the main question is: Is it still possible to set/get preferences like the following, or do i need to do it somehow differenly?
    bool16 dhPrintMarkUtils::GetTagShown()
         IDocument* doc = Utils<ILayoutUIUtils>()->GetFrontDocument();
         if (doc != nil)
              InterfacePtr<IDHPrintMarkPrefs> iPrefs(doc->GetDocWorkSpace(), UseDefaultIID());
              if (iPrefs != nil)
                   return iPrefs->GetTagShown();
         return kFalse;
    The Preferencesclass is as follows:
    #include "VCPluginHeaders.h"
    // Interfaces:
    #include "IPMStream.h"
    //General:
    #include "CPMUnknown.h"
    // Project:
    #include "dhPrintMarkID.h"
    #include "dhPrintMarkPrefs.h"
    class dhPrintMarkPrefs : public CPMUnknown<IDHPrintMarkPrefs>
    public:
         dhPrintMarkPrefs(IPMUnknown* boss);
         virtual ~dhPrintMarkPrefs();
         virtual bool16 GetTagShown ();
         virtual void SetTagShown (bool16 tagHilited);
         virtual void ReadWrite(IPMStream* s, ImplementationID prop);
    private:
         bool16 fTagHilited;
    I dont quite know what else is relevant, so if you could please drop a note what else i should provide, i will glady post it.
    Thank you very, very much for answers! (I'm kinda desperate on this topic ^^).
    Grettings,
    Daishy

    Hi again,
    First of all, thanks for your tips! Unfortunately it still isnt working :/
    I tried reimplementing a new preferences class (i attached the source to it, so it wont take up that much space). I followed all your tipps and the sdksample (at least i hope so).I only try to read the preferences so far, not change it or write it. The following function is called from a gui element
    trying to check a checkbox based on the result the method is giving (true oder false). But i get the not created message.
    Am i stil doing something wrong? Once again thanks for your help and time!
    Edit: I tried uploading the files, but it seems thats not allowed. So i put them in a pastebin:
    http://pastebin.com/m48eb9ca3
    http://pastebin.com/m10fe4733
    bool16 dhPrintMarkUtils::GetTagShown()
         IDocument *doc = Utils<ILayoutUIUtils>()->GetFrontDocument();
         if(doc != nil)
              InterfacePtr<IdhPrintmarkPreferences> iPrefs2(doc->GetDocWorkSpace(), UseDefaultIID());
              if(iPrefs2 != nil) CAlert::ErrorAlert("created");
              else CAlert::ErrorAlert("not created");
    To the ID.h i added:
    DECLARE_PMID(kInterfaceIDSpace, IID_PREFERENCES, kDHPrintMarkPrefix + 7)
    DECLARE_PMID(kImplementationIDSpace, kdhPrintmarkPreferencesImpl, kDHPrintMarkPrefix+23)
    To the factorylist.h i added:
    REGISTER_PMINTERFACE(dhPrintmarkPreferences, kdhPrintmarkPreferencesImpl)
    To the .fr i added (on toplevel):
    resource IgnoreTask(1)
         kImplementationIDSpace,
              kdhPrintmarkPreferencesImpl,
    And to the resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) part:
    AddIn
         kWorkspaceBoss,
         kInvalidClass,
              IID_PREFERENCES, kdhPrintmarkPreferencesImpl,

  • CS4 InDesign persistent data changes getting lost

    Hi, We have some CS4 InDesign documents that lose the latest changes to persistent data once the odcument is closed. It appears as though the write to persistent data is reverted to previoue version once the file is opened again.......... appreciate any thought on why this is happening!
    Thanks in advance!

    Hi Mahe,
    1. You maxl does the following things
    exports data
    clears data
    updates the outline
    reimports the data
    2. After you reimport,Are you trying to retrive to confirm the data ?
    3. After you reimport the data, check the properties of database ( check whether the new blocks have been loaded , and increased the count ).
    4. Are you exporting all data , or only level 0 ?
    5. If its only level 0, You need to aggregate or consolidate ( by running calculation script).
    Hope this helps
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • Need of persistent object

    Hi Gurus.,
         I am little bit confused over Persistent Objects.. Y we need to use Persistent Objects.. Is it equal to Enquee/Dequee process of normal abap ..
    Regards.,
    S.Sivakumar

    Persistent objects were introduced in ABAP OO in order to replace physical data manipulation via open SQL statements by more abstract OO-typical GET and SET methods for a persistent data object. Has nothing to do with Dequeue/Enqueue.
    I recommend reading chapter 3 of [Next Generation ABAP Development|http://www.sappress.com/product.cfm?account=&product=H1986] for the full story.
    Greetings
    Thomas

  • Persisting data using LDAP

    Is it possible to persist data (across sessions) in an LDAP service? I would like
    to be able to store preferences/configuration properties in an LDAP service and
    when I restart the application server those properties are persisted and can be
    retrieved using the InitialContext.lookup() method.
    Is this possible? If it is do application servers support this or do I need to
    install a separate LDAP service?
    Thanks,
    Mike

    Hi Mike,
    It is possible and there are different ways to access the LDAP server by
    either using the JNDI DirContext, Netscape LDAP API, or JDBC-LDAP bridge
    driver.
    You can choose whichever suits you best.
    On java.sun.com there is a very good tutorial on how to do this via JNDI
    and it is probably the easiest way to do what you need.
    Weblogic 7.0 and 8.1 come with an Embedded LDAP server so you wouldn't
    need a separate LDAP server if you use them. The documentation on how to
    connect and use/configure it is scarce at best but we managed to make it
    work just fine for us.
    If you use another version/vendor then you'll most probably need an
    external separate LDAP server.
    Regards,
    Dejan
    Mike wrote:
    Is it possible to persist data (across sessions) in an LDAP service? I would like
    to be able to store preferences/configuration properties in an LDAP service and
    when I restart the application server those properties are persisted and can be
    retrieved using the InitialContext.lookup() method.
    Is this possible? If it is do application servers support this or do I need to
    install a separate LDAP service?
    Thanks,
    Mike

  • CS3/CS4 - Persistent data and different versions of plugin

    Hi there,
    In my plugin I have persistent data on e.g., the document and page items.
    Say that I'm in version 1.0 of my plugin has a single persistent data field on the document, and that is wish to add a second field for version 1.1.
    Does the SDK contain some form of functionallity for merging an old document into a new one that conform with the new fields?
    Basically, my problem is that I do not know if I'm allowed to read the new persistent field in my ReadWrite function, since the current document could be created using version 1.0.
    I guess that one solution is to tag the document with a version, and use that to determine the functionality of the ReadWrite function? However that do not seem as the most elegant solution...
    I hope somebody understands my problem, and has a more sophisticated solution
    Thanks
    Kind regards Toke

    There are basically two ways to deal with this situation.
    The first is to let InDesign treat your data as a blob, include your own version number in the blob and parse the blob yourself based on the version number.  In this scenario you generally keep your plug-in's version resources the same, so InDesign doesn't know you've changed data formats.
    The second is the InDesign way, in that you define a schema resource for each format version of your plug-in.  Doing this places constraints on your data, in that changes have to be moderately simple so that InDesign can apply changes to the older versions of your data to bring them up to the current schema.
    See Schema.fh in the SDK.
    The sample /Adobe_InDesign_CS4_Products_SDK/source/sdksamples/framelabel/FrmLbl.fr also uses schema resources.
    The key is to be careful about syncing changes in your data with changes to your plug-in's format version numbers, as well as keeping your data simple enough for the schema system to update it.  If you don't, then you need to get into schema updating code and a bunch more work.
    Jon

  • Need to convert  Date from calendar to String in the format dd-mom-yyyy

    Need to convert Date from calendar to String in the format dd-mom-yyyy+..
    This is absolutely necessary... any help plz..
    Rgds
    Arwinder

    Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    Arwinder wrote:
    This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • What cable do I need to transfer data direct from my iMac to my macbook pro

    What cable do I need to tranfer data direct from my iMac to my MacBook pro?

    Generally, Ethernet or FireWire.
    (71181)

  • I need to copy data from a table in one database (db1) to another table in

    Hi
    I need to copy data from a table in one database (db1) to another table in another database (db2).
    I am not sure if the table exists in db2,,,if it doesnot it needs to be created as well data also needs to be inserted...
    How am I supposed to this using sql statements..?
    I shall be happy if it is explained SQL also...
    Thanking in advance

    How many rows does the table contains? There are manyway you can achieve this.
    1. export and import.
    2. create a dblink between two databases and use create table as select, if structure doesnot exists in other database, if structure exists, use, insert into table select command.
    example:
    create a dblink in db2 database for db1 database.
    create table table1 as select * from table1@db1 -- when there is no structure present
    -- you need to add constraints manually, if any exists.
    insert into table1 select * from table1@db1 -- when there is structure present.
    If the table contains large volume of data, I would suggest you to use export and import.
    Jaffar

  • I need to pass data from an Access database to Teststand by using the built in Data step types(open data

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
    When I tried the same thing on another cmputer the same thing
    happend
    appreiciate u"r help

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
    Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
    Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
    "SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
    Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
    and you are running. Has anything else changed aside from the file you are editing?
    Regards,
    -Elaine R.
    National Instruments
    http://www.ni.com/ask

  • Need to read data from a text file

    I need to read data from a text file and create my own hash table out of it. I'm not allowed to use the built in Java class, so how would I go implementing my own reading method and hash table class?

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for