Using BC4J with MS Access/MySQL

Hi,
I have to develop a small application for PC consisting of somes input forms and a data report (for screen & printer). I'm new to the BC4J framework and I don't have any experiencie with it.
I will work with one of this DB: MS Access or MySQL (SQL 92 compliant).
Before beginning my work I would want to know if somebody has any experience on using the framework with one of these databases. If so, does the framework work well with these databases? Is there some known problem or limitation? Has anybody some remendation on this matter?
Thank you so much.
M Laura.

Although we don't formally test with MySQL,
we have an inhouse project that uses
BC4J with MySQL - it works well.
The only way into Access is via the JDBC:ODBC bridge,
which I've always found troublesome.
regards, Karl McHorton (bc4j development)

Similar Messages

  • How to use BC4J with JDeveloper 9i in a Team

    Hello
    I'm not sure if I'm to stupid, but to say the truth I didn't found the clue how to share a BC4J Application between several develeopers. Maybe someone can give me a hint.
    That's my situation:
    Our team is going to develop a web application using BC4J and BC4J-JSP, nothing special I think.
    But my problem is, that BC4J and especially the wizards refer to a lot of different files. Even simple changes often result in multiple files being changed in different parts of the project.
    Creating a view link between view objects in two packages for example changes the view objects in both packages. Also the project (.jpr) file or several "BC4J.xcfg" files are changed very often.
    So it is not easy to find parts of code from which I can say they are owned by one developer and others which are owned by another. Most often, if you have to merge the work of different developers, you have to edit the BC4J-XML-Files using an external editor. Or did someone find a better way? Please tell me!
    So, what is the best way to share code between developers?
    Should I partition the application by packages?
    - advantage:
    it allows a fine partitioning
    - disadvantages:
    it has the great danger that BC4J makes changes in other packages which will be overseen when merging.
    Should I create a projects for each developer and distribute code between the projects using libraries?
    - advantage: no unseen changes will happen, as the libraries are readonly.
    - disadvantages: no view links between view objects in different projects (Libraries) are possible! Also a lot of "load errors" can occure when updating a library, which have to be manually corrected in the dependent projects.
    Are source code management systems a real help in this problem or do they just "manage" the problem? I already tried SCM and PVCS but was not very happy with the way of working. As JDeveloper is not "really easy" to use with theese tools.
    So I would like to get any hints how other developers are dealing with this problem. Are you using BC4J with JDeveloper 9i in a team? Please tell me how do it and how you have partitioned your application.
    Thanks in advance
    Frank Brandstetter

    Hi,
    I'm not sure whether my answer is good enough for you, but it might help.
    First of all, you have to use JDev 9.0.3, because 9.0.2 has big problems with associations/view links between objects in different projects.
    Creating a view link between view objects in two packages for example changes the view objects in both packages. Also the project (.jpr) file or several "BC4J.xcfg" files are changed very often.This is not completely true in 9.0.3, as you may choose not to create an accessor in the imported object (and usually you don't need it neither!). As for bc4j.xcfg, there is a trick: define a "standard" database connection name to use all over your project! This will prevent modifying these files all the time!
    Should I create a projects for each developer and distribute code between the projects using libraries?
    - advantage: no unseen changes will happen, as the libraries are readonly.
    - disadvantages: no view links between view objects in different projects (Libraries) are possible! Also a lot of "load errors" can occure when updating a library, which have to be manually corrected in the dependent projects.I would say, projects for each application component, which by chance will be managed by a single developer at a time.
    As for the disadvantages, in 9.0.3 you are able to properly create associations and links using read-only objects. Hopefully, the release version will solve some generation inconsistencies...
    Concerning the errors that occur when modifying a library, this might be balanced by the relative independence of the components... If you are able to develop following the dependency tree, you will not meet the problem very often.
    Are source code management systems a real help in this problem or do they just "manage" the problem? I already tried SCM and PVCS but was not very happy with the way of working. As JDeveloper is not "really easy" to use with theese tools.Indeed, I do not have a SCMS really able to manage merges in the BC4J XML files... We rather try not to arrive there!
    So I would like to get any hints how other developers are dealing with this problem. Are you using BC4J with JDeveloper 9i in a team? Please tell me how do it and how you have partitioned your application.I really hope that my hints will help.
    Regards,
    Adrian

  • HOWTO: Use BC4J With or Without DB Triggers

    This HowTo describes how to use BC4J, database sequences and triggers
    and what are the ramifications.
    INTRODUCTION
    BC4J has the ability to work with database sequences in order to obtain a
    unique value when inserting records. BC4J also has the ability to
    work either with a 'before insert' trigger which automatically creates
    a new unique value for the primary key or without a trigger. When not using
    a database trigger, BC4J also has the ability to obtain the sequence value
    and set the primary key value.
    Before discussing the ramifications of using one approach or the other, let's
    show examples of how to use both approaches:
    BC4J & sequences WITH a database trigger
    and
    BC4J & sequences WITHOUT a database trigger
    HOWTO DEMONSTRATION STEPS
    To illustrate both scenarios a simple database setup script is provided which
    creates two tables:
    CUSTOMER_NT which DOES NOT have a before insert trigger and
    CUSTOMER_WT which DOES have a trigger.
    Database Install Script:
    <code>
    drop trigger customer_insert_trigger;
    drop table customer_wt;
    drop table customer_nt;
    drop sequence customer_wt_seq;
    drop sequence customer_nt_seq;
    create sequence customer_wt_seq start with 1;
    create sequence customer_nt_seq start with 101;
    create table customer_wt(
    id number,
    name varchar2(30),
    constraint
    customer_wt_pk
    primary key (id)
    create table customer_nt(
    id number,
    name varchar2(30),
    constraint
    customer_nt_pk
    primary key (id)
    prompt Inserting data...
    insert into customer_wt (id, name)
    values (customer_wt_seq.nextval, 'Mickey');
    insert into customer_wt (id, name)
    values (customer_wt_seq.nextval, 'Goofy');
    insert into customer_nt (id, name)
    values (customer_nt_seq.nextval, 'Daffy');
    insert into customer_nt (id, name)
    values (customer_nt_seq.nextval, 'Porky');
    commit
    prompt Creating trigger
    create trigger customer_insert_trigger
    before insert on customer_wt for each row
    begin
    select customer_wt_seq.nextval into :new.id from dual ;
    end;
    </code>
    The next step is to create the DEFAULT Entity Objects and View Objects using
    the Business Components Wizard.
    USING BC4J WITH A DATABASE TRIGGER
    Let's modify the entity object CustomerWt so it can use the database trigger.
    Edit the entity object CustomerWt by right-clicking in the navigator.
    Click on the 'Attribute Settings' tab and edit the ID attribute.
    - Uncheck 'Mandatory'checkbox. This allows you to insert without a value for the primary key
    - Check 'Refresh after Insert'. This obtains the value from the database generated by the trigger.
    - Check 'Updateable While New'. Id is only updateable when inserting.
    Click finish to complete the wizard. Save all and recompile the project.
    Now let's test our work.
    In the navigator right-click the application module and select 'Test..'. This will launch
    BC4J's built in tester. Connect to the application.
    In the tester double-click the CustomerWtView view object to run a test edit form.
    After the edit form renders, navigate through the existing records using the navigate
    buttons on the edit form. Now let's insert a record to execute the trigger.
    click on the '+' button to insert a record. Enter a value in the 'Name' field and commit the change.
    Observe that a new value has automatically been inserted into the Id field.
    That's it! You have successfully used BC4J and a database trigger.
    Now let's try it without a trigger..
    USING BC4J WITHOUT A DATABASE TRIGGER
    Now edit the entity object CustomerNT so it doesn't need a database trigger.
    Similar to before, edit the entity object CustomerNt by right-clicking in the navigator.
    Click on the 'Attribute Settings' tab and edit the ID attribute.
    - Uncheck 'Mandatory'checkbox.
    - Check 'Updateable While New'.
    An additional step is also required. The Create method will have to be modified to extract
    the value of the sequence.
    In the Edit EntityObject Wizard click the Java tab and select Create method and click Finish.
    The create method is generated in your Java fil e. In the Workspace view of the Navigator,
    expand the CustomerNt entity object in the navigator. Double-click
    CustomerNtImpl.java to open it in the Source Editor. In the Structure pane, double-click
    create(AttributeList). Modify the Create method so it looks like this:
    <code>
    public void create(AttributeList attributeList) {
    super.create(attributeList);
    SequenceImpl s = new SequenceImpl("customer_nt_seq", getDBTransaction());
    Integer next = (Integer)s.getData();
    setId(new Number(next.intValue())); }
    </code>
    Save and compile the project.
    Now test the ViewObject CustomerNtView using the tester as before.
    In the edit form of CustomerNTView click on the '+' to insert a record. Observe that
    just as before a new value has automatically been inserted in the ID field!
    TO USE A DB TRIGGER OR NOT TO USE A DB TRIGGER.
    Using a Database trigger sometimes preferable if you have non BC4J applications
    also sharing the database. In this case it is still safest to just let the database
    update it's own primary keys.
    If you don't have any other non-BC4J applications sharing the database, then not using
    a database trigger is perfectly acceptable and can have slightly better performance.
    The important thing to remember is that the option is yours to use either approach!
    null

    Thank you for the reply Jonathon. I am using a ViewObject which
    consist of several tables. I haven't tried the DB trigger
    approach but just using the BC4 approach in overriding the
    create method.
    Here is the parent class create as a part of the
    FasNameImpl.java file which does the job correctly.
    public void create(AttributeList attributeList) {
    super.create(attributeList);
    SequenceImpl l_seq = new SequenceImpl
    ("SEQ_CUSTOMER_ID",getDBTransaction());
    Integer l_next = (Integer)l_seq.getData();
    setCustomerId(new Number(l_next.intValue()));
    This is when I triedpassing the value to the child table. But I
    can't figure it out. I think the link is working fine if I had a
    ViewLink deployed but it doesn't look like it's doing the job
    for ViewObject.
    I am trying to call the childclass.method
    (FasCustomer.setCustomerId(l_next);
    But I am getting error.
    Thanks a lot for your suggestions,
    Kamran
    703 696 1121

  • Using DataSource with MS Access

    is it possible to use the JDBC DataSource with MS Access? Should I download some .class to register with JNDI?

    I've done it with Tomcat, but I've never tried to do it outside of a container. You sound like you want to do it without a servlet or J2EE app server engine acting as the lookup and pool. - MOD

  • Using RowSet with MS Access

    sun.jdbc.rowset.JdbcRowSet doesn't work with MS Access ?
    It raises java.sql.SQLException: Invalid Cursor Type: 1003, 0, null
    sun.jdbc.rowset.CachedRowSet doesn't work either:
    How can I use JdbcRowSet or CachedRowSet with MS Access ?
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    // initialize our RowSet
    JdbcRowSet titleRs = new JdbcRowSet();
    titleRs.setUrl("jdbc:odbc:Test-Adressen"); // example DSN
    titleRs.setCommand("SELECT id, title from Titles");
    titleRs.execute();
    //next line throws Exception :
    titleRs.moveToInsertRow();//move to construct an insert row
    titleRs.updateString(2, "Dipl.-Ing.");// initialize phone
    titleRs.insertRow(); // insert the row
    titleRs.moveToCurrentRow(); // move back to
    // previous cursor position
    titleRs.next();
    catch (SQLException se) {
    System.out.println( se+", "+se.getErrorCode()+", "+se.getSQLState());
    se.printStackTrace();
    catch (Throwable t) {
    System.out.println( t);
    t.printStackTrace();
    Output:
    java.sql.SQLException: Invalid Cursor Type: 1003, 0, null
    JdbcRowSet (setTypeMap): null
    JdbcRowSet (setMaxFieldSize): [Microsoft][ODBC Microsoft Access Driver]Optionales Feature wurde nicht implementiert.
    JdbcRowSet (setQueryTimeout): [Microsoft][ODBC Microsoft Access Driver]Optionales Feature wurde nicht implementiert.
    java.sql.SQLException: Invalid Cursor Type: 1003
    at sun.jdbc.odbc.JdbcOdbcResultSet.moveToInsertRow(JdbcOdbcResultSet.java:4143)
    at sun.jdbc.rowset.JdbcRowSet.moveToInsertRow(JdbcRowSet.java:2658)
    at de.CoSoCo.relations.Title.main(Title.java:72)
    note on error message : using german version of MS Access
    please answer also to [email protected]

    Hi Ulf,
    also der Fehler kommt mir irgendwie bekannt vor. :) Ich muss mal schauen, wie ich den umschifft habe. Aber es liegt wohl eben auch an Access das Cursor Manipulation nicht geht. Wenn ich den Sourcecode gefunden habe mail ich ihn Dir.
    Cu
    Olaf

  • Using form with mssql,access and oracle9i

    Is it a good idea to use forms 9i with mssql,access and oracle 9i as back end
    meaning using forms6i/9i as front end
    what happens with datatype defined in mssql tables
    like smallint etc
    SEJ

    Yes, I have read it. Good information, and it has gotten me close. If I follow what it says, I can get directly into insert mode ... however, update and delete buttons still exist.
    Here are the exacts in my situation:
    1) created a dynamic page that creates a link generated from the function 'Portal30.wwv_user_utilities.get_url('my_application.my_link','parameter_name','parameter_value');'. Notice no relational operator.
    2) created a form that is based upon table 'b'. The value passed to this form by step 1 is a foreign key from table 'a'.
    3) created a link object that references form identified in step 2.
    By clicking on the link generated by the dynamic page (with a parameter set and no conditional operators set), we go to the form in insert mode but we see all buttons. After your last note I decided to try a new, fresh, Portal generated form based upon table 'b', making the primary key and the foreign key hidden. I modified the link to reference this new form. By clicking the link, I go to the form in insert mode, but ALL buttons are showing, including query, next, and previous, even though some of these buttons are invalid.
    I am using 3.07.? We are in the middle of installing 3.08 or 3.09, whichever we can get running first. My dba is out for the week, so I will not be able to upgrade until next week.
    Any thoughts you have would be helpful. I am on the verge of creating 2 forms, but I don't want the code duplication if I can help it.
    Once again, thanks in advance.

  • Using bc4j with applets

    Hi,
    I was wondering if you have any tips on using bc4j in applets. The 2 biggest problems I'm having is the jar size of the applet after all libs are included
    (4MB+) and the fact that I can't use XDK, JNDI, BC4J and some other libs from applets unless I sign them or change the policy file at each client using the applets.
    I really think all the calls to System.getProperties(), etc. should be placed inside try catch blocks to catch the security exceptions raised by xdk, RMIInitialContextFactory, etc. and handled using
    defaults for properties... it'd be even better if these properties could be set in another way as well.
    Thanks in advance,
    Leonardo Bueno

    FYI... my environment is:
    Oracle9iAS (9.0.3.0.0)
    JDeveloper (9.0.3.4)

  • XMLStreamReader exception when using webservice with security access denied

    Hi,
    I'm using CXF webservices generated from a WSDL with SOAP document style. Under normal conditions, the client and server work fine, and can I read info back from the the server (SOAP http messages passed between both)
    However, for some servers, I am using SUNs Policy Agent, which checks for an authentication token in the http header cookie before allowing access to the web service. I set up the cxf service port as follow:
    Service service = Service.create(serviceName);
    service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
    servicePort = (IMyService)service.getPort(portName, IMyService.class);
    I also add the authentication token to the http header cookie in the service's request context.
    If the token is correct, everything works fine. However, if the token is incorrect, and access is denied, the policy agent does not return a SOAP http message. In this case, the web service method throws a low-level XMLStreamReader exception i.e. it can't read the SOAP message response - so I can't get the actual response from the policy agent.
    Would anyone have an idea on this? Should I configure the CXF port differently, or should I try to get the policy agent to return a SOAP message even if access is denied.
    There is already a browser that can access the policy agent - and this needs to be redirected if access is denied. So in effect, we need the redirect functionality for the browser, and the returned SOAP message for the application using the web service.
    Any help would be greatly appreciated!
    Rob

    Thanks for your answer.
    I eventually found a workaround for this problem.
    Actually you don't need to provide an SSO cookie the first time you connect to the webgate server, you just need to provide basic credentials and the webgate will provide you an SSO cookie that you can use for the next call.
    The problem is that this doesn't work out of the box with the .NET/WSDL framework for some reason (with Java + the HTTPClient library I had no problem).
    I had to had manually the following headers to the HTTP request to make it work:
    Authentication: Basic XXXXXXXX
    Cookie: OBBasicAuth=fromDialog
    Where XXXXXXXX is a base64 encoded string containing "login:password"
    Thanks,
    Franck

  • JSP using BC4J with MS SQL Server

    I use JDevelop to develop my JSP apps with BC4J. When I Run a JSP app, the error happened.
    The error message is [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
    Who can tell me what the error message means? Or What error might happened to my code?
    What parameter I should setup? Or What code I should change?

    There is a "how to" that addresses this issue
    with SQL*Server:
    http://otn.oracle.com/products/jdev/howtos/bc4j/bc_psqlserverwalkthrough.html
    You need to qualify your jdbc URL: (this is from the howto)
    On the Connection page, enter the Java class name and the URL.
    Java class name: com.microsoft.jdbc.sqlserver.SQLServerDriver
    URL: jdbc:microsoft:sqlserver://<db-host>:1433;SelectMethod=cursor
    Note: There's a semicolon before SelectMethod=cursor.
    Note on Select Method: From the MS SQL Server documentation: SelectMethod={cursor | direct} determines whether or not Microsoft SQL Server "server cursors" are used for SQL queries. Setting SelectMethod to direct allows SQL statements to be executed without incurring server-side overhead for managing a database cursor over the SQL statement. Direct mode is the most efficient for executing Select statements; however, applications are limited to a single active statement while executing inside a transaction. If multiple result sets are required from a single query execution, then the application must set SelectMethod to direct.
    regards, Karl

  • Providing SAAS using RDP with Administrator Access Token

    Hello, I am having this idea of providing Software As A Service to my clients using RDP. The main issue is to protect the software from copy
    I am planning to run the software in client's RDP session using "Run As Administrator" method. Is there is a security concerns against clients/users connected by RDP to gain access to the Admin token I am creating for them to use my software? And
    eventually perform Admin level actions on the machine? of course I am planning to prevent the software I am developing from running any other process.

    Hello Amy,
    Thanks for the reply. It is quite helpful. For your question my idea is to use the "RUN AS” command from within client's session.
    Your solution is very appropriate but in my case it should be from "<UserAccount> Properties: Environment Tab " mentioned in the second article.
    I did try it but nothing happened. The user get a normal login with a desktop even it is mentioned, in the Environment Tab's help, that only the specific program will be executed.
    I think the problem is the server is not configured with "Remote Desktop Server Role". I did that configuration but I cannot restart the machine until
    Saturday. Hope it will work out!! Also, I still don’t know with what kind of credentials the specific software will run upon client's login.
    Kindest regards,
    Rami

  • Unable to use JProfiler with SUN Access Manager (in Weblogic Server)

    Whe I was trying to profiling with JProfiler , I am getting the following exception during the Weblogic startup:
    <Dec 12, 2005 6:30:49 PM IST> <Warning> <HTTP> <BEA-101247> <Application: '/opt/SUNWam', Module: 'amcommon': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".>
    Dec 12, 2005 6:30:54 PM com.sun.xml.rpc.server.http.JAXRPCContextListener contextInitialized
    INFO: JAXRPCSERVLET12: JAX-RPC context listener initializing
    <Dec 12, 2005 6:30:56 PM IST> <Warning> <Net> <BEA-000905> <Could not open connection with host: ctsblrsun14.gmacfs.com and port: 8001.>
    <Dec 12, 2005 6:30:56 PM IST> <Warning> <Net> <BEA-000905> <Could not open connection with host: ctsblrsun14.gmacfs.com and port: 8001.>
    <Dec 12, 2005 6:30:56 PM IST> <Warning> <Net> <BEA-000905> <Could not open connection with host: ctsblrsun14.gmacfs.com and port: 8001.>
    <Dec 12, 2005 6:30:56 PM IST> <Warning> <Net> <BEA-000905> <Could not open connection with host: ctsblrsun14.gmacfs.com and port: 8001.>
    <Dec 12, 2005 6:30:57 PM IST> <Error> <HTTP> <BEA-101216> <Servlet: "LoginLogoutMapping" failed to preload on startup in Web application: "amserver".
    javax.servlet.ServletException
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:919)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3335)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3292)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3278)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3261)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5951)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:862)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2127)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2115)
    at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3082)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1751)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:32)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.jprofiler.agent.Agent$_E.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
    at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:71)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1028)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:904)
    ... 25 more
    >

    This is an SSL handshake problem of Websphere - has nothing to do with AM.
    Websphere�s JDK does not trust the Signer / Cert of AM�s deployment container.
    Either configure a truststore (or use an existing webshpere truststore) where you import the Cert of the Signing CA of your AM DC�s cert.
    Other option - import the mentioned cert in cacert file of IBM JDK - but be aware that this might get lost when applying an Websphere fixpack/refreshpack.
    BTW what have you configured for server.port,server.host and server.protocol in your AMConfig.properties?
    If you have not changed that settings agent will use the port/protocol specified to communicate with AM.
    -Bernhard

  • Problem with locks while using iBATIS with MS Access through JDBC-ODBC brid

    Hello,
    I am attempting to use iBATIS to access MS Access file via JDBC-ODBC bridge.
    (I am using Spring's "SqlMapClientDaoSupport," but that is probably irrelevant)
    All this runs on Tomcat... First time DB gets accessed the LDB lock file is created. From there on the only way I can remove the lock file is to kill the JVM...
    Any help is greatly appreciated...

    And why is that a problem?

  • BC4J with Struts using EditAction's create method.

    Hi,
    I am using BC4J with struts and using the EditAction and UpdateAction classes provided by BC4J.
    When i want to create a new row in the database the documentation asks me to call EditAction's create() method and then UpdateAction's execute() method to do it. But even when i just call UpdateAction's execute() method I am able to create a new row. So WHY should I call EditAction's create() method ?????

    EditAction's create() method is something you would call in the action before rendering the empty form for the user to fill in.
    It creates a row, and then marks the row as having STATUS_INITIALIZED using the Row.setNewRowState(Row.STATUS_INITIALIZED) call.
    By setting the row to STATUS_INITIALIZED, this makes BC4J "forget" that it's a new row that needs to be inserted. In effect, it makes that new row a throwaway row used only for the purpose of rendering the blank form. An important reason you would want to do things this way is to pickup entity-level default values in the attributes of the new row.
    For example, in the toy store demo, why is it that when you register as a new user the "Country" poplist defaults to "United States" ? (it's not the first entry in the list).
    The answer is that, since the EditAction (or in this case my custom subclass of that) creates the blank row, the fact that the "toystore.model.businessobjects.Account" entity object declares that its Country attribute has a default value of "US" makes the blank row created in the "toystore.model.dataaccess.Accounts" view object have a default value of "US", and that default value in the blank row causes the <jbo:InputSelect> tag that renders the poplist to mark the corresponding "United States" option in the list as currently selected (as it's the display string associated in the poplist with the value "US").

  • Using BC4J Components with different App Servers

    Can we use BC4J with 3rd party Application Servers (WebSphere, Weblogic, iPlanet etc)?
    If so any advantages (Performance, Implementation, installation) in using these components with Oracle iAS?
    Thanks
    null

    BC4J allows different ways of deploying your application.
    1) Local Mode : where your client application and BC4J application are colocated togther and running in the same VM
    2) As a EJB session bean
    3) As a corba server object.
    Using the Local mode deployment option you can deploy the BC4J application to any appservers (weblogic, websphere, iplanet) as long as they have standard VM and if your client application is JSP or Servlet then the appservers need a JSP or Servlet engine.
    In JDeveloper 3.1 you can deploy BC4J applicaiton as EJB session bean to Oracle8i
    In JDeveloper 3.2 ( which will released in next few weeks) you can deploy BC4J application as EJB session bean to Oracle8i , Oracle iAS and weblogic .
    iAS comes preconfigured with BC4J runtime by default
    raghu

  • OAS 10.1.2.0.2 - How configure PHP with database access

    I Installed OAS 10.1.2.0.2 on SuSe 9.3.
    I put in $ORACLE_HOME/Apache/Apache/htdocs a php pages for test if this OAS versión supported php.
    The test is ok, this versión support PHP, but not are configured to PHP with database access.
    My question is: How I configure this OAS 10.1.2.0.2 to use PHP with database access?
    I need install all PHP although my php pages is running (without database access) ??? or I only need configure database access?

    How I compile my PHP with --with-oci8??                                                                                                                                                                                                                           

Maybe you are looking for

  • Multitouch and Spaces

    Hi, There is a method to use the four-finger swiping left or right to switch Spaces and not Applications? Thanks

  • HT204053 If I have already set up an iphone with an icloud, can i switch to a different icloud?

    My question is, if you are already set up on a specific Apple ID, with a Specific icloud, and it's shared, can you change the apple ID and Icloud? How do i do this? I have tried everything I know to do?

  • Windows Native Authentication with 2 AD domains

    I have installed 10g infrastructure on win2k server. I completed the steps in note 282074.1 and WNA is working for the first domain (norris.intra). I now want to have this work for a second domain (shoremont.intra). These 2 AD domains are in separate

  • HT5071 Can I publish a book made in ibooks to newsstand?

    I am looking to publish some content to Newsstand. I have been looking for software to help me and I have come across the ibooks app. Will this app allow me to publish to Newsstand?

  • "Incompatible file"

    No mater what I do, I'm getting an incompatible format error when importing .mov files into DVD SP4. I've tried several different .mov files, created on export from FCP as a self contained quicktime movie. The file is NTSC SD, and about 10 minutes in