Weblogic / JDeveloper: Creating the base application
Aug 12, 10 by Juan Lebrijo about weblogic, JDeveloper, blog
Open JDeveloper with "Default role" option, to activare al environment features. We are interested in JEE and database development features. File > New > Java EE Web Application, then we are creating the new application estructure:
create_app.png 184 KB
Put the name "HRApplication", and it creates two projects on the app:
  • ViewController: contains the view of our application, which corresponds with ADF technology based on JSF standard.
  • Model: contains EJB session beand and JPA entities.
To create a database connection go to the "Database Navigator" tab, and with right buton> New, introduce the connection configuration:
db-connection.png 31.2 KB
Drag and drop the connection to our application:
drag_drop_hr.png 17.9 KB
Then we are ready to start modeling and programming.
Weblogic / JDeveloper: Creando la aplicación base
Aug 12, 10 by Juan Lebrijo about weblogic, JDeveloper, blog
Abrimos JDeveloper con al opción "Default role", para que active todas las características del entorno. A nosotros nos interesan las de JEE Development y las de base de datos. File > New > Java EE Web Appliation, con lo que creamos una nueva estructura de aplicación:
create_app.png 184 KB
Llamamos a la aplicación HRApplication, y nos va a crear dos projectos dentro de ella:
  • ViewController: que contendrá la capa de vista de nuestra applicación, correspondiente con la tecnología ADF basada en el estandar JSF.
  • Model: contendrá los beans EJB y las entidades JPA
Para crear la conexión a la BBDD en la pestaña Database Navigator con botón derecho > New, introducimos los datos:
db-connection.png 31.2 KB
Y arrastramos la conexión a nuestra aplicación:
drag_drop_hr.png 17.9 KB
Con esto tenemos la aplicación para empezar a modelarla y a construirla.
JDeveloper Architecture with Weblogic
Aug 10, 10 by Juan Lebrijo about weblogic, JDeveloper, blog, Oracle, Java
Seems obvious that the best tool to develop Weblogic/OracleDB is JDeveloper. But for me, until now, it was not so obvious, because Eclipse is my favorite IDE, it is the standard for Java development (Jboss, Spring, Android,...). If your architecture is Oracle/Weblogic, have no fear to change, and your obsesion is to increase your productivity, then, your tool is JDeveloper. I am gonna write some posts trying to demonstrate this point. But if you want an advancement, you can see this video, you will see howcan be really ssimple make RIA applications over complex enterprise environments. The architecture porposed on this page is based on JDeveloper and its Head Server (WebLogic):
arqo-jdeveloper.jpg 77.3 KB
The advantages which makes JDeveloper a better option than Eclipse are:
  • Improve your productivity: wizards to generate repetitive code, Apps architecture setted for usual projects, etc
  • ADF: Web forms development WYSIWYG edition, based on layouts compositions.
  • Weblogic: great integration if this is the server you use, in development time, and to exploit all its JEE capabilities (JAX-WS, BPM, Security,...).
  • Oracle DDBB: Joins the DDBB development with Java app development (but it don substitute to Toad or PL/SQL developer).
In order to see ho to use this architecture, we ar going o publish some posts:
  • Create de base project
  • Model:
    • Designing data model
    • JPA from BBDD
  • ADF: View
  • WS: Publih simple WS
  • Security:
    • View security
    • WS security