Using a sequence in mysql with Jdev

Hi
I created a Form in jdev that access mysql, if i tried to create a new record, i need to insert next id or i guess i have to create a trigger, since mysql does not have a sequence,
mysql have an autonumber, and if i insert a record , i need to commit the record .
do you have a solution how to best deal with the process of creating a records on Form with mysql.
Thank You for your help!
David

See the section in this doc:
http://www.oracle.com/technology/products/jdev/11/how-tos/multidatabaseapp.html

Similar Messages

  • Use of 'sequence-next-val' in JDEV

    All,
    As part of my ESB project, I'm integration an appln. with Oracle EBS. My requirement is to populate a field with a sequence value. I found there is a db function in Jdev. As per the note, I used the 'sequence-next-val' function to generate sequence. In the function parameter 'sequence' I added the sequence as given in the note (orcl:sequence-next-val('<actualsequencename>,'jdbc:oracle:thin:<user>/<pwd>@<localhost>:1521:<SID>'). When I try to save the proejct, I got the following error
    ' (2):sequence-next-val: Error: Function with Too Few Parameters'. I'm clueless what could be the issue?
    Any help on this is highly appreciated.
    Regards,
    sen

    Hi sen,
    The function orcl:sequence-next-val takes 2 parameters. It return the next value of an Oracle sequence. It is similar to sequence generation what we see in Oracle sql.
    How to proceed:
    First of all you need to drap that function to the tranformation swimlane. Create a database sequence, say,TEST. This will be the first parameter for the function.
    The second parameter will be your database connection details, i.e. the database in which your source table is defined.
    Suppose your database is having details as:
    Username: abhi
    Password: abhishek
    Host: 172.128.5.13
    Port: 1521
    SID: Oracle
    so the second parameter will look like this:
    'jdbc:oracle:thin:abhi/[email protected]:
    1521:Oracle'
    or for the second parameter you can add a datasource entry in data-sources.xml file under soa_home\j2ee\oc4j_soa\config.
    Say the datasource name is BPEL_DBS. so the function will look like,
    orcl:sequence-next-val('TEST','jdbc/BPEL_DBS')
    After doing this, map it to the destination field.
    Cheers,
    Abhi...

  • Using Database Sequence in Interface with Union

    Hi Gurus,
    I have Oracle 11gR2 database as my Source and Target.
    When I try to use Database Sequence along with an Interface having set operator like Union , I am getting the following error:
    ODI-1227: Task eSIS_Student_U1_Fact (Export) fails on the source ORACLE connection ESISDW.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-02287: sequence number not allowed here
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)
         at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
         at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:89)
         at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)
         at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:70)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    Is there any work around to use Database Sequence along with the Interface?
    Regards,
    Sai.

    Hi Arv,
    Thanks for the reply. I tried that also, but still no luck.
    Regards,
    Sai.

  • Can I use j2sdk 1.4.1 with JDev 3.2?

    I get the following error message on all files I try to compile in JDev 3.2 using j2sdk1.4.1?
    class file has wrong version 48.0, should be 45.3 or 46.0.
    Is it possible to use the latest release of java with JDev 3.2??
    Thanks
    Bret

    Unfortunately, using Java 1.4 is not possible with JDeveloper 3.2.
    The latest release of JDeveloper, 9.0.3 can be used to compile and run Java 1.4 projects.
    Brian
    JDev Team

  • Exporting from PPro CC - Exporting using Match Sequence Settings issue with 24 bit audio

    I am having an issue exporting my sequence which contains final AIFF mix (24 bit 48 kHz) into a 'same-as-source' ProRes 422 file with 24 bit audio. I am specifically trying to export media with 'Match Sequence Settings' checked to create an identical output of what my sequence is. I wind up only creating a PR422 with 16 bit audio rather than 24 bit audio.
    My sequence contains ProRes 422 media and 24 bit AIFF final stereo mix (1 audio file) from our Sound department.
    My sequence is currently setup as "Custom" at 1920x1080, 23.976 fps, Square Pixels, Progressive, etc. Audio is 48 kHz (I don't see an option for choosing different bit rates in the 'Sequence Settings').
    Using 'Match Sequence Settings', my options to alter the audio are "greyed out" and unavailable. I'm not sure why 'Match Sequence Settings' doesn't recognize that I am cutting with 24 bit audio and, instead, only exports 16 bit audio.

    Always skip Match Sequence Settings and set up the export manually.

  • How to use html Tags from MySQL with PHP

    I like HTML tags like <b>bold</b> or <BR>
    and others placed in the MySQL database and used by PHP to show up
    in my pages but I don't succeed. I tryied HTML encode
    (htmlentities) from the bindings POP-up menu but nothing happened.
    What is the way this should be acomplished and where is HTML
    encode (and the others in the pop-up menu) being used for?
    Any help will be appreciated,
    Jos

    arnhemcs wrote:
    > I like HTML tags like
    bold or <BR> and others placed in the MySQL
    > database and used by PHP to show up in my pages but I
    don't succeed. I tryied
    > HTML encode (htmlentities) from the bindings POP-up menu
    but nothing happened.
    Just store the HTML as plain text in your database. Using
    htmlentities()
    turns < into &lt; and so on. Using it is what's
    preventing your HTML
    from displaying correctly.
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Hello, i use premiere pro cc and i would like to uplaod my sequence in speedgrade with direct link but it's not available. I can see the option but it's not clickable, somebody knows why ?

    Hello, i use premiere pro cc and i would like to upload my sequence in speedgrade with direct link but it's not available. I can see the option but it's not clickable, somebody knows why ?

    Oh i'm not sure they are on same, i downloaded speedgrade this morning and i didn't upgraded premiere so it's maybe this ! thanks i will try it and let you know

  • What is best method for learning how to use mySQL with Coldfusion?

    I have been using access databases for years with Coldfusion. I have a client that wants me to build an online classroom. I figure it's time to finally start using mySQL, but there is so much info out there, I don't know which way to turn.
    Where do you experts recommend I get started?
    Also, I am using coldfusion entrprise on my system at home. My machine is a 64-bit, 3.30Ghz AMD FX - 6100 six-core processor with 8gig of ram. Can I install mySQL on the machine and run CF8 without any problems?

    How much RAM left on your system? If the computer is strictly for development, then you have more than enough to run ColdFusion, MySQL, browsers, and other development tools.
    For MySQL download the MySQL Community Server and MySQL Workbench. There is also all-in-one package for Windows, http://dev.mysql.com/downloads/windows/installer/ that you don't need to download the server and workbench separately. The installation should be straight forward.
    By the way, other CF users may suggest you to use MariaDB (https://mariadb.org/), which is a branch of MySQL.

  • Problems with JDev 11g using JBOSS and ANT

    Hi,
    I'm trying to migrate to JDev 11g with JBoss ( version 7.X ) as the AppServer
    With JDev 10g all works fine with JBoss, even the Remote Debug, all OK
    here is the problems I have :
    1) ANT
    JDev doesn't save my ANT settings
    every time I launch ANT : Run Ant Target - I must set the Advance settings
    JDev 10g I only need to do that once, the settings are saved but not in the 11g, why ?
    2) persistence
    I get this error when deploying to JBoss
    16:34:50,967 INFO [org.jboss.as.server] (HttpManagementService-threads - 1) JBA
    S015870: Deploy of deployment "prod_v0.0.1_iDigital.menu.ear" was rolled back wi
    th failure message {"JBAS014771: Services with missing/unavailable dependencies"
    => ["jboss.persistenceunit.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp
    .war#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceun
    it.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp.war#InfraModel\"jboss.na
    ming.context.java.jdbc.stdDS]","jboss.persistenceunit.\"prod_v0.0.1_iDigital.men
    u.ear#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceu
    nit.\"prod_v0.0.1_iDigital.menu.ear#InfraModel\"jboss.naming.context.java.jdbc.s
    tdDS]"]}
    it seems that is something related to dependencies not well configured during build stage of the EAR, but with 10g works fine
    BTW, I can't run my project with WebLogic either, gives this error :
    <5/Abr/2013 18H27m BST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1365182860563' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].'
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    >
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'iDigital.menu'.>
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    can someone give me a clue ?
    thanks
    Edited by: FernandoLeite on Apr 5, 2013 10:31 AM

    I can't say many about the ant stuff, but have you tried to put the parameters in a property file and use this to get the parameters to ant?
    The reason you can't run the application on WLS is that you have not installed the adf runtime on your wls. The error 'application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].' points to this.
    Timo

  • Using MySQL with Java

    Hi, I am writing a database program, and I decided I should try and use MySQL since many people have told me it is the best way to make a database. Does the java version that Sun provide come with the api to create mysql databases?
    Also, I would like to know of a good tutorial that teaches MySQL with java.

    Hi, I am writing a database program, and I decided I
    should try and use MySQL since many people have told
    me it is the best way to make a database. Does the
    java version that Sun provide come with the api to
    create mysql databases?
    You are more than a bit confused so please stop here until you understand the following.
    JDBC is the API for communicating with relational databases in Java. It is not a database in and of itself but it can communicate with any database that provides JDBC API access in the form of a JDBC driver.
    Also, I would like to know of a good tutorial that
    teaches MySQL with java.The Sun tutorial on JDBC may be found here http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Your using (or not) MySQL is not relevent on this forum and any questions you have regarding MySQL (with the exception of one) are beyond the scope of this forum.
    The exception is "Is there a JDBC driver for MySQL and how do I use it". The answer to that question is yes and see this http://www.mysql.com/products/connector/j/

  • Strange behaviour with JDev 10.1.3.1 thru 10.1.3.3 creating JSP using CDB

    Greetings,
    I am experiencing a strange problem developing some simple JSPs using the Content DB libraries. It happens on JDev 10.1.3.1, 10.1.3.2, and 10.1.3.3.
    I don't know if its my environment or something else. If your in for a mystery then this one is for you.
    All JSPs, Backing Beans, and supporting class all compile without a problem.
    JSPs run and data is displayed as expected. All seems fine.
    Problem:
    When I go back to the JSP and click on it to open (for work), JDev just hangs up. Have to go into Task Manager to Kill process.
    Work Around:
    Back in JDev before I click to open JSP, I clean out the compiled classes. Then click on JSP and it pops right up?!?!
    Has something to do with Content DB libs?
    I go back to the backing bean and Comment out all calls to any CDB APIs within the methods. The overall structure of the backing bean is intact but it renders the JSP useless of course. But the after I compile (without errors) the NO CDB API version, I click on the JSP; it opens right up in JDev.
    Ok, what I did not tell you yet. The missing key to this mystery.
    I'm working on my local desktop. There is no local instance of OCDB on my desktop. Only Jdev and the OCDB development kit. The Actual instance of the content DB is elsewhere. The code reads a property file to get the URL and S2S logon information from a property file (local on my desktop) to connect and do its thing. NOW, AS LONG AS I AM VPN into the network (where several OCDB instances can be accessed), I can go into JDev and open the JSP REGARDLESS of whether I've compiled the code or not.
    When I'm running the VPN, I see the in and out byte count moving up and up, then within a few seconds, the JSP pops right up.
    How strange is this?!
    Question: When using the OCDB libraries with JDev, is it going out to look for some license? It seems that JDev knows my code is calling some OCDB APIs then goes out and does something before it allows me to continue. Without the VPN connection its looks like its sits there waiting for something. My colleagues don't have this problem. But of course they are inside of the firewall, I'm outside.
    I've worked on a lot of JSPs before (without OCDB) and I've never seen anything like this before. Here is a list of the libraries that I'm using.
    Using version 10.2 of the CDB Libraries.
    Importing these jars to my project in JDev.
    1. cdb-devkit-client.jar
    2. content-ws-client.jar
    3. axis.jar
    4. commons-codec-1.3.jar
    5. commons-discovery-0.2.jar
    6. commons-httpclient-3.1-rc1.jar
    7. commons-logging-1.0.3.jar
    8. jaxrpc.jar
    9. saaj.jar
    10. wsdl4j-1.5.1.jar
    Any suggestions would help. Since I've found a work around. I'm up and moving, but I would REALLY like to know what's up with this.
    THANKS
    Winston

    Hi folks,
    I have some more news on this issue.
    As noted in my first post, I noticed that the VPN monitor was moving very aggressively when the VPN connection was established. Activating JSP in design mode while classes were compiled and my VPN connected always seemed to do the trick.
    So, Why does it work when VPN is connected? What’s JDev doing?
    To answer these questions I loaded up an IP packet sniffer to find out exactly what JDev. was up to. Here are the results, but first a recap of the steps.
    Let’s say you have a model view project (using Content DB) that has already been compiled and you know it works.
    You are working remotely and need to connect via VPN.
    You have no local instances of the Content DB running.
    You VPN in and run the JSP from JDev. to verify that all is in working order.
    Ok get out of the app and close down all its windows.
    In JDev, close out all files in the developer.
    Disconnect the VPN.
    Then in JDev open the JSP. If it comes up in source mode switch it to design mode (Click on the "Design" tab).
    JDEV hangs up.
    Ok now Go into Task Manager and kill the process.
    Then find the class folder where the compiled code sits and delete them all.
    Start up JDev and go into your project and open the JSP file.
    If it comes up in source mode, switch to design mode. Either way this will work.
    Now close the JSP file.
    Recompile the code.
    NOW START UP the IP Packet Sniffer on your local machine. (VPN IS NOT CONNECTED)
    Open the JSP file. If it comes up in source mode, switch to design mode.
    Now go back and look at the IP packets.
    BEHOLD! IT IS TRYING TO CONNECT TO THE SERVER USING THE CORRECT URL FOR MY INSTANCE OF THE OCDB.
    Note: There are no URLs encoded in the code. It gets the URL by reading it from a properties file.
    The URL to the server is only specified in the property file.
    By the way, JDev is now hung up because you’re not VPN in.
    Go into the task manager and kill the process, delete the compiled class files, and restart JDev.
    Now go and find the property file on your local drive, and rename it.
    Go back to JDev. and recompile the code.
    Bring up the JSP in design mode.
    Look at the output of the IP packets.
    THERE ARE NONE! This also shows that its not some kind of cache problem, else it would try to connect.
    JDev is active and the JSP is displayed in design mode.
    So, either by deleting the compiled classes or removing the properties file CLEARS the problem.
    It appears that I’m hanging up because JDev is partially executing the code when you switch into design mode?!?
    If the code is complete it tries to go all the way. Since I'm not VPN in I never get a response from the server, thus it hangs forever.
    If the code is incomplete, it never tries to connect.
    Now if I try this WITH my VPN connected, I see the packets going to the server, and the JSP is eventually displayed.
    Also noted that when the property file was renamed and/or the executable classes were deleted, The JSP always pops up (almost immediately). When VPN is connected and classes are compiled and the property file is accessible, it is a lot slower. More Support that JDev is doing something with the server.
    So why is this thing running my code when I switch design modes?
    I’ve also found this thread on the JDev Fourm.
    JSP Design not working when ICEFaces extension is integrated JSP Design not working when ICEFaces extension is integrated
    A Known problem with JSP when third party libraries are added?!?!
    Content DB considered a 3rd party library?
    So, I must conclude that this is not an OCDB issue, but a JDev Issue.
    Aslo check out JDeveloper "Design" Perspective
    Hope this helps some one out. This was a barn burner.
    Thanks
    Winston

  • SOA 11g DBAdapter Polling using a Sequencing Table with a DATE Field

    Hi.
    I have implemented a polling solution using a sequencing table that references a DATE column. For the most part the poll works correctly, but on occasion, I am not seeing a BPEL process instantiation for various records that get created in my source table.I have also noticed that in this particular case, the DATE field content on one or more source records is exactly the same --> "YYYYMMDDhhmmss".
    I just want to confirm here, that the polling adapter should be able to pick up multiple records from the source table, even though the date field is exactly the same. As well, how should I go about trying to debug this issue, if point #1 is handled by the system. Is there is a specific log or trace file that I can look at. Also, could I be facing a timing issue ?
    Can someone please comment on this.
    Thanks.

    In my table, I don't see a primary key, but only a unique index. I would assume then, that this would be analogous to the primary key capture; noticed that currently this code was only using one column out of two, from the unique index itself.
    Also, is the date content issue that I mentioned above a moot point then, based upon not having the correct primary key/unique key data pointers established ?
    Thanks.

  • Signer restraint check failed exception using JCE with JDev 10.1.2

    I am developing an app which receives an string which is encrypted on another server and passed back in an HTTP header.
    When trying to decrypt the string, I receive the following exception:
    java.lang.ExceptionInInitializerError
         at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
         at common.encryption.EncryptionUtil.decrypt(EncryptionUtil.java:170)
         at login.jspService(_login.java:222)
         [SRC:/login.jsp:157]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs: java.lang.SecurityException: Signer restraint check failed!
         at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
         ... 15 moreSun's documents state that: The two crypto policy files and jce framework jar files should be signed by the same entity. This restraint is now enforced. If this is not the case, a SecurityException will be thrown stating that "Signer restraint check failed".
    I am deploying and running from to a standalone OC4J implementing SSL.
    I am using the versions that come with JDK 1.4.2.11
    Does anyone have any idea what is going on here?
    Thanks.

    I'm experiencing the exact same issue and I can't find the solution either. Keep me posted if you find anything out

  • Generating a Primary Key WITHOUT using a Sequence Number

    Hi Everyone:
    I am trying to generate a primary key without using a sequence number or row count. What the user wants is the maximum value of the highest primary key already in the row set plus 1.
    For example, this is a Oracle Table (eg. named BatchSubmit) used to initiate batch job submission, and the primary key is an integer named "Runcard_Number". If there are 4 rows in this table and the Runcard_Numbers are 2, 6, 8 & 12, then the next generated Runcard_Number would be 13.
    I have looked throughout this forum and see how to generate numbers using a DBSequence, but the user does not want that. The numbers mean something to them, and they don't want them randomly assigned other than the max in the rowset plus 1. To do it in SQL it would be - select max(Runcard_Number) + 1 from BatchSubmit;
    I have been looking at using a hasnext loop and moving the maximum value to the new Runcard_Number, but I am very new to JHeadstart/JDev and I do not know where to put this. I am assuming the BatchSubmitImpl.java, but I'm not sure where to put it or which method to utilize
    I would appreciate any assistance.
    Mary
    U o Windsor

    Mary you're in luck, 'cause, I've been playing with the same thing, these days and found that..
    You can do that in two ways (that I know):
    - by calling a stored function that does max+1 (you can look it up in Dev's guide for Forms&4GLDevs 10g chapter 25.5 Invoking Stored Procedures and Functions)
    - by calling hardcoded or dinamicaly written statement, that does the same
    public Number callStatement(String stmt)
    Number id = new Number(0);
    Row idRow = getDBTransaction().createViewObjectFromQueryStmt(stmt).next();
    if(idRow != null)
    Object o = idRow.getAttribute(0);
    if(o != null)
    if(o instanceof Number)
    id = (Number)o;
    else
    throw new JboException("Conversion error!");
    return id;
    You should call it in
    protected void doDML(int operation, TransactionEvent transactionEvent)
    switch (operation)
    case DML_INSERT:
    // call here
    super.doDML(operation, transactionEvent);
    break;
    case DML_UPDATE:
    super.doDML(operation, transactionEvent);
    break;
    case DML_DELETE:
    super.doDML(operation, transactionEvent);
    break;
    Enjoy!
    S. Julijan

  • How to use parallel sequence for split the operation qty. urgent or other o

    PP guru
    My scenario is as follows.
    I ve one material suppose…xyz.
    For that material I' ve created bom, routing.
    In routing I' ve mention only one operation. 0010.
    Now I' ve the production order of 1000 kg.
    I want to use two work centers to run this production order. ( e.g.work center a and b)
    In routing I used work center a.
    In short I want split that operation.
    So what I ve to do or use parallel sequence and how???
    or else is there any other option to split the order to two or more machines/work center?
    Pls explain me in brief.
    Regards,
    Ram

    Hi,
      If you want to carry the production with two different work centers , first you need to split the operation qty.
    For this in the order type dependent parameters OPL8
    in the controlling tab page enable the indicator Cost collector
    and set the default rule as PP2.
      Create a Product cost collector with KKF6N.
       Now in the production order , select the operation and choose functions--->>> split.
       Now enter the operation split quantity and execute.
       Now in MD04 you can see two production order.
       In the second production order change the work center in the operation overview as desired and save.
      Regards,
    nandha

Maybe you are looking for

  • Error in selecting Date

    Hi, I am not able to select any date except of this month.If I try to select it will give NAN in the date navigator field. Where ever i use Date Navigator in any project I am having the same issue. I am not able to select the date except present mont

  • XI Messages keeps failing

    Hi I keep getting "XI messages failed" for IDOC in an IDOC adapter. I looked at ICM and Adapter Engine Trace and I don't seem to get anywhere? Regards Eze

  • Item interest calculation in General Ledger Accounting

    HI All, we want to calculate interest for each deposit wise these deposits have different openings dates and maturity dates and different interest ratess  we want interest each deposit wise but GL code is one for different deposits Ex: FD ICICI Accou

  • Reg:information Broadcasting tab in EP

    hi all In one of my Report there is send button(standard button) when we click on that it is opening a page where  in that there is information Broadcasting tab (standard tab),in order to send the report information as email what all the settings nee

  • Migrate Security

    while migrating cube from dev to prod . can i also migrate the security which is in shared services. Do i have to create security again what would be the best way to do it can any one help me with this thank you