39.3.2. What's different with Weblogic 10.x
- Between the the Weblogic 10.x and 9.2 examples there are several differences:
- — The 9.2 version is configured to use the database and a pre-installed datasource. The 10.x version uses the database and a custom datasource.
- — This file and its contents solve an issue with an older version of the libraries that Weblogic 10.x uses internally. OC4J have the same issue as well. It also configures the application to use the shared JSF libraries that were installed above.
- <?xml version="1.0" encoding="UTF-8"?>
- weblogic-web-app
- xmlns"http://www.bea.com/ns/weblogic/90"
- xmlns:xsi"http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation"http://www.bea.com/ns/weblogic/90
- http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd"
- library-ref
- library-namejsflibrary-name
- specification-version1.2specification-version
- implementation-version1.2implementation-version
- exact-matchfalseexact-match
- library-ref
- container-descriptor
- prefer-web-inf-classestrueprefer-web-inf-classes
- container-descriptor
- weblogic-web-app
This make Weblogic use classes and libraries in the web application before other libraries in the classpath. Without this change hibernate is required to use a older, slower query factory by setting the following property in the file.
property name"hibernate.query.factory_class"
value"org.hibernate.hql.classic.ClassicQueryTranslatorFactory"
- — In the Weblogic 10.x version JPA entity transactions is enabled by adding:
- transaction:entity-transaction entity-manager"#{em}"
- — Because the is not in the this listener need to be configured :
- listener
- listener-classcom.sun.faces.config.ConfigureListenerlistener-class
- listener
- Between the Weblogic 10.x version and the JBoss version there are more changes. Here is the rundown:
- — Except for datasource name the Weblogic version sets:
- property name"hibernate.transaction.manager_lookup_class"
- value"org.hibernate.transaction.WeblogicTransactionManagerLookup"
-
- — The Weblogic version requires several library packages because they are not included as they are with JBoss AS. These are primarily for hibernate, and its dependencies.
- To use Hibernate as your JPA provider you need the following jars:
- Various third party jars that Weblogic needs:
No comments:
Post a Comment