Arquitectura JDeveloper con Weblogic
Aug 10, 10 by Juan Lebrijo about weblogic, JDeveloper, blog, Oracle, Java
Parece una obviedad que la mejor herramienta para desarrollar sobre Weblogic/OracleDB es JDeveloper. Pero para mi, hasta ahora, no era tan obvio, ya que Eclipse es mi IDE preferido, ya que es el estándar para el desarrollo JAVA (Jboss, Spring, Android,...). Si tu arquitectura es Oracle/Weblogic, no tienes miedo al cambio y tu obsesión es incrementar tu productividad, tu herramienta es JDeveloper. Voy a hacer una serie de artículos tratando de demostrar este punto. Pero si quieres ir abriendo boca te recomiendo que veas este video, veras como puede ser realmente sencillo hacer aplicaciones RIA en entornos empresariales muy complejos. La arquitectura propuesta en esta página se basa en JDeveloper y en su Servidor de cabecera (WebLogic):
arqo-jdeveloper.jpg 77.3 KB
Las ventajas que hacen parecer a JDeveloper una buena opción frente a Eclipse son:
  • Mejora de productividad: wizards para generar código repetitivo, arquitectura de aplicaciones preestablecidas, etc
  • ADF: Desarrollo de formularios web WYSIWYG, basado en composición de layouts.
  • Weblogic: buena integración si es este el Servidor que utilizas, en tiempo de desarrollo, y para aprovechar todas sus capacidades de servidor JEE (JAX-WS, BPM, Seguridad,...).
  • Oracle DDBB: Unifica el desarrollo de DDBB con el de la aplicación (aunque de momento no creo que sustituya a Toad o a PL/SQL Developer).
Para ver como se desarrolla con esta arquitectura, vamos a publicar una serie de artículos que la definen:
  • Crear el proyecto base
  • Modelo:
    • Diseño de Modelo de datos
    • JPA from BBDD
  • ADF: View
  • WS: Publicar WS simple
  • Seguridad:
    • Seguridad Vista
    • WS: Seguridad
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
JAX-WS: Container level security on Weblogic
Aug 08, 10 by Juan Lebrijo about weblogic, Web Services, SoapUI, blog
In this post we are going to see how to secure a Web Service with basic HTTP Auth, in weblogic. We will base in a previous project where we created a very basic WS: Hello World. In the Security Realm > MyRealm we have to create:
  • An user: user/12345678
  • A group: TutorialUser
  • Add the user to the group
In the Weblogic console as we see on the picture:
manage_users_groups.thumbnail.png 11.4 KB
In web.xml we have to add the security confs needed (path, basic type,....):
   
    
        Regla01
        
            WSPOST
            
            /*
            POST
        
        
            
            TutorialUser
        
    
    
        5
    
    
        BASIC
        myrealm
    
    
        
        TutorialUser
    



In weblogic.xml map the application role with server role (it is mandatory):
    
        TutorialUser
        TutorialUser
    
We can test with SoapUI creating a new WS project, with WSDL address (http://localhost:7001/wsc/HelloService?WSDL) and previous Weblogic credentials created:
1007.thumbnail.gif 7.87 KB