Toplink on existing application

Hi
we are trying to use toplink for an existing j2ee application. The existing application uses dao approach (we have plain java object model and whenever we want to persist an object, we call its corresponding dao).Each dao has an insert,update method. The transaction is handled by container, and we uses a stateless session bean for that. Each ejb method execution is a complete transaction. Database connections are maintained by application server (websphere 4) and we use jndi to get hold of connections.
1.If we migrate to toplink, can we use the same architecture? If not what will be the best approach for this?
2.Should we use DatabaseSession or ServerSession?
3.If we use ServerSession, we found that we have to use unit of work for persisting. But unit of work doesnt have direct insert/update api. So can we use dao approach with ServerSession?
4. The database is db2 and some tables use identity columns. Is there any workaround (like modifying source) for that as we found toplink doesnt support identity columns? .
thanks
shibin

1 - If you just want to use TopLink to take your value objects and push them into the database, and build objects out of result sets, then you could just use DatabaseSession and the write/readObject API. But the value of TopLink is it's concurrency support and caching/locking/sequencing/transaction support. I.e., Unit Of Work. I'd need some time to look at what you have but generally in these situations you could simply plug TopLink into your DAO pattern with DAtabaseSessions and read/writeObject API, but for the long term I'd recommend considering some architecture changes to leverage the UOW and other features.
2 - Ultimately you want the concurrent and scalable ServerSession, but if you're just looking for a quick plug of TopLInk into your existing app, you might have to use multiple DatabaseSessions. Would need to see your app to offer better advice.
4 - We do support Identity on Sybase and MS SQL Server, but for some technical reasons dating back several years, we do not support native sequencing on DB2.
- Don

Similar Messages

  • Switch to existed application instead of open a new one on Cinnamon

    Hi all,
    I am currently using Cinnamon as my desktop environment in Arch.
    Before that I used Unity on Ubuntu. Unity is an awesome thing.  One feature I liked most is that when you press "Super+1,2...", you can switch the corresponding application on the launcher very quickly(Just like you are using shortcuts on the Windows launcher). Unless the application is not started, the shortcut will start a new one.
    On Cinnamon, I bind some keys (like Super + 1,2...) in system settings (Cinnamon System Settings -> Keyboard -> Keyboard Shortcuts -> Custom Shortcuts) to start my applications. But I can't get the effect as I described above. When I just want to switch an existed one, the keys will still launch a new one.(Of course, obviously according to my setting).
    So my question is: Can I bind some keys to "Open or Switch to existed application" like it on Unity or Windows?
    Very grateful for any hints!
    Last edited by isolet (2013-10-26 04:21:53)

    clfarron4 wrote:
    Hi, I don't think there is a way currently do the Unity feature that you are asking for on Cinnamon right now.
    I can see problems with implementing such an idea on Cinnamon though in the case where people have two panels.
    Thanks for you reply. I hope I can get this done one day on Cinnamon.
    Last edited by isolet (2013-10-28 09:36:01)

  • We have a situation where in an existing application after go live we need

    We have a situation where in an existing application after go live we need to add a new dimention. The fact is after adding the dimension the existing data will not have any value against this dimension(will have only null values). If so will it create a problem in loading or reporting?. How to resolve it?.

    My experience (on BPC 5.1 MS, and earlier versions) has been as follows:
    1.) create a new dimension, with at least 1 member. Pay particular attention to which member is the first base member in the hierarchy. (If you're planning to have multiple hierarchies in this dimension, wait for now on the ParentH2 etc. Start with just 1 hierarchy until you've completed these steps.) Process the dimension.
    2.) add that dimension to an existing application. When the application is processed, all of the existing data is assigned to that first base member of the new dimension.
    3.) If that's not sufficient, and you want to assign some data to another member of this new dimension, either use the "Move" package, or write custom SQL script logic, to get the data assigned to the correct members.

  • Error when trying to install the adobe creative suite exit code 39.I get the following error message Directory does not exist : /Applications/Utilities/Adobe Application Manager/DECore/DE6/resources/uninstall/Uninstall Product.app

    i have run the adobe cleaner , repaired disk permission and also tried to download and install several times.
    this is a mac osx running the yoshmite
    please help
    this is the error
    Exit Code: 39
    Please see specific errors below for troubleshooting. For example,  ERROR: DW042 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s)
    ERROR: Directory does not exist : /Applications/Utilities/Adobe Application Manager/DECore/DE6/resources/uninstall/Uninstall Product.app
    ERROR: DW042: ARP Entry couldn't be created for language : en_US

    Oliviat14nov does /Applications/Utilities/Adobe Application Manager/DECore/DE6/resources/uninstall exist on your computer? 

  • Im new. How Do i integrate javaFX in my Existing Application of struts 2

    Hi there,
    I'm new to javaFX, so dont get mad at me with the question's im asking.
    I have a Existing application of struts 2 and now i want to add some enriched features in it using javaFX. So how do i start.
    Basically what is javaFX? Its all Client side rite, so do i have to do it in .jsp or how.
    How do i integrate in my existing application.
    Any link or material would be of great help
    Prateek Agarwal.

    .fx files are compiled to .class files, ie. regular Java code using a special runtime.
    These class files are then packaged to a .jar file and used like a regular applet. Look at the javafx.org site for samples, how they are integrated to the Web page.
    All you have to do is to include the special JavaScript code provided by Sun which will create the applet/object code for you, depending on the browser used by the users.

  • Error when copying an existing application (built on 4.0.1) in Apex 4.0.2

    Hi,
    we're getting this error when we try to copy an existing application to a new one inside of Apex. The same error happens when we try to export and import the application.
    Please note that the source application was created on Apex 4.0.1. Meanwhile Apex was patched to 4.0.2!
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-20001: Error creating dynamic action sub-action name="NATIVE_JAVASCRIPT_CODE" id="13791109104919892" ORA-02291: integrity constraint (APEX_040000.WWV_FLOW_PAGE_DA_A_AR_FK) violated - parent key not found <pre>begin wwv_flow_api.create_page_da_event ( p_id => 6237930219205626 + wwv_flow_api.g_id_offset ,p_flow_id => wwv_flow.g_flow_id ,p_page_id => 20
    Any suggestions?
    Jens

    Check this thread Import unsuccessful in Apex 4
    The reason could be because of an invalid target reference in the Dynamic action mentioned in the error message( in the API call at that line number ,use the p_name,p_page_id parameters to identify the Dynamic Action involved)

  • I have an existing application need to add LabVIEW OPC Server

    I have an existing application written in LabVIEW which controls a Device. The data from the device is currently logged to the local drive. 
    It is desired to upgrade this application to become an OPC Server so that the manager can remotely acquire data and control the Application.
    What would be the easiest approach to accomplish this task?
    Thanks and Best Regards,
    Gary

    Hello Dan,
    1. The operator specifies a time interval to save the data to disk. The data is stored in a csv file.
     2. The manager is the Engineer who is managing the data collection system remotely.
    3.The desired end result is to have the LabVIEW with an OPC server provide the connectivity to an OPC client so that they can collect the data, that they desire from the system, and control the system.
    4. Controlling the system is secondary. Providing the connectivity so that an OPC client can specify what data is to be sent and the update interval is the first priority.  For example, they may only be interested
    in 10 of say 30 parameters, and want that data sent over every 10 seconds or so. The data once they receive it will be logged to a central data base.
    We suggested using TCP/IP but they do not want a custom interface.
    We also suggested Modbus, but they perfer to use OPC. The want to integrate it with their OSI PI.
     Thanks and Best Regards,
    Gary

  • Controlling an existing application via webservices

    Hi all,
    I just came across labview webservices whilst at one of the NI Tech symposiums in the UK last week and I want to use them for a specific application. However my initial playing hasn't worked very well! I want to know if I'm doing something wrong, or if what I'm trying to do isn't possible!
    We have an existing application which controls a piece of measurement kit. It has multiple moving axes and some data acquisition and automated measurements etc etc. The application is all based on queued state machines and event structures for UI etc. At the moment the system is controlled by a user next to the machine with a PC. For some of the measurement setup, it can be useful for the user to move around and view the system from different angles whilst positioning the moving axes. At the moment that means walking round the system, looking to see how the alignment is, jusdging what change needs to be made, going back to the pc, making the change walking round... you get the idea!
    What I wanted to do was to set up a webservice "interface" to the system giving fairly basic control of the positioning system. My plan was to write an intermediate VI which is opened by the user on the PC (via the existing application) to enable "remote" operation. This intermediate VI would then wait for the webservice vi to be called by the user on his/her mobile web enabled device and then pass instructions directly into the main applications Queue. The use of the intermediate means we don't have to re-write any of the main application and also gives a layer of security since the user has to manually call that VI from the main application. 
    In the ideal world that intermediate vi would be "event driven" i.e. it would either contain an event structure or Queue system and wait for the webservice to fire that event/queue (and send in instructions). However this is the bit that doesn't seem to work. I tried creating a user event within the intermediate vi and writing the reference to that event into a shared variable which the webservice could see, but that failed (apparently user events can't be written to shared variables?). Then I tried with a Queue, but nothing happened... I could of course have the intermediate vi just polling shared variables written by the webservice VI, but that doesn't sound great to me... 
    Does anyone have any thoughts on this? Is there a sensible way to "tack on" a webservice to an existing application? Other than network shared variables is there any other communication method that works between webservices and other VIs running? (I think this may be the key question)...
    Thanks in advance for your thoughts!
    Paul

    Getting data from your LabVIEW built web service over to your LabVIEW application is the trickies part of using LV web services because they run in seperate LabVIEW contexts.
    Since you are using an event based and queue based archtiecture, you are in a good position to add remote support in. This is an excellent architecture for extensibility.
    I can put forth 2 recommendations for you to try out. I agree with you that shared variables are a bad idea, they are lossy and would require you to add polling to your event driven architecture.
    1) TCP/IP
    You could open a TCP/IP port between the web service VI and your main application. I would recommend wrapping the TCP calls into a set of new API VIs that allows your application to block on a TCP request. For instance, you could create your own queue API that uses TCP under the hood to pass data. Your web service would use this new Queue API to put items into the queue, and your main app would then have another queued event handler to service items put into the queue. When this new queued event hanlder sees something on the queue, it could either fire user events in your main app's LV event handler, or just pass events over to your original queued state machine.
    2) VI Server
    create a simple VI that can invoke a user event on your main app's event handler, or can push something into your main app's queued state machine.  Then open and run this VI via VI Server from your web method.  This VI should just run once and exit, and all it does it pushes something into your state machine or queue. You can either have many of these VIs to match the specific events, or have one VI with a string on the front panel, then via VI server, put a value into that control from your web method. 
    I personally find the 2nd option the easiest to implement.
    Good luck.
    -Jared

  • How a new application derivated from an existing application?

    I have built a application in jdev10g using ADF BC and JSF. It has been tested and deployed for user to use.
    Now, my another subsidiary company wants to use this application too, but the functions requested is just the subset of the application deployed. They may also asked some changes eg. image, logo etc.
    I prepare to derivate a new application from the existing application. of course, these two applications will be deployed on the same application server but with different project name and deploy directory in the application server.
    please guide me on that, Thanks in advance!
    Rgds!

    In 10g you'll basically need to make a copy of your whole application directory and in the project properties set a different context-root for your Java EE application.
    Then you'll be doing the changes you want on the new copy.
    If you were using 11g you could have used MDS to do the customization and then keep a single instance of the application.
    Basic demo:
    http://download.oracle.com/otn_hosted_doc/jdeveloper/111demos/mds/mds.html

  • Switch To Different Schema Connection With Existing Application

    Hi,
    Currently, i want to connect my existing application to a different schema, how should i do it?
    The situation is that i have two schema(call Database Connection in JDeveloper) that have exactly the same structure, as one is duplicated from anothe. My purpose of doing this is to use one of the schema for daily operation, while the other for testing.
    I have tried with this method:
    1. Right click on the Business Component project node and select Edit Business Component Project.
    2. In the Connection Tab, i change the Connection Name to the new schema(which used for testing).
    3. Then i open my .jsp page and sad to see the it's still retrieving data from the old schema.
    Am i hitting it with the wrong tactic? Please lemme know if there's any way that i can solve my problem.
    Thanks,
    Sin Leng

    Hi,
    The code snippet provided above must be executed whenever an ApplicationModule is first used by a new session but only after
    that ApplicationModule has been connected (otherwise the connection will not be available). Depending upon the type of client that
    you are developing (Swing vs. servlet for example) the right place to put this code could vary. Further, if your ApplicationModule
    and/or connection is pooled you must also be careful to reset this information whenever an ApplicationModule is serially reused
    by different clients.
    As of 9.0.3, the BC4J framework has provided a single hookpoint for all clients to manage session context on the middle tier. The
    method is oracle.jbo.server.ApplicationModuleImpl.prepareSession(Session). This method is invoked whenever a session
    (represented by a SessionCookie in the BC4J framework) uses an ApplicationModule which it had not referenced from a previous
    request. The Session parameter is the ApplicationModule session context which BC4J will automatically update with the
    userData context of the client side SessionCookie before prepareSession(Session) is invoked. This makes custom, client
    side context available to the midtier. Further this method is invoked after BC4J has connected the ApplicationModule, so it is a safe
    hookpoint for initializing custom DB session context as well as MT session context.
    In order for BC4J to make the client side SessionCookie userData context availabe in prepareSession
    the SessionCookie userData context must have been set before SessionCookie.useApplicationModule has been invoked. Please see
    the javadoc for SessionCookie.getUserData() and or the pooling sample ($JDEV_HOME/BC4J/samples/Pooling) for more information
    about acquiring a SessionCookie reference programmatically (so that you can initialize the SessionCookie userData). Other options
    may be to set up the userData in a custom SessionCookieFactory. Please see the pooling sample for a sample custom
    SessionCookieFactory implementation.
    Hope this helps.
    JR

  • Deploying existing application (forms and reports) over the web

    Hi I do have the following environment:
    1) Oracle 8.1.6.0.0 on HP-UX.
    2) Application written using oracle forms6i and reports6i on NT (Client-Server environment)
    I am looking to deploy this existing application over the web using 9iAS, sure I don't want to rewrite my application. I did that in the past using OAS 4.0.8 and forms server and reports server.
    1)Does 9iAS support that, which one should I install the standard or the enterprise.
    2)Do I still need forms server and reports server.
    I stopped using the OAS because it had problems and the performance was not that good, I found CITRIX and Tarantella do better, performance wise.
    3)Does 9iAS has improved that.
    Any feedback regading these many questions is highly appreciated
    Thanks
    Khaled

    Sounds like the ideal 9i As environment (although you might want to consider either upgrading or patching the database - 8.1.6.0.0 does have patches)
    You'd be pleasantly surprised with the performance and stability improvements of 9iAS over OAS.
    Deploying reports & forms over the web (pure web access, not terminal services like citrix) require some form of web server, reports server and forms server. I believe that 9i AS is totally compatible with the reports and forms developed in 6i tools, so there should be no rewrite at all.
    If you have the time, strongly recommend you check it out.

  • The existing Application Server Installation is corrupted

    Well I downloaded the Java Studio Creator and wanted to test it on a Debian GNU/Linux box. See what happened while installing it:
    http://people.freenet.de/jtocancipa/jsc2_install_bug_debian.jpg
    http://people.freenet.de/jtocancipa/install.log.gz
    Not nice, unfortunately I don't have the time now to debug the shell script inside the creator-2-linux-en.bin file, so if anyone knows how to fix this... thanks in advance.

    Hi,
    I am having the same problem on a Gentoo installation. At the end of installation I get the error
    - The existing application server installation is corrupted I have installed both as root and a normal user.
    The ~/sun/Creator2_1/SunAppServer8 directory is empty and I can't use _unist/unistall.bin as it complains about being unable to stop the server.
    The install log gives these errors:
    (18-May-2006 04:07:32), Setup.product.install, com.sun.installer.InstallApplicationServerAction, msg1, Installing Application Server...
    Checking available disk space...
    Checking Java(TM) 2 Runtime Environment...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment...
    Deleting temporary files...
    exitcode = 64
    (18-May-2006 04:07:55), Setup.product.install, com.sun.installer.InstallApplicationServerAction, err,
    Error occurred while installing [64] -> /home/stanwayg/sun/Creator2_1/_uninst/install.sh /home/stanwayg/sun/Creator2_1/_uninst statefile ../install.log /home/stanwayg
    (18-May-2006 04:07:55), Setup.product.install, com.sun.installer.InstallApplicationServerAction, err,
    Error occurred while Installing Application Server....
    (18-May-2006 04:07:55), Setup.product.install, com.sun.installer.InstallApplicationServerAction, msg1, Finished
    (18-May-2006 04:07:55), Setup.product.install, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Post Install Core Action (PostInstallCoreAction)
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: stopserver.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: startserver.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: ij.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: sysinfo.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: sysinfo.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to copy DataDirect drivers
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to copy driveradapter.jar
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to copy appserv-env.jarI re-downloaded the installation file and still get the problem. Is there a solution to this?
    Regards
    GWS
    I've been trying further to get this to install and I have found that it is actually the SJSAS installation that is the problem.
    If I try to install SJSAS using any route (bundled with Netbeans, bundled with Creator or on its own) the installation fails.
    If I try ot install using the freestanding SJSAS installler I get errors about their being insufficient disk space even though there is plenty of room (250Gig).
    But still not much closer to getting it working.

  • Concept of upgrading different existing applications

    Hi,
    I am searching for a good concept of upgrading different existing applications.
    In the last months I build an application which contains the look and feel of my company and some basic features like a dialog for editing the navigation, help texts or users.
    We use this application for some different projects, so that we do not have to implement those basic things several times.
    Now there are some application in production status and the basic application was edited. Now I search for a solution how I can upgrade those existing production applications.
    I do not want to create the whole application new.
    Could it be a solution to edit the apex tables directly?
    I hope you can understand what I want to do and I hope you have good ideas or solutions how that could be done.
    Thank you,
    Tim

    Hi,
    I am searching for a good concept of upgrading different existing applications.
    In the last months I build an application which contains the look and feel of my company and some basic features like a dialog for editing the navigation, help texts or users.
    We use this application for some different projects, so that we do not have to implement those basic things several times.
    Now there are some application in production status and the basic application was edited. Now I search for a solution how I can upgrade those existing production applications.
    I do not want to create the whole application new.
    Could it be a solution to edit the apex tables directly?
    I hope you can understand what I want to do and I hope you have good ideas or solutions how that could be done.
    Thank you,
    Tim

  • New page on existing application

    Hi,
    How can I add new page report on the existing application?
    Thank you

    What did you have in mind? The Enter key? The Tab key?
    Keep in mind that APEX applications are web-based, ie they run within the confines of the browser. The Browser is the actual application, and it already has predefined what many of the keyboard keys mean, such as F5 (page refresh), etc. You can't re-map these meanings without knowing exactly which browser you are dealing with and a whole lot of pain. The simplest way to do things in APEX is with buttons and clicks, as these can be easily translated into exact actions you can control within the APEX environment and which are generally browser-agnostic.

  • Weblogic.Deployer using -deploy for existing application

    I'm running on weblogic 8.1 SP3
    when I use -deploy for an existing application the documentation says it will do a redeploy.
    documentation for the targets option says that it will use existing targets for an application that is currently deployed.
    BUT it doesn't work. Is this a known issue ?
    I use the following options:
    -name fortune
    -source /data/bea81/applications/stg/fortune.ear
    -verbose -debug -deploy -stage

    Check to see if the problem is with the Deployer tool or myApp.war:
    1) Does myApp.war deploy using the console?
    2) Check myApp.war has all the classes it needs?
    If your app does deploy from the console then we can focus in on the Deploy tool. If not it may help give us a clue as to what is going on e.g. your war file missing classes.
    Hoos

Maybe you are looking for