[ad_1]
Introduction
Oracle WebLogic Server 10.Three got here up with numerous developments and options to make this software server f a more sensible choice for constructing and deploying and providers of. It helps Rich Internet Application (RIA) through the brand new server-side HTTP publish-subscribe engine. Oracle makes an attempt to make this model suitable with earlier variations of WebLogic Server within the areas of persistent information, generated courses, and API compatibility.
JDK 1.4 Vs JDK 1.6
As you can be upgrading code from JDK 1.4 to 1.6, a number of the vital options which weren't current in JDK 1.Four are Generics
Generics is a function added within the JDK1.5 for including compile-time sort security to the Collections Framework.While taking a component out of a Collection, you will need to solid it to the kind of factor that's saved within the assortment. This is unsafe in addition to inconvenient additionally. This casting can fail at run time as compiler doesn't verify whether or not your solid is similar as assortment sort or not.
You have to talk the kind of a group to the compiler to keep away from above state of affairs. Generics present a means for you to talk the kind of a group to the compiler, in order that it may be checked. Once the compiler is aware of the factor sort of the gathering, the compiler can verify that you've used the gathering persistently and might insert the right casts on values being taken out of the gathering.
Enhanced for Loop
This newly added function eliminates using iterators and index variables when iterating over collections and arrays.
Autoboxing/Unboxing
Autoboxing is principally computerized conversion of primitive sorts to their equivalents. Like computerized conversion of (int, float, double and many others.) to (Integer, Float, Double,…).
The reverse strategy of autoboxing is known as Unboxing. Unboxing is computerized conversion of wrapper sorts to their primitive equivalents for assignments or methodology or constructor invocations.
Typesafe Enums
This versatile object-oriented enumerated sort facility permits you to create enumerated sorts with arbitrary strategies and fields. It supplies all the advantages of the Typesafe Enum sample.
Varargs
This facility eliminates the necessity for manually boxing up argument lists into an array when invoking strategies that settle for variable-length argument lists.
JDBC Changes
As of WebLogic Server 9.Zero and 10.x, the variety of JDBC useful resource sorts was diminished to simplify JDBC configuration. Now, as an alternative of configuring a JDBC connection pool after which configuring a knowledge supply a supply to level to the connection pool and bind to the JNDI tree, you may configure a knowledge supply that encompasses a connection pool.
Configuring JDBC
In the Domain Structure tree, increase Services > JDBC, then choose Data Sources.
Click on New to create a brand new information Source.
Enter Name, JNDI Name for information supply.
Database Type:-Select the DBMS of the database that you really want to join to. If your DBMS just isn't listed, choose Other.
Database Driver:-The listing will present widespread drivers for chosen DBMS. Select the motive force you need to use to join to database.
Here now we have chosen Non-XA driver so, we want to choose transaction choices which shall be subsequent display screen. If we choose XA-driver transaction choices shall be default(The information supply will help international transactions and use the ‘Two-Phase Commit' international transaction protocol).
Click subsequent to proceed
Select Transaction choices on the above display screen. All the choices are self explanatory; choose them in accordance to your software wants.
Click Next to proceed
Now you have got to create a connection pool
Enter Database Name, Host Name, Port No Database User Name and Password within the above display screen and click on subsequent to proceed
A Test connection display screen will open exhibiting the connection particulars. You can check the configuration by Clicking Test configuration or simply click on Finish.
JDBC Feature Changes
The following part describes a number of the vital modifications to JDBC help:
JDBC 4.0 Support
WebLogic Server 10.Three helps JDBC 4.Zero specification. The WebLogic Type Four JDBC driver for Oracle has been deprecated in WebLogic Server 10.Three and may be eliminated in subsequent launch. So I'd recommend as an alternative of utilizing deprecated driver, you must use the Oracle Thin Driver that comes with WebLogic Server.
Oracle 11g RAC Support
WebLogic Server 10.Three contains help for Oracle 11g and 11g RAC (Real Application Clusters)
JMS configuration modifications
Go to Domain, Services, Messaging, JMS Modules.
JMS configurations on this launch of weblogic server are a bit completely different or you may say a bit fascinating than WLS8.1. Here you'll create a JMS module which accommodates all of the issues you might be used to working with in 8.1. All the JMS Connection Factories, JMS Queues, distributed locations, subjects and many others will go in a JMS module. This offers you the benefit of flexibility whereas focusing on the assets. It additionally permits you to outline software particular JMS modules and solely deploy them when the applying is deployed.
So, create a JMS module, assign it a reputation similar to MyJMSModule. Now Select focusing on choices, then add assets to the module. This is the place you add the connection factories, queues, subjects, distributed locations and so forth.
In the Administration Console, increase Services > Messaging and choose JMS Modules
Click New to create a Module. A module named SystemModule is proven right here. Don't get confused with the identify System module it is not default module, its created for our software.
Name:- Enter any identify for the JMS module.
Descriptor file Name: optionally enter a reputation for module's underlying descriptor file. The system will robotically add a “-jms.xml” extension to this identify. If you don't present a reputation, a default identify shall be assigned.
Location in Domain: optionally, enter the place you need to place the descriptor for the system module. The location have to be relative to JMS configuration subdirectory of your area, which is the config/jms subdirectory.
Click on Next to proceed
Select the server on to deploy module.
Click Next to proceed.
On the above web page, point out whether or not you need to give you the chance to instantly add assets to this JMS Module after it is created.
Click Finish.
If you selected not to proceed including assets, the JMS module creation is full, and you might be taken to the JMS Modules abstract web page the place you may entry the brand new module to edit it and add assets to it. However, if you happen to selected to proceed including assets, then you might be robotically taken to the JMS Modules: Configuration web page the place you may proceed including assets to the module.
Click New to add assets.
Select one of many assets which you need to add.
Depending on the kind of useful resource you choose, you can be requested to enter info to create the useful resource similar as you do in earlier variations.
Uniform Configuration of Distributed Destinations
Uniform Distributed Destination is an fascinating function for purposes utilizing distributed locations in weblogic Server 9.X and later variations. It helps in simplifying the administration and growth of distributed purposes. Now administrator would not want to create or designate vacation spot members, however depends on the system to uniformly create the required members on the JMS servers to which a JMS module is focused. This function ensures the constant configuration of all distributed vacation spot parameters. The Weighted Distributed Destination function can be there for guide fine-tuning of distributed vacation spot members.
While creating distributed queue Leave the Allocate Members Uniformly verify field enabled to ensure that WebLogic Server to uniformly create and allocate the members of this uniform distributed queue.
JSP Compiler
As you would possibly know the in WLS 8.1 JSP compiler makes use of the javelin to generate byte code. But on this launch Java Compiler API's is used. This function shouldn't influence JSP recordsdata in present purposes. But that is undoubtedly a dependable JSP compiler because it would not rely upon the Javelin framework Java class bytecode era function.
Deployment Descriptors
The weblogic.xml deployment descriptor is now schema-based somewhat than doc sort definition (DTD)-based. You can refer http://edocs.bea.com/wls/docs90/webapp/weblogic_xml.html hyperlink for full reference of the weather within the WebLogic Server-specific deployment descriptor weblogic.xml. You can even refer http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd to see the schema for internet.xml.
Upgrading Deployment Descriptors
As this weblogic server makes use of schema-based somewhat than doc sort definition (DTD)-based descriptors. So to get full benefit I'd recommend upgrading deployment descriptors whereas migrating software to a brand new launch. A easy device can be utilized to get the descriptors upgraded. This device is named weblogic.DDConverter.
I'd suggest you to put all of the generated descriptors in a short lived listing. Inspect the correctness and if they appear superb place them in correct place.
weblogic.DDConverter could be invoked with the next command:
java weblogic.DDConverter [options] archive_file_or_directory
the place archive_file_or_directory refers to the EAR, WAR, JAR, or RAR of your software.
The following instance reveals how to use the weblogic.DDConverter command to generate upgraded deployment descriptors for the check.ear Enterprise software into the subdirectory temp within the present listing:
java weblogic.DDConverter -d temp check.ear
if you happen to get “Exception in thread “primary” java.lang.NoClassDefFoundError: weblogic/DDConverter” exception simply specify the whole for DDConverter class. Following instance is proven utilizing full path.
java -cp D:beawlserver_10.3serverlibweblogic.jar; weblogic.DDConverter -d temp check.ear
DDConverter is a category inside weblogic.jar, so specify the trail of weblogic.jar.
-d specifies the listing for putting generated descriptors recordsdata.
[ad_2]