Encoding a CC number in a MySQL DB

Is there a way to encode a member's CC number when inserting
it into a MySQL
database and then have another page be able to decode it for
processing?
Wally Kolcz
Developer / Support

Some gateways have membership or periodic billing
capabilities. If you want more direct control (which that is how
I'm interpretting your inquiry), then look for a gateway that
offers what my company calls "tokenization". Other gateways might
call it something else. I included two links in the thread
referenced above describing the technology.
You can PM me if you would like more info on what we offer as
I don't want to turn this into a SPAM thread. Hope this
helps...

Similar Messages

  • How to enter a 24 digit number into a mysql db

    hi,
    i want enter a 24 digit number into a mysql db as a mathematically manipulatable value.
    when i configure the field as a bigint(24) it takes it as bigint(20)
    when i keep it as bigint and parsing a double value from my application
    it gives data truncation exception for the particular field.
    the whole process worked well when i change the field type to varchar(24),
    what i want is to enter 24 digit number into db as a mathematically manipulatable value.
    if anyone can assist me, pls reply,
    thanks,
    dushi

    you should ask in a mysql-forum. or at least in JDBC-forum here at sun-forums
    you could save it as varchar and parse it when selecting it into bigint in java and make your calculations...

  • How to generate a unique random number in a MySQL db

    I'm creating a volunteer and also a separate vendor application form for an airshow. The volunteer and vendor info is stored in separate tables in a MySQL db, one row per volunteer or vendor. There will be about 100 volunteers and 50 vendors. When the application is submitted it should immediately be printed by the applicant, then signed and mailed in. This past year we had problems with some people who didn't immediately print their application so I'd like to still give them the option to immediately print but also send them an e-mail with a link to their specific row in the MySQL db. I have an autoincrement field as the primary key for each table, but I think sending this key to the applicant in an e-mail would be too easy for them to guess another id and access other people's info.
    I'm thinking I should add a column to each table which would contain a unique random number and I would then send this key in the e-mail to the applicant. So, can anyone suggest a simple way to do this or suggest a better way of giving the applicant a way to access their own application and no-one elses after they have submitted their form?
    Thanks all.
    Tony Babb

    Thanks so much, that was very helpful. I added the code you suggested to create and display the random number - I called it "vollink" and that worked fine. Then I added the hidden field toward the bottom of the form - it shows at line 311 when I do a "View Source in Int Explorer and then tried adding the code to add it to the table and when I tested it failed with "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1" . The test version of the page is here www.hollisterairshow.com/volunteerapp2.php . The changes I made to add it to the table is shown below , I must be missing something blindingly obvious, if you could suggest a fix I'd really appreciate it. I did add the field to the MySQL table also.
    Thanks again
    Tony
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO volunteers (firstname, lastname, email, thursday, friday, saturday, sunday, monday, activity, talents, specialrequests, tshirt, phone, street, city, st, zip, updatedby, vollink) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, $s)",
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['lastname'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['thursday'], "text"),
                           GetSQLValueString($_POST['friday'], "text"),
                           GetSQLValueString($_POST['saturday'], "text"),
                           GetSQLValueString($_POST['sunday'], "text"),
                           GetSQLValueString($_POST['monday'], "text"),
                           GetSQLValueString($_POST['activity'], "text"),
                           GetSQLValueString($_POST['specialtalents'], "text"),
                           GetSQLValueString($_POST['specialrequests'], "text"),
                           GetSQLValueString($_POST['tshirt'], "text"),
                           GetSQLValueString($_POST['phone'], "text"),
                           GetSQLValueString($_POST['street'], "text"),
                           GetSQLValueString($_POST['city'], "text"),
                           GetSQLValueString($_POST['st'], "text"),
                           GetSQLValueString($_POST['zip'], "text"),
            GetSQLValueString($_POST['vollink'], "text"),
                           GetSQLValueString($_POST['lastname'], "text"));
      mysql_select_db($database_adminconnection, $adminconnection);
      $Result1 = mysql_query($insertSQL, $adminconnection) or die(mysql_error());

  • Sorting number in PHP MySQL

    Hi,
    I had recently run into problem with numberic sorting in my product catalog built upon PHP by using MySQL as database. For example, I have magazine issue starting with number 1 to 20, when I sort it by asc, it renders 1, 10, 2, 3, 4 ...., 9, 11. How can I make it orders in proper manner?
    Thank you.
    Best regards,
    Edwin

    Dear Bregent,
    I cannot store the title of the comic as numberic. For instance, the title start with Ben 10 Comic Vol. 1, Vol. 2, ....., Vol. 10, 11 ..... The title is a mixture of number and text.
    Thank you for your reply. Have a nice weekend.
    Best regards,
    Edwin

  • Automated encoding of large number of video files

    I am trying to find some machine-friendly tools for video encoding. They must not require direct user interaction, e.g. through a GUI. Ideally, it will be something that I can control through an XML or command line interface. For example, I would like to be able to say something like "encode this file or network stream, subject to such-and-such parameters, and write the resulting bits to that file or network stream".
    Is there something in the QuickTime constellation -- QtPro/QTSS/DSS/Compressor/??? -- that will help me with this? I'm obviously not an expert in any of these products or SDKs and would appreciate any pointers, suggestions, recommendations, etc.
    Thanks,
    Scott Herzinger

    The QuickTime Pro Player can be controlled via AppleScript but I'm not certain what the range of capabilities are. Compressor allows batch processing and version 2 also has a command-line interface (can be run from the Terminal application or by using scripts). There are also third-party tools that allow batch processing using QuickTime codecs. Some of the latter are shareware or freeware, check on VersionTracker.com (for example, the freeware utility QTAmateur does batch exporting but works only with QT7 -- Pro or non-Pro).
    As for the command-line interface to Compressor 2, here is a thread that talks a little about what can be done (actually, a problem resolution to get the command line interface to work):
    w kucz, "Compressor & Command line" #2, 10:12am Aug 4, 2005 CDT

  • Encoded string to MySQL

    How can I check, what is encoding when I save string to MySQL database from servlet?

    If u r using a later version of mysql u can set "&encoding=..." in the jdbc url. Works great.
    If not use String.getBytes() and have a look at the hex values yourself... to figure it out... compare with the results of native2ascii, this tool can tell u the valid hex values in UTF8 or whatever.

  • Reversable simple number encoding

    It is simple to uniquely encode a number to another number within a certain "MAX", eg 2^31. Given to primes MULT and PLUS we can do it like this:
    int encoded=(number*MULT+PLUS)%MAX;
    eg for MAX=8, MULT=253, PLUS=13:
    number encoded
    0 5
    1 2
    2 7
    3 4
    4 1
    5 6
    6 3
    7 0
    All encoded numbers are unique.
    My question is: How do I reverse this function? Eg in example given coded=7, I decode it to 2, knowing that MAX=8, MULT=253 and PLUS=13.
    In answer to the commonly asked question "why do you want to do this?", it is just because I want to disperse an orderdered set {0,1,2,...} to a set of numbers that later can be reversed to the ordered set.
    Gil

    RE-POST, RE-POST, RE-POST, RE-POST, RE-POST:
    The Forum didn't like my [...] with b in it, jsut became bold: Have [c] now instead!
    Thanks all for your answers. Have got some good ideas but I'm not quite happy.
    The mod operator is a one way operation. There is no way to undo it in constant time. You have to perform a search over the parameter space to find the result. (euclids is one such approach)
    The easiest way of solving it is to store the original value. This is likely not possible in your case (judging from your previous posts about memory limitations).But since the values are mapped 1 to 1, it seems like there should be a reversed function. There is a determined answer for all values.
    Another approach is to store the divisor. If you choose your MULT, PLUS and MAX values well the divisor can be stored in a single byte.I have such an solution. But then I get 2 numbers that "encode" the original number.
    Pardon me if this should be obvious but why do you want to disperse an ordered set to a set of numbers that later can be reversed to the ordered set? It's not for decryption, just for dispersing or hashing.
    A simpler hash would be to just XOR your number with an appropriatly large const. This does not give as good a distribution as themethod you suggested but may be sufficient.
    Nah, it's not sufficient I think.
    Extrapolate to XORing with a number of CONST values add in a few shifts so that the change of a single bit affects more then one bit in your result and you should get a reasonable pseudo random distribution. (MD5 checksum style).Should work, but I don't know how to do it.
    The solutions to find the value by "finding" it by "testing" can work since MAX is rather small and the code is executed very seldomly at non-critical part of the program.
    BUT, I found another interesting solution. I briefed my mathematics. It's the field of "limited bodies", or just a determined contious set Zn, {1,1,...,n-1}. The theory says: For the set Zn, there is an element [c], denoting the set of numbers that mod n are b, and an element [a] such that [a]*[c]=1, iff c is relatively prime to n. [a] is called the multiplicative inverse to [c]. The nice thing about a and c is that they give eachothers inverses in Zn.
    Eg: n=11, a=5, c=9
    value=0: 0 * 5 % 11 = 0 ; inverse: 0 * 9 % 11 = 0
    value=1: 1 * 5 % 11 = 5 ; inverse: 5 * 9 % 11 = 1
    value=2: 2 * 5 % 11 = 10; inverse: 10* 9 % 11 = 2
    value=3: 3 * 5 % 11 = 4 ; inverse: 4 * 9 % 11 = 3
    value=4: 4 * 5 % 11 = 9 ; inverse: 9 * 9 % 11 = 4
    value=5: 5 * 5 % 11 = 3 ; inverse: 3 * 9 % 11 = 5
    value=6: 6 * 5 % 11 = 8 ; inverse: 8 * 9 % 11 = 6
    value=7: 7 * 5 % 11 = 2 ; inverse: 2 * 9 % 11 = 7
    value=8: 8 * 5 % 11 = 7 ; inverse: 7 * 9 % 11 = 8
    value=9: 9 * 5 % 11 = 1 ; inverse: 1 * 9 % 11 = 9
    value=10:10* 5 % 11 = 6 ; inverse: 6 * 9 % 11 = 10
    And we found a nice reverseable dispersing function! Could be combined with XOR too to give even more hash-like functionality!
    A nice way to find n, a and c is to chose n and a to primes, a<n, and then finding c with help of Euclides.
    Gil

  • Troulbe in measuremen​t quadrature encoder with 6601

    Hi,
    Thanks for Ross's help.But I cannot differ 6601's x4 mode from other counter/timer counting mode. In measurement position, what difference between them. And I just want to know whether my application viable.
    We are trying to measure position with 6601. The frequency of quadrature encoder is from 100Hz to 8MHz. Now, we connet the A,B and Z channel directly to counter . Using the example in CVI, we change the filter to 100ns and use x4 mode. It works perfect at low frequency.
    The problem is when the frequency of encoder is higher than 2MHz, the accuracy decreases greatly. I'd like to know about following:
    1.Can 6601 do the previous task enough? Or I must change to use 6602.
    2.If
    6601 is available, is there any way to increase measurement accuracy ?(in software or wire connection )

    >jimmyjimmy2000
    "Hi,
    Thanks for Ross's help.But I cannot differ 6601's x4 mode from other counter/timer counting mode. In measurement position, what difference between them. And I just want to know whether my application viable.
    >>mross>The application is viable. However, the use may be difficult.
    >jimmyjimmy2000
    We are trying to measure position with 6601. The frequency of quadrature encoder is from 100Hz to 8MHz. Now, we connet the A,B and Z channel directly to counter . Using the example in CVI, we change the filter to 100ns and use x4 mode. It works perfect at low frequency.
    The problem is when the frequency of encoder is higher than 2MHz, the accuracy decreases greatly. I'd like to know about following:
    1.Can 6601 do the previous task enough? Or I must change to use 6602.
    >>mross>The 6601 is just as good as the 6602 at 2MHz. Therefore, a 6602 will have the same problem of inaccuracy.
    >jimmyjimmy2000
    2.If 6601 is available, is there any way to increase measurement accuracy ?(in software or wire connection )"
    >>mross>Yes, in the wire connection you can make improvements.
    6601 can count as fast as 20MHz (60MHz with prescaling). The signal is noisy (containing addtional, incorrect information).
    You must use an oscillosope to look at the signal. Look at it when 6601 is counting correctly, and look at it when 6601 is "malfunctioning".
    The counter will increment whenever the signal is high for more than 5 nanoseconds. The conditions for "High" and "Low" signals must be strictly met. If the signal is greater than 0.8V, the counter may increment. The signal must then drop below 2 Volts for a "Low" to be seen.
    This sounds wrong, but is true. The counter is expecting TTL signal conditions (Transistor -Transistor Logic). This specification is very broad.
    A "High" will absolutely be recognised if the signal is greater than 2.0V.
    A "Low" will absolutely be recognised if the signal is less than 0.8 V.
    However, the range from 0.8V to 2.0V is "undefined." This means the counter could increment at 0.8V. It has been my experience that National Instruments TTL will always see 0.8V as a "High." If your noise exceeds 0.8V you will never be able to count accurately.
    The problem will be solved when your encoder signal is read cleanly by the 6601. This is why I gave you the URL for US Digital in the previous answer. The circuits they sell can help to clean up the counter signals. You will have to see what works best, since I don't exactly understnad you application. If the noise is very bad, you may wish to use the Encoder to Binary Number circuit. There will be no noise in the reading of a binary number. Since your encoder may run as fast as 8MHz, you must be sure the circuit you choose is also this fast.
    The other solution is to eliminate the noise which is causing the counter to trigger falsely. THis can be a very interesting problem to solve. Please look a this NI link:
    Field Wiring and Noise Considerations for Analog Signalsv
    http://zone.ni.com/devzone/conceptd.nsf/webmain/01​F147E156A1BE15862568650057DF15?opendocument
    Follow these instructions very carefully.
    Also, this book is helpful to explain noise and how one may reduce it.
    From Amazon.com you can get Grounding and Shielding Techniques, by Ralph Morrison.
    http://www.amazon.com/exec/obidos/ASIN/ 0471245186/104-3492923-2811911
    Be very careful how you wire the circuits. Try to use only one ground point.
    The worst source of noise can be the motor and drive that spins the encoder. Be particularly careful in wiring this apparatus. A simple solution can be to use an air powered motor insted of an electric motor.
    Good luck,
    Mike Ross

  • Connect JBOSS to MySQL using datasource,both servers are on different machi

    HI,
    In my application, I use JBOSS server and MySQL database.JBOSS and MySQL server are on two different machines.I am using mysql datasource,not driver manager to get the connection. i configured mysql-ds.xml and put it in %JBOSS_HOME%\server\default\deploy directory.
    I have also put the mysql connector jar in the %JBOSS_HOME%\server\default\lib directory.
    mysql-ds.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- $Id: mysql-ds.xml 41016 2006-02-07 14:23:00Z acoliver $ -->
    <!-- Datasource config for MySQL using 3.0.9 available from:
    http://www.mysql.com/downloads/api-jdbc-stable.html
    -->
    <datasources>
    <local-tx-datasource>
    <jndi-name>JBossAtWorkDS</jndi-name>
    <connection-url>jdbc:mysql://192.168.1.3:3306/JBossAtWorkDS</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>sa</user-name>
    <password></password>
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
    <!-- should only be used on drivers after 3.22.1 with "ping" support
    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
    -->
    <!-- sql to call when connection is created
    <new-connection-sql>some arbitrary sql</new-connection-sql>
    -->
    <!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
    <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
    -->
    <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
    <metadata>
    <type-mapping>mySQL</type-mapping>
    </metadata>
    </local-tx-datasource>
    </datasources>
    code to make the connection is as follows...
    public class JDBCCarDAO implements CarDAO
    private List carList;
    private static final String DATA_SOURCE="java:comp/env/jdbc/JBossAtWorkDS";
    public JDBCCarDAO()
    public List findAll()
    List carList = new ArrayList();
    DataSource dataSource = null;
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try
    dataSource = ServiceLocator.getDataSource(DATA_SOURCE);
    conn = dataSource.getConnection();
    stmt = conn.createStatement();
    stmt.execute("select * from CAR");
         rs = stmt.getResultSet();
    while(rs.next())
    CarDTO car = new CarDTO();
    car.setMake(rs.getString("MAKE"));
    car.setModel(rs.getString("MODEL"));
    car.setModelYear(rs.getString("MODEL_YEAR"));
    carList.add(car);
    catch (Exception e)
    System.out.println("No SQL connection is made"+e);
    finally
    try
    if(rs != null){rs.close();}
    if(stmt != null){stmt.close();}
    if(conn != null){conn.close();}
    catch(Exception e)
    System.out.println(e);
    return carList;
    I am getting an error as follows...
    No SQL connection is made.
    org.Jboss.util.NestedSQLException:Could not create connection; -nested throwable: (java.sql.SQLException:Unable to connect to any host due to exception:java.net.ConnectException:Connection Time out:connect......
    how to get rid of this problem????plz...someone help me....

    If you have access to a copy of TimesTen 6.0 you can look in the AppServer Configuration Guide (appsrv.pdf) that was shipped with that release. This guide is currently being rewritten and so is not yet available for 7.0.
    If you can't get hold of a copy, e-mail me at [email protected] and I'll send it to you.
    Chris

  • Quad Encoder Decode for FPGA

    Quad Encoders are commonly used position feedback devices.  I'm exploring the possibility of using a Scancon 2RMHF with cRIO or sbRIO, it's has 500cpt on AB, plus a once per rev pulse.  A quick search on the internet shows there are many dedicated ICs that will convert the Quad AB signals to position, e.g. HTLC-2032 or LS7366.
    My question is, if I use cRIO or sbRIO, do NI have ready-to-use FPGA code that will perform the same function as the ICs ?   I have searched ni.com for "quad encoder" but with limited results.

    You can use the onboard FPGA on CompactRIO or Single-Board RIO with Digital I/O to read from most quadrature encoders directly.  You just need to ensure you use a DIO module that is fast enough to capture all the digital edges of your quad encoder signal at the fastest rotational rate of your encoder (500cpt * the number of turns/sec).  The faster the I/O module you use relative to the speed of the encoder pulses, the better accuracy you will acheive with the FPGA.
    To get started with the FPGA programming you can reference this developer zone article on Quadrature Encoders, which I found referenced from ni.com/ipnet, your one-stop-shop for finding NI FPGA example programs and reference IP.
    I also like to use the handy functions generated by the FPGA wizard manually in my FPGA applications.  You can find the Quad Encoder functions here on your hard drive after you install LabVIEW FPGA:   C:\Program Files\National Instruments\LabVIEW 2009\FPGAWizard\PlugIns\Function\niRIOQuadCtr\Templates\Fpga
    I would recommend copying any VIs you use from this folder into your own "user VIs" folder so you have the ability to update or modify them if you see fit without affecting the functionality of the original FPGA Wizard.
    Hope this helps,
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • Encoding query

    Hi,
    I want to write an app which allows someone to describe how to parse an incoming byte stream into a number of strings.
    The user can describe the length of each string and how it's encoded. What I'm trying to figure out is - depending on the encoding, will the number of bytes vary for a particular string? For example, "Hello" will normally be 5 bytes but can it be encoded in such a way that involves more than 5 bytes?
    Thanks for any help.

    Surely the developer doesn't have to worry about this?
    The description of InputStreamReader would seem to suggest that it takes care of converting non-unicode byte streams to unicode characters.
    From http://java.sun.com/docs/books/tutorial/i18n/text/stream.html :
    For example, to translate a text file in the UTF-8 encoding into Unicode, you create an InputStreamReader as follows:
    FileInputStream fis = new FileInputStream("test.txt");
    InputStreamReader isr = new InputStreamReader(fis, "UTF8");

  • New character encoding

    I've invented a Character encoding.
    Advantages of this: ANSI ASCII compatible, Bitwise operations based, Self-synchronising, Abundant.
    Yields of this encoding, against those of UTF-8, are,
    Number of Bits    This Encoding    UTF-8
    Number of Codes    Accumulation    Number of Codes    Accumulation
    8    128    128    128    128
    10    192    320    0    128
    12    512    832    0    128
    14    1280    2112    0    128
    16    3072    5184    2048    2176
    18    7168    12352    0    2176
    20    16384    28736    0    2176
    22    36864    65600    0    2176
    24    81920    147520    65536    67712
    26    180224    327744    0    67712
    28    393216    720960    0    67712
    30    851968    1572928    0    67712
    32    1835008    3407936    2097152    2164864
    This is a new Character encoding scheme (CES) that maps Unicode code points to bit sequences.
    Could you please suggest improvements?
    Please bear with me as the table may not be formatted well for you, especially when using serif. When reading a line in the table, the first value is number of bits and the next pair is for this encoding, and the other pair is for UTF-8, with the first of each pair being the number of codes and the others are their accumulation.
    Sorry! I wish to provide more details on this but I'm restricted for some time. I hope that this does not stop you from assisting me.
    Regards
    Anbu
    This encoding maintains almost all the properties of UTF-8 in a more compact format. ANSI ASCII compatiblity, Bitwise operations based, Self-synchronising and Abundance are some of the properties of this encoding. Further, this encoding encodes all characters in far fewer number of bits than UTF-8 as shown in the table. As I had mentioned earlier I will provide more details and proofs soon. This post is a request for suggestions. Please suggest the most suitable place for this post.

    Ambuk which Adobe software or service is your inquiry in relation too?

  • Linear encoder

    Hi All
    I want to record the position(rotation) signal. If there are 1024 pulse per revolution, I want the position signal to increase linearly(1023,1024,1025......). Shall I use Linear encoder or Angular encoder (From DAQmx creat virtual channel).
    I am using NI-9411.
    Thank you!
    Solved!
    Go to Solution.

    Hi lvymerciqq,
    For Devices without Counters:
    Your module, the NI-9411 doesn't have any on board counters, so unfortunately you cannot use counter functions such as the Linear/Angular encoder DAQmx channel VIs. If you're using a Compact RIO, you can make use of Counters for the device via the use of Scan Mode (You can see this in the NI Example Finder). However, if you're using a Compact DAQ then there are no Counters to make use of so we'd have to implement our own methods in order to clock the signals. For now, I'd think that this application would be limited by being software driven (i.e. making the OS check that a rising edge has occured) however I'm going to do some research and see whether or not there are other possibilities that can be explored; however it won't consist of such a simple solution as just dropping down a single polymorphic VI.
    For Devices with Counters:
    You can configure a Counter task to count the number of rising edges recieved from the encoder; therefore this number will increment on every increased rotation of the encoder. You'll have to be careful with respect to this number rolling over, however. This is when you reach the maximum count of your counter task and then it resets back to 0; this changes from device to device as different counters have different resolutions.
    Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

  • JClient: after INSERT and COMMIT does not show the primary textfield value

    1. In my JClient master-detail form: When I insert a new record, enter data, and commit the changes... the master-panel's primarykey textfield is BLANK, when it should show the new auto-incremented number from the MySQL database. I have to close and open the form again to refresh that field again.
    2. In order to properly save new records in the detail-panel, I have to insert and save the above master-panel first. Is this the way JCLient handle master-detail forms?
    Thanks.

    Hi. Thanks for sharing your advice.
    Re my problem,
    if we have to refresh data by requery,i suggest you should use the way below:
    private JUNavigationBar navBar = new JUNavigationBar(true,false,true,false,true);
    navBar.setModel(JUNavigationBar.createPanelBinding(panelBinding, navBar));
    // after insert ,call this method
    navBar.doAction(navBar.BUTTON_EXECUTE);Tried this out but my textfield still won't get refreshed. Here is the code I came up with:
        private JUNavigationBar navBar = new JUNavigationBar() {
                public void doAction(int button) {
                    if (button == JUNavigationBar.BUTTON_INSERT) {
                        super.doAction(button);
                        navBar.doAction(navBar.BUTTON_EXECUTE);
                        return;
                    super.doAction(button);
            };Re your problem,
    I am developing application with JDev + MySQL,encounted another problem,
    how can i get the primary key supported by auto_increment column after insert?
    i constructed a vo whose sql statement is
    select last_insert_id() as last_id to get the value of auto_increment column.
    i found it can't get the right value unless commit the transaction.
    Would u please tell me your way?Based on what I experienced, we dont have to do the SELECT statement above. MySQL does auto-increment the primarykey but the JClient form just cant show it immediately, unless we close and re-open the form.
    What did I do to refresh the primarykey during insert? Please note that I got this solution accidentally coz I'm still a newbie in Java.
    A user want to add a record:
    1. He presses the Insert button.
    2. He enters data into a component (ex. textfield)
    3. The component's action-performed event is fired, and the following code is run:
            DCJboDataControl dc = (DCJboDataControl)panelBinding.getDataControl();
            ApplicationModule am = dc.getApplicationModule();
            Transaction tr = am.getTransaction();
            dc.commitTransaction();
            ViewObject vo = am.findViewObject("TblaccountsView1");
            vo.executeQuery();
            vo.last();It simply commits the transaction, goes to last (new) transaction, and lets the user continue his data encoding.
    Hope it helps and I hope theres an even better way to do this.

  • Help me to remove this Error in Entity Beans

    this is the Error i am getting along with this Error i have also put my ds xml file and other related file , please help me to remove this error
    at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(Re
    flectedDispatcher.java:91)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
    java:64)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
    java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
    ler.java:884)
    at $Proxy18.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:414)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
    java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
    java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy71.start(Unknown Source)
    at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
    upport.java:271)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
    eanSupport.java:221)
    at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
    java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
    java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
    ler.java:884)
    at $Proxy18.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:414)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
    java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
    java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy15.start(Unknown Source)
    at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:570)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
    at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
    java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
    java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
    tScanner.java:304)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
    canner.java:460)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    doScan(AbstractDeploymentScanner.java:201)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    loop(AbstractDeploymentScanner.java:212)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    run(AbstractDeploymentScanner.java:191)
    Caused by: org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml
    : datasource-mapping MySql not found
    at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDB
    CEntityMetaData.java:483)
    at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init
    (JDBCApplicationMetaData.java:312)at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
    lFileLoader.java:67)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
    a(JDBCStoreManager.java:721)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
    StoreManager.java:409)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
    r.java:353)
    at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
    er.java:155)
    at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
    upport.java:271)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
    eanSupport.java:221)
    at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
    java:60)
    ... 65 more
    11:37:34,679 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.6/server/default/d
    eploy/ProductBean.jar
    11:37:34,679 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
    MBeans waiting for other MBeans:
    ObjectName: jboss.j2ee:jndiName=FaqMstLocal,plugin=pool,service=EJB
    state: CREATED
    I Depend On:
    Depends On Me:
    ObjectName: jboss.j2ee:jndiName=FaqMstLocal,service=EJB
    state: FAILED
    I Depend On:
    Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error
    in jbosscmp-jdbc.xml : datasource-mapping MySql not found
    Cause: org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : da
    tasource-mapping MySql not found
    MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
    ObjectName: jboss.j2ee:jndiName=FaqMstLocal,plugin=pool,service=EJB
    state: CREATED
    I Depend On:
    Depends On Me:
    ObjectName: jboss.j2ee:jndiName=FaqMstLocal,service=EJB
    state: FAILED
    I Depend On:
    Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error
    in jbosscmp-jdbc.xml : datasource-mapping MySql not found
    Cause: org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : da
    tasource-mapping MySql not found
    1 ) Contain of mysql-ds.xml File
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- $Id: mysql-ds.xml,v 1.1.2.1 2003/12/12 19:19:56 starksm Exp $ -->
    <!-- Datasource config for MySQL using 3.0.9 available from:
    http://www.mysql.com/downloads/api-jdbc-stable.html
    -->
    <datasources>
    <local-tx-datasource>
    <jndi-name>MySql</jndi-name>
    <connection-url>jdbc:mysql://192.168.111.44:3306/temp</connection-url>
              <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>new_temp</user-name>
    <password>temp</password>
    </local-tx-datasource>
    </datasources>
    2) i have also add datasource mappping in standardjaws.xml and standardjbosscmp-jdbc.xml file
    File :standardjaws.xml
    <datasource>java:/MySql</datasource>
              <type-mapping>MySql</type-mapping>
         File : standardjbosscmp-jdbc.xml
         <datasource>java:/MySql</datasource>
    <datasource-mapping>MySql</datasource-mapping>

    have a look at http://www.onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html

Maybe you are looking for

  • Process Order -Batch determination for a BOM material(same batch)

    Hi Friends, Thanks in advance. Let us say, a material (ROH) has so many batches as A,B,C & D. Whenever we create a new process order, system has to pick only the particular batch( say -C here)  in the process order BOM through batch determination.  (

  • How to create a client jar file???

    How do I create a client jar file for the client program? Please see my attached ejb-jar.xml. I compiled the my EJB and deployed it successfully. However, I couldn't find the client jar anywhere. I use the weblogic admin console DD editor, I can see

  • Adobe Reader 9.2 and AIR hotfix

    I'm running into an Adobe reader 9.2 and AIR compatibility problem. I developed an AIR App with browser panel that invokes a PDF doc using Adobe Reader. When I update to the latest Adobe Reader (9.2), I start having errors with a dialog saying errors

  • Material on SAP Query

    Hi, I need material on SAP Query (not BW!!). Can you provide me with a link, or training material? Thank you. Tad

  • Exporting Frames as Pictures

    Alright, I might be missing something basic here, I am pretty comfortable with final cut express but all I want to do is export a single frame of me skiing and use it as a picture. Is there a way this can be done with either final cut, or if neccessa