Spring-TopLink Integration and transparent transaction controller

Hi,
I'm new to TopLink and I read the article in the "Mastering J2EE" series about the Spring TopLink integration. I never actually got into Spring before, so I went and checked out the articles and tutorials and then I went back to my exploration of TopLink.
From what I understood, Spring promises that you wouldn't need to change your code, only your configuration files, if you change your transaction controller from the OR framework transaction controller to a JTA enabled one provided by the AS. But when I read the "Transactions" chapter in the TopLink application developer's guide, it seemed that the way you use the UnitOfWork in your code differs significantly depending on whether you're using an external transaction controller.
My question is, does this void Spring's promise or is there a work around for that?
Thanks.

You will not have to change any java code when you switch "transaction controller" strategies in your Spring beans.xml file.
When you talk about "the way you use the UnitOfWork in your code", you're talking about the section in the "Transactions" chapter called "External Transaction Controllers" right? In any case, the differences at the java level, are essentially that you acquire an "active" UnitOfWork (getActiveUnitOfWork) and that you no longer explicitly commit the UnitOfWork.
Neither of these two differences impacts your use of TopLink within Spring. In Spring, the transaction is always managed by a Spring PlatformTransactionManager so your TopLink code will never call commit, whether you're using an ExternalTransactionController or not. The code will be identical whether you're running in J2SE or J2EE.
Also, since we expect users to access TopLink either through a TopLinkTemplate or through a TopLinkInterceptor, the Spring container will always "inject" a TopLink Session that is aware of whether or not there is currently an ExternalTransactionController. So, there will be no difference between the behavior of acquireUnitOfWork and getActiveUnitOfWork. Both will behave identically. They will return you the UOW currently associated with the current Spring PlatformTransactionManager. So, there is no environmental dependency here either.
JIM

Similar Messages

  • Spring TopLink Integration Preview Updated

    The preview of the Spring TopLink Integration support has been updated on OTN. Changes are described in the release notes.
    Also check out the OTN article Of Persistence and POJOs: Bridging the Object and Relational Worlds on using TopLink with Spring by Rod Johnson and Jim Clarke.

    You will not have to change any java code when you switch "transaction controller" strategies in your Spring beans.xml file.
    When you talk about "the way you use the UnitOfWork in your code", you're talking about the section in the "Transactions" chapter called "External Transaction Controllers" right? In any case, the differences at the java level, are essentially that you acquire an "active" UnitOfWork (getActiveUnitOfWork) and that you no longer explicitly commit the UnitOfWork.
    Neither of these two differences impacts your use of TopLink within Spring. In Spring, the transaction is always managed by a Spring PlatformTransactionManager so your TopLink code will never call commit, whether you're using an ExternalTransactionController or not. The code will be identical whether you're running in J2SE or J2EE.
    Also, since we expect users to access TopLink either through a TopLinkTemplate or through a TopLinkInterceptor, the Spring container will always "inject" a TopLink Session that is aware of whether or not there is currently an ExternalTransactionController. So, there will be no difference between the behavior of acquireUnitOfWork and getActiveUnitOfWork. Both will behave identically. They will return you the UOW currently associated with the current Spring PlatformTransactionManager. So, there is no environmental dependency here either.
    JIM

  • When will Spring-Toplink integration be officially released in Spring

    I notice from previous emails that Spring-Toplink integration will eventually be part of the Spring framework itself (similair to existing Hibernate, iBatis, JDO integration). Can you tell me when this will occur? What version of Spring is being targeted?
    thankyou,
    Chris

    Chris,
    The work is going on right now to have the work checked in and included in Spring 1.2.
    Doug

  • Comcast lacks integrity and transparency

    I have been a customer of Comcast/AT&T Broadband/TCI for over twenty years. Recently I retired and decided that I needed to reduce my expenses. Over the past five years I have seen my cost for phone, internet and cable go from just under $90.00 per month up to over $190.00 per month. I called Comcast to cancel my cable service, since for the most part I am satisfied with the over the air stations I can receive in my area. Even though it was nice to have the additional cable channels, I found I spent less than 10 hours a month watching these premium services. Instead of just terminating the service I requested, the agent went over my options to reduce my bill, he offered to reduce my bill down to $139.00 per month for basically the same services I was getting at over $190.00 per month. I explained that being retired, even $139.00 month was more than I could justify. He told me that for just telephone and internet service I would be paying $108.00 plus taxes/fees. If I were to just get phone it would be about $54 month, and internet alone would be $76 month. I told him I wasn't interested in cable service, he then offered me cable, phone and internet for $89.00 month plus taxes and fees. I found this experience quite frustrating. I found that Comcast lacks integrity, and transparency. If they can offer all three services (albeit it was basic cable, telephone and internet), for $89 plus taxes/fees, why can't I get basic phone and internet service was less than that price point. I am tired of having to play let's make a deal with Comcast. If my local telephone company could offer decent intenet service, I would call it quits with Comcast completely. Even returning the cable boxes to Comcast was a hassle, the only practically place to return equipment is 5 miles away, and 30 minute drive due to the location. It took me 45 minutes to return four cable boxes and four remotes. Not good customer service.

    Hi georger811,
    Sorry to hear about the poor experience you had. I do see you have already canceled the TV and phone. I also see you were put in full price for Internet. I was able to give you a discount on that for your troubles. 
    We do try and put the service centers within reasonable distances mileage-wise, however we cannot do much about how long it takes you to get there. Length of time it takes you to get there is not a customer service issue as there are far too many factors playing into how long it takes to get to a location. 

  • Spring-TopLink Integration Available

    A preview of our integration with Spring is available now.
    http://www.oracle.com/technology/products/ias/toplink/preview/spring/index.html
    We are working on contributing this into Spring and hope to have it available from the Spring Framework website in the future.
    As always, your feedback is appreciated via this forum,
    Doug

    You will not have to change any java code when you switch "transaction controller" strategies in your Spring beans.xml file.
    When you talk about "the way you use the UnitOfWork in your code", you're talking about the section in the "Transactions" chapter called "External Transaction Controllers" right? In any case, the differences at the java level, are essentially that you acquire an "active" UnitOfWork (getActiveUnitOfWork) and that you no longer explicitly commit the UnitOfWork.
    Neither of these two differences impacts your use of TopLink within Spring. In Spring, the transaction is always managed by a Spring PlatformTransactionManager so your TopLink code will never call commit, whether you're using an ExternalTransactionController or not. The code will be identical whether you're running in J2SE or J2EE.
    Also, since we expect users to access TopLink either through a TopLinkTemplate or through a TopLinkInterceptor, the Spring container will always "inject" a TopLink Session that is aware of whether or not there is currently an ExternalTransactionController. So, there will be no difference between the behavior of acquireUnitOfWork and getActiveUnitOfWork. Both will behave identically. They will return you the UOW currently associated with the current Spring PlatformTransactionManager. So, there is no environmental dependency here either.
    JIM

  • G/L integration and consolidation transaction types

    Hello experts,
    My client has a need to differentiate two kinds of unplanned depreciation (let's call them A and B) in their P/L statement. In asset accounting, it is possible to differentiate A and B simply by creating a copy of an existing transaction type for unplanned depreciation, and use the original t-type for A and the copy for B. However, to differentiate the two kinds of unplanned depreciation on the G/L accounts proved far more difficult.
    In short, this is what I try to do:
    1. Post unplanned depreciation with e.g. transaction type 640, in asset accounting.
    2. Post unplanned deprecation with a new, custom made, transaction type (e.g. Z01).
    3. On the G/L account, I want to be able to see which postings are done with 640, and which ones are done with Z01.
    Do you know any ways of achieving this?
    I have created a separate t-type for unplanned depreciation, and a separate consolidation transaction type, but I still canu2019t see any difference on the postings on the G/L account. I suspect that my consolidation transaction type is not used, but I don't see why this would happen.
    Thanks a lot,
    Petter

    Dear Petter,
    Perhaps the function "Asset is managed historically" is a solution for you. You will find this field in the asset master date on the first tab strip.
    87341
    By setting this indicator it is possible to select the posted            
    depreciation according to transaction types later and correspondingly to 
    process it.                                                              
    Regards Bernhard

  • Spring / Toplink Transaction / Commit Issue

    Hi,
    Im working on a spring / toplink integration on my project.
    The problem Im facing has to do with transaction / commits
    Im using a TransactionProxyFactoryBean to encapsulate a BusinessProcess responsible for creating a new Company Instance and its main Office.
    As the 2 entity have to be created atomicly I have setup a PROPAGATION_REQUIRED on the createCompanyAndMainOffice method of the CompanyBusinessProcess.
    The problem is I want to return a session, identified company object and I cant see how to do that correctly.
    I tried and create a sub internal method like internalTXCreate called by createCompanyAndMainOffice, that would be the one transactional, so I get the commit at the end of its execution, returning the working copy with the newly inserted id, and perform a load with its its ID on the session from createCompanyAndMainOffice.
    But it seems that the TransactionalProxyFactoryBean only intercepts calls on the 'entry point' methods... so back to where I started ...
    I check the reference petclinic implementation and the only new* method does mention it returns a non identified BusinessObject which I find a bit disturbing in my case ...
    Any idea on the problem ?
    Thanks for your help,
    Best Regards
    Olivier Cuzacq
    Software Architect
    Groupe Moniteur

    Something like this in createCompanyAndMainOffice should work:
    return (Owner)getTopLinkTemplate().registerObject(new Owner());
    post-commit, the returned Object will be a reference from Toplink shared cache.

  • How does TopLink determine external transaction controller is active?

    Weblogic 9.2. I am having a problem with a new EJB: getExternalTransactionController() is null, getActiveUnitOfWork() is null, and yet when my code issues a commit, TopLink throws 4002 [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070620)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Cannot call commit when using distributed transactionsError Code: 0. Our code uses getActiveUnitOfWork() to decide whether to issue the commit or not. I had to turn off external transactions for the time being by changing the attribute in ejb-jar.xml to supports.
    This is one of those crazy making problems where the session is (except for the deployment.xml) identical to one for an EJB that is not having any external transaction problems. They are deployed in the same ear and the ejb-jar.xml configuration was the same before I changed the failing EJB to supports.
    What attribute causes TopLink to throw the 4002?
    Thanks

    If you configure TopLink to use an external transaction controller then you should use container managed transactions where the the declared transactions on session/message-driven beans control the transaction begin/commit or use the container's UserTransaction to control the transaction life cycle. TopLink's beginTransaction and commitTransaction should not be used as you have decided that the container controls the transactions externally of TopLink's control.
    When using TopLink with an external transaction controller the getActiveUnitOfWork looks up the active transaction in the container and returns a UnitOfWork unique per container transaction. If no transaction is active then null is returned.
    Note: the UnitOfWork.commit() only has an effect when not using an external transaction controller. If you are using an external transaction controller then UnitOfWork.commit() will only flag the UnitOfWork as complete but will not atually write any changes.
    I am not sure I am answering you question but hope this helps.
    Doug

  • How do I use toplink with Spring 2.5 and oc4j 10.1.2?

    Our existing java server environment is limited to Oc4j 10.1.2 due to being tied to Oracle Forms.
    We've added a java 6 jdk to the machine and linked it to a specific container to examine some newer java features since this version of the application server only comes with java 1.4.2.
    Does anyone have some configuration steps for getting toplink essentials and spring to work with oc4j 10.1.2? Even with oc4j 10.1.3 in jdev 10.1.3.4 I'm having problems trying to figure out what needs placed in the persistence.xml file verses what needs placed in the spring-beans.xml file.
    I'm trying to either use the J2SE option of keeping the connection information in the persistence.xml file (which doesn't work) - it tries to connect to //localhost:1521/orcl. If I try to define a datasource within Spring's xml file, I'm not sure how to tie that into the persistence.xml file. Could I use the oc4j 10.1.2 container provided datasource?
    It seems like I'm at a loss as to how to get this working. If you'd like me to post some files, I can do that later on today when I get back to work.
    The configuration that I'm trying to do is based on a modified workspace from an ibm developerworks article with websphere, mixing in the ideas from a JPA with Spring 2.0 article from Mike Keith and Rod Johnson. (That article goes pretty far in the configuration information but never provided an example to download...)
    Any help appreciated.
    Eric (hbg, pa)

    I'm still at a loss with this. Rather than worry about the older version, for now, I just want to see JPA in action. So, I've decided on just running the Spring 2.5.6 petclinic example out of the samples folder. When I try to do this, after only tweaking the web.xml to use the applicationContext-jpa.xml file, the application does not initialize properly. Here's the stack trace I get:
    Target URL -- http://192.168.0.2:8988/petclinic/index.jsp
    09/05/11 23:26:05 Oracle Containers for J2EE 10g (10.1.3.4.0)  initialized
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\connector.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/connector.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\jta.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\persistence.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/persistence.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\toplink-essentials.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/toplink/jlib/toplink-essentials.jar (from <code-source> in /C:/jdev10134/jdev/system/oracle.j2ee.10.1.3.42.70/embedded-oc4j/config/server.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    09/05/11 23:26:24 log4j: Parsing for [root] with value=[INFO, stdout].
    09/05/11 23:26:24 log4j: Level token is [INFO].
    09/05/11 23:26:24 log4j: Category root set to INFO
    09/05/11 23:26:24 log4j: Parsing appender named "stdout".
    09/05/11 23:26:24 log4j: Parsing layout options for "stdout".
    09/05/11 23:26:24 log4j: Setting property [conversionPattern] to [%d %p [%c] - <%m>%n].
    09/05/11 23:26:24 log4j: End of parsing for "stdout".
    09/05/11 23:26:24 log4j: Parsed "stdout" options.
    09/05/11 23:26:24 log4j: Parsing for [org.springframework.samples.petclinic.aspects] with value=[DEBUG].
    09/05/11 23:26:24 log4j: Level token is [DEBUG].
    09/05/11 23:26:24 log4j: Category org.springframework.samples.petclinic.aspects set to DEBUG
    09/05/11 23:26:24 log4j: Handling log4j.additivity.org.springframework.samples.petclinic.aspects=[null]
    09/05/11 23:26:24 log4j: Finished configuring.
    09/05/11 23:26:24 log4j: Reading configuration from URL file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/log4j.properties
    09/05/11 23:26:24 log4j: Parsing for [root] with value=[INFO, stdout].
    09/05/11 23:26:24 log4j: Level token is [INFO].
    09/05/11 23:26:24 log4j: Category root set to INFO
    09/05/11 23:26:24 log4j: Parsing appender named "stdout".
    09/05/11 23:26:24 log4j: Parsing layout options for "stdout".
    09/05/11 23:26:24 log4j: Setting property [conversionPattern] to [%d %p [%c] - <%m>%n].
    09/05/11 23:26:24 log4j: End of parsing for "stdout".
    09/05/11 23:26:24 log4j: Parsed "stdout" options.
    09/05/11 23:26:24 log4j: Parsing for [org.springframework.samples.petclinic.aspects] with value=[DEBUG].
    09/05/11 23:26:24 log4j: Level token is [DEBUG].
    09/05/11 23:26:24 log4j: Category org.springframework.samples.petclinic.aspects set to DEBUG
    09/05/11 23:26:24 log4j: Handling log4j.additivity.org.springframework.samples.petclinic.aspects=[null]
    09/05/11 23:26:24 log4j: Finished configuring.
    2009-05-11 23:26:24,593 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization started>
    2009-05-11 23:26:24,687 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@eeb406: display name [Root WebApplicationContext]; startup date [Mon May 11 23:26:24 EDT 2009]; root of context hierarchy>
    2009-05-11 23:26:24,828 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [WEB-INF/applicationContext-jpa.xml]>
    2009-05-11 23:26:25,281 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@eeb406]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b>
    2009-05-11 23:26:25,734 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - <Loading properties file from class path resource [jdbc.properties]>
    2009-05-11 23:26:25,796 INFO [org.springframework.context.weaving.DefaultContextLoadTimeWeaver] - <Determined server-specific load-time weaver: org.springframework.instrument.classloading.oc4j.OC4JLoadTimeWeaver>
    2009-05-11 23:26:28,296 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter#c25ae3' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
    2009-05-11 23:26:28,359 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'dataSource' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
    2009-05-11 23:26:28,437 INFO [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] - <Building JPA container EntityManagerFactory for persistence unit 'PetClinic'>
    2009-05-11 23:26:28,468 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
    2009-05-11 23:26:28,562 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b: defining beans [org.springframework.context.weaving.AspectJWeavingEnabler#0,org.springframework.context.config.internalBeanConfigurerAspect,loadTimeWeaver,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,entityManagerFactory,transactionManager,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.transaction.config.internalTransactionAspect,org.springframework.samples.petclinic.aspects.UsageLogAspect#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,clinic]; root of factory hierarchy>
    2009-05-11 23:26:29,671 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization completed in 5078 ms>
    2009-05-11 23:26:29,734 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization started>
    2009-05-11 23:26:29,734 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@c00e55: display name [WebApplicationContext for namespace 'petclinic-servlet']; startup date [Mon May 11 23:26:29 EDT 2009]; parent: org.springframework.web.context.support.XmlWebApplicationContext@eeb406>
    2009-05-11 23:26:29,734 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [WEB-INF/petclinic-servlet.xml]>
    2009-05-11 23:26:30,171 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@c00e55]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1c5543b>
    2009-05-11 23:26:30,375 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1c5543b: defining beans [addOwnerForm,addPetForm,addVisitForm,clinicController,editOwnerForm,editPetForm,findOwnersForm,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.SimpleMappingExceptionResolver#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b>
    2009-05-11 23:26:31,828 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization completed in 2094 ms>
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic.transaction
    WARNING: PersistenceUnitInfo PetClinic has transactionType RESOURCE_LOCAL and therefore jtaDataSource will be ignored
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
    INFO: TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
    INFO: Server: unknown
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic.connection
    CONFIG: connecting(DatabaseLogin(
            platform=>EssentialsHSQLPlatformWithNativeSequence
            user name=> ""
            connector=>JNDIConnector datasource name=>null
    May 11, 2009 11:27:03 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
    SEVERE:
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Error Code: 17002
            at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
            at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
            at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
            at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
            at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:309)
            at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117)
            at oracle.toplink.essentials.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:135)
            at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:451)
            at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:616)
            at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:282)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
            at org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:392)
            at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:320)
            at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)
            at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)
            at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:220)
            at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$before$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63)
            at org.springframework.samples.petclinic.jpa.EntityManagerClinic.getVets(EntityManagerClinic.java:39)
            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:585)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
            at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:138)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
            at $Proxy19.getVets(Unknown Source)
            at org.springframework.samples.petclinic.web.ClinicController.vetsHandler(ClinicController.java:53)
            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:585)
            at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:421)
            at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:136)
            at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:326)
            at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:313)
            at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
            at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
            at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
            at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
            at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
            at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
            at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
            at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
            at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
            at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
            at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
            at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
            at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
            at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
            at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:287)
            at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
            at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
            at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
            at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:218)
            at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:114)
            at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
            at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1361)
            at oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:441)
            at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:336)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:286)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:159)
            at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
            at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
            at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
            at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
            at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1398)
            at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
            at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
            at oracle.j2ee.connector.ConnectionPoolImpl$NonePoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1211)
            at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
            at oracle.oc4j.sql.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:45)
            at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1596)
            at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1541)
            at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1486)
            at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
            at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
            at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
            ... 60 moreAny ideas? I'd really like to see JPA, Spring and oc4j working together?
    Thanks,
    Eric

  • Problems with Toplink integration with JTS and WSAD

    We have a very strange problem.
    Description:
         We are attempting to integrate with JTS, insuring that TopLink does its transactional activity within the scope of a JTS transaction, as described in the Foundation Library Guide.
         We have a stateless session bean, a method of which implements a simple "insert" on a database table registerObject() on a unit of work). This bean is configured to use bean-managed transactions, but with a default resolver of rollback.
         The bean is launched in the WSAD test environment.
         When the bean method is invoked from the WSAD Universal Test Client (web app that runs in the same app server allowing discovery and unit test of bean methods), the code works. A row is inserted into the table, etc.
         Same code, same method, same (stateless) bean, same instance of the WSAD test environment, if the bean method is invoked from outside the application server (via a JUnit test driver that discovers the session bean via JNDI), the code breaks. The final JTS commit catches a javax.transaction.RollbackException, apparently without any sort of stack trace tacked to the exception printStackTrace() doesn't result in anything). No row is inserted.
         We can call the bean alternately, via these two approaches, under the same instance of test environment, and get different behavior.
         We don't understand. All (hopefully) of the relevant details follow.
    We are using:
         WSAD Version: 5.0.1 Build id: 20030423_1316
         TopLink - 9.0.3.3 (Build 430)
         Oracle 9i
    From our sessions.xml:
         <login>
              <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
              <datasource>project</datasource>
              <platform-class>oracle.toplink.internal.databaseaccess.OraclePlatform</platform-class>
              <uses-external-connection-pool>true</uses-external-connection-pool>
              <uses-external-transaction-controller>true</uses-external-transaction-controller>
         </login>
         <external-transaction-controller-class>oracle.toplink.jts.was.JTSExternalTransactionController_5_0</external-transaction-controller-class>
    From our project XML:
         <uses-external-connection-pooling>true</uses-external-connection-pooling>
         <uses-external-transaction-controller>true</uses-external-transaction-controller>
    The code that breaks:
         SessionManager sm = SessionManager.getManager();
         Server ss = (Server) sm.getSession("project", TestBean.class.getClassLoader());
         ClientSession cs = ss.acquireClientSession();
         Context c = new InitialContext();
         UserTransaction t = (UserTransaction) c.lookup("java:comp/UserTransaction");
         t.begin();
         UnitOfWork u = ss.getActiveUnitOfWork();
         u.registerObject(value);
         u.commit();
         t.commit(); /* this throws javax.transaction.RollbackException */
    Thanks.

    Strange problem, could be a Websphere issue, or an issue with the JTSExternalTransactionController_5_0.
    Try configuring TopLink to not use JTS and see if the same problem still occurs. Also turn on TopLink logging and exception logging and your Websphere server logging to see if you can get the real exception and stack that is causing the RollbackException.
    This could be an issue with the JTSExternalTransactionController_5_0 as the original version of the controller did have a JTS issue. Make sure you are no the latest patch and check with support to see if they have a patch for this problem.

  • Spring BlazeDS Integration

    Spring BlazeDS Integration
    this is the best tutorial for Spring BlazeDS Integration go to  http://codexamples.blogspot.com
    1. Configuring and Using the BlazeDS
    MessageBroker with Spring
    MessageBroker is the heart of the Spring BlazeDS Integration.
    When HTTP messages come from Flex client will be routed through the
    Spring DispatcherServlet to the Spring-managed MessageBroker.
    There is no need to configure the BlazeDS MessageBrokerServlet when using the
    Spring-managed MessageBroker.
    2. Configuring the Spring DispatcherServlet
    web.xml is the heart of the j2ee web project.So we have to configure it because
    each an every request is map to web.xml.
    The DispatcherServlet must be configured  in web.xml to bootstrap a Spring
    WebApplicationContext. For example:
    <!-- The front controller of this Spring Web application, responsible for handling all application requests -->
    <servlet>
    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/config/web-application-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    3. Configuring the MessageBroker in Spring
    A simplified Spring XML config namespace is provided for configuring the MessageBroker in
    your WebApplicationContext. To use the namespace support you must add the schema location
    in your Spring XML config files. A typical config will look something like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:flex="http://www.springframework.org/schema/flex"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/flex
    http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">
    </beans>
    Following XML config namespace tags makes the Spring BlazeDS Integration configuration tags available under the flex
    namespace in your configuration files. The above setup will be assumed for the rest of the
    configuration examples to follow. For the full detail of every attribute and tag available in the
    config namespace, be sure to refer to the spring-flex-1.0.xsd as every element and attribute is
    fully documented there. Using an XSD-aware XML editor such as the one in Eclipse should
    bring up the documentation automatically as you type.
    At a minimum, the MessageBrokerFactoryBean must be configured as a bean in your
    Spring WebApplicationContext in order to bootstrap the MessageBroker, along with a
    MessageBrokerHandlerAdapter and an appropriate HandlerMapping (usually a
    SimpleUrlHandlerMapping) to route incoming requests to the Spring-managed
    MessageBroker.
    These beans will be registered automatically by using the provided message-broker tag in
    your bean definition file. For example, in its simplest form:
    <flex:message-broker/>
    This will set up the MessageBroker and necessary supporting infrastructure using sensible
    defaults. The defaults can be overriden using the provided attributes of the message-broker
    tag and its associated child elements. For example, the default location of the BlazeDS XML
    configuration file (/WEB-INF/flex/services-config.xml) can be overridden using the
    services-config-path attribute. The MessageBrokerFactoryBean uses Spring's
    ResourceLoader abstraction, so that typical Spring resource paths may be used. For
    example, to load the configuration from the application's classpath:
    <flex:message-broker services-config-path="classpath*:services-config.xml"
    The equivalent MessageBrokerFactoryBean definition using vanilla Spring configuration 
    would be: 
    <!-- Bootstraps and exposes the BlazeDS MessageBroker --> 
    <bean id="_messageBroker" class="org.springframework.flex.core.MessageBrokerFactoryBean" > 
    <property name="servicesConfigPath" value="classpath*:services-config.xml" /> 
    </bean> 
    Note especially that with the message-broker tag, it is not necessary to assign a custom id to
    the MessageBroker, and it is in fact discouraged so that you won't have to continually reference
    it later. The only reason you would ever need to provide a custom id is if you were bootstrapping
    more than one MessageBroker in the same WebApplicationContext.

    this is the best tutorial  
    Is it because you have made the site ??
    To be frank , there is nothing special or great  in that materail .
    Try to make a nice and simple  copy of working example like roseindia or Abhi on java  and post it .People like me definately want them .

  • Spring TopLink support outside container

    I'm setting up an internal workshop at our company to teach and demo TopLink. I'm aiming to focus on TopLink, so I figured I would keep it as simple as possible.
    I still want to demo transaction spanning several DAO calls though, and thought I could use the TopLink support in Spring for that. Easier said than done when I'm only running from a simple class' main method...
    First I try starting a transaction with Spring, as I thought it would be able to fallback/handle it with a ThreadLocal even though it's not inside a container:
    TransactionDefinition transDef = new DefaultTransactionDefinition(
    TransactionDefinition.PROPAGATION_REQUIRED); TransactionStatus
    TransactionStatus transStatus = transManager.getTransaction(transDef);
    Which gives:
    java.lang.UnsupportedOperationException: SingleSessionFactory does not support managed client Sessions
    So I figure, alright, fair enough. All I have to do then is initialise a UoW through spring instead of starting a transaction, and then that will be injected into the TopLinkCallback I'm using in my DAO:
    SessionFactory sessionFactory = (SessionFactory) appContext.getBean("sessionFactory");
    Session currentSession = SessionFactoryUtils.getSession(sessionFactory, true);
    UnitOfWork uow = currentSession.getActiveUnitOfWork();
    But nope. The getActiveUnitOfWork() in my TopLinkCallback just returns null. Anyone know how to do this best outside a container? How do I initialise a UoW that Spring will hold on to for me?
    Anders,

    Hi Anders,
    SessionFactory sessionFactory = (SessionFactory)
    appContext.getBean("sessionFactory");
    Session currentSession =
    SessionFactoryUtils.getSession(sessionFactory,
    true);
    UnitOfWork uow =
    currentSession.getActiveUnitOfWork();
    But nope. The getActiveUnitOfWork() in my
    TopLinkCallback just returns null. Anyone know how to
    do this best outside a container? How do I initialise
    a UoW that Spring will hold on to for me?
    Anders,You're getting the expected behavior. getActiveUnitOfWork returns null outside of a transaction. It won't start one for you--you're going to have to do that before you call it.
    If you put your code inside a transaction callback like the following you get an active unit of work.
    final ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-toplink.xml");
    PlatformTransactionManager txManager = (PlatformTransactionManager) ctx.getBean("transactionManager");
    TransactionTemplate template = new TransactionTemplate(txManager);
    template.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
    TransactionCallbackWithoutResult callback =     new TransactionCallbackWithoutResult() {
         protected void doInTransactionWithoutResult(TransactionStatus transactionStatus) {
              SessionFactory sessionFactory = (SessionFactory) ctx.getBean("sessionFactory");
              Session currentSession = SessionFactoryUtils.getSession(sessionFactory, true);
              UnitOfWork uow = currentSession.getActiveUnitOfWork();
              // uow is not null
              // your code goes here
    // execute your code in a tx
    template.execute(callback);This code runs out of container no problem. I tested it with the petclinic example. Hope this helps.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can TopLink CMP and POJO persistence be mixed (for incremental migration)?

    Is it possible to mix TopLink CMP and POJO persistence in one application server container? Does anyone already have experiences with such a setting?
    Background: We currently maintain an application that uses Toplink as CMP 1.1 provider for its entity beans. As this architecture is quite out-dated, we'd like to move from CMP 1.1 to POJO based persistence with TopLink (native, no JPA) and Spring inside the appserver.
    Is only a "big-bang" migration feasible? Or is there a way to use CMP and POJO persistence with TL side-by-side in one container? That would extremely handy allowing us to migrate each entity bean at a time.
    I would very much appreciate your input/opinion!
    Sebastian
    Application server is Bea Weblogic 8.1SP6
    Toplink version is 9.0.4.9
    Java version is 1.4.2

    Thank you a lot for your answer!
    I understand that with SessionAccessor from the oracle.toplink.ejb.cmp package, we can get access to the current CMP session.
    We'd like to use the TopLinkDaoSupport class from Spring's TL integration and for this, Spring wants a session factory injected.
    Is there a way to get something like a TL session factory for use with Spring in a CMP environment?
    Thanks again for your time!
    Sebastian

  • How to use DataSource and External transaction in 9ias?

    I'm working on a project that the application server needs to connect to over 100 databases.
    I'd like to use connection pooling and external transaction service defined in OC4J's Datasources.
    I wonder if anyone has an example of using datasource and external transaction service for OC4J.
    Right now, I export toplink project to a java source and do the initialization there manually but I don't know how to use Datasource to get connections and how to use the external transaction service in the java code for OC4J.
    I really appreciate you help.
    Wei

    Here is a fill in the blank example on how you could set this up through code:
    Project project = new MyProject();
    // alternatively, use the XMLProjectReader
    server = project.createServerSession();
    server.getLogin().useExternalConnectionPooling();
    server.getLogin().setConnector(new JNDIConnector(new javax.naming.InitialContext(), "jdbc/DataSourceName"));
    // the next line depends on the type of driver you want to use.
    server.getLogin().useOracleThinJDBCDriver();
    server.getLogin().useOracle();
    server.getLogin().setUserName("username");
    server.getLogin().setPassword("password");
    server.getLogin().useExternalTransactionController();
    server.setExternalTransactionController(new Oracle9iJTSExternalTransactionController());
    server.logMessages();
    server.login();

  • How to install the driver of the 'SCSI and RAID Host Controller'

    Hi,
    I have two Windows XP(32Bit) installations:
    •Windows XP SP2(32Bit) which is old and it seems as if it is infected by some viruses.
    •I have installed another fresh clean Windows XP(32Bit) SP3. However, I have found that there is no category named with ''SCSI and RAID Host Controller'. However, when checking out the old version of Windows XP, I found  'SCSI and RAID Host Controller'
    is there. (Screen shot below)
    The new Windows XP(32Bit) SP3, there is no 'SCSI and RAID Host Controller'
    My motherboard is:
    My Desktop Computer(Intel P 4, 512MB of RAM, and Graphics Card  with 256MB of RAM.
    ]I am seeing that most computer doesn't has the scsi / raid controller . in the old Windows XP on my computer that SCSI and RAID controller exists, and it it has not  a yellow mark on it.
    When I installed  a new windwos XP 32Bit SP3, no SCSI/RAID in divice manager .
    My computer sound on new Windows XP doesn't work , however, on old Windows XP SP2 works well. I have a buitl-in  sound card. SCSI and RAID controller category in the device manager on the old Windows xp SP2 is realted to sound card,I don't think.
    Thus, What drivers would let the 'SCSI and RAID Host Controller' added in the device manager?
    A man should convert his anger and sadness into strength to continue living in this life.

    If you open the case and shine a light on the motherboard you can usually see both the manufacturers name and the model printed on the pcb somewhere. You should also normally see this information on the first POST screen when you turn on the PC.
    Otherwise Google "775i65G" like I did.
    Here are the driver downloads (assuming it is an Asrock 775i65G R2.0 and not an R3.0)
    http://www.asrock.com/mb/Intel/775i65G%20R2.0/?cat=Download&os=XP
    You should install the inf driver first. Hopefully after you do that you will see your desired listing in Device Manager.
    With regard to the AMR driver and the HDMR driver, you can find some information about these here :
    http://en.wikipedia.org/wiki/Audio/modem_riser
    Unless you actually have something plugged into these risers, it is probably not necessary to install the drivers.
    However, the drivers for the integrated C-Media audio chip and the Realtek Lan chip may prove useful.
    It looks like the motherboard has integrated video but if you are using a graphics card it will not normally be necessary to install the VGA driver.
    You can download both the manual and the installation guide here
    http://www.asrock.com/mb/Intel/775i65G/?cat=Manual
    And if "SCSI and RAID Host Controller" is still not shown in Device Manager, don't worry - because these functions are not supported by your motherboard (again assuming it is an Asrock 775i65G)
    Thanks a lot,
    First of all, when saying that I have multi-operationgs systems, I mean there are two operating systems installed on my PC(SP2, SP3) both are 32Bit. The first Windows SP2(NOT installed by me) has all multimedia audio card installed
    well, and has SCSI and RAID Host Controller shown the device manager. However, only the VGA is not installed on Windows SP2. However, the second one Windows SP3(Installed by me) has VGA not installed, Multimedia audio NOT installed, and there is no SCSI and
    RAID Host Controller in device manager.
    First: Why did the CPUz, specy didn't detect motherboard name, and only detect the model. IF I need to  open the case and shine a light on the motherboard you can usually see both the manufacturers name and the model printed on
    the pcb somewhere, then what benfit would be there from hardware detection software?
    Second: Yes, my motherboard has integrated video, and integrated audio card
    However, this doesn't mean that I don't need to install them since the Vidoe controller is not properly installed (it is a default VGA ) Also, Multimedia audio controller is not functiong at all.
    Finally: if And if "SCSI and RAID Host Controller" is still not shown in Device Manager in Windows XP SP3,  because these functions are not supported by my motherboard, then why is 'SCSI and RAID Host
    Controller' installed/shown in the device manger in Windows XP SP2 on the same PC???
    A man should convert his anger and sadness into strength to continue living in this life.

Maybe you are looking for

  • Can't rename style in default.css

    <blush> never mind... figured it out... (can i delete this?)

  • Adobe illustrator crashes right after I Close the tutroial window!!  Help!

    Adobe illustrator crashes right after I close the tutroial window!!  Help! I just purchased illustrator after my trial period. It wont run!  And have resinstalled several times. Cleared my font cache.  cleaned my registry. Tried logging as a difffere

  • Copy the 'version name' into 'headline' in the IPTC data

    i need to copy the 'version name' into 'headline' in the IPTC data before uploading to a web site Any thoughts on how to 'batch do' this would be gratefully received as I am cutting and pasting on each image at the moment. many thanks

  • My Nano is frozen

    Does anyone know how to unfreeze the nano (2GB). Closed down my computer with nano still attached, unplugged it and froze. Display light stays on with 'Now Playing' screen on. Have tried everything shown in manuals to reset and now my computer won't

  • Can't get Desktop Software to link up with Curve 8330

    All the following is from running Win XP in VirtualBox. When I hook up my Curve 8330 to the computer via USB the computer recognizes it: I'm asked to enter the Cuve's password, the Blackberry Device Manager pops up in the task bar to tell me that the