Presented by: Stirling Crow and Jason Foutz University of New Mexico June 5th, 2014 Creating a Stand-alone GRAILS Application Getting ready for Banner XE
Presentation Overview 2 Getting Started Demo Walk Through of our code Deployment Challenges Source on GitHub University Policy New Tools for a New Development
Technologies for development Getting Started
4 Java Spring Framework Groovy Hibernate Grails
See Spriden Search in action! Demo
6 Simple, useful application SPRIDEN – BannerID vs Pidm Tomcat Deployment on development machine WebLogic Deployment
Demo 7
8
MVC Framework DB Connection Customization – Groovy Server Pages Source Code Tour
Development Process Changes 10 Developing in PL/SQL Oracle Database Tables PL/SQL Code
Development Process Changes 11 Developing in GRAILS Oracle Database Tables Java IDE: GGTS or IntelliJ Tomcat Grails Web App WAR file
Development Process Changes 12 Developing in GRAILS Oracle Database Tables Tomcat or WebLogic Grails Web App AIX / Red Hat Linux Production Server WAR file
DB Connection 13 JDBC Datasource Hibernate GORM Grails Web App GORM (Hibernate) Oracle JDBC MySQL JDBC Grails Web App GORM (Hibernate) Oracle JDBC Oracle Database Tables MySQL Database Tables
Customization 14 Groovy Server Pages Templates g:Tags
MVC Framework 15 Models/Domains = Table Column Specs Views = Display HTML info to users Controllers = Perform logic, info to views
Model/Domain 16
Model/Domain - Spriden 17
Spriden Controller Methods 18 index searchById listStudents
Controller: 19
Important Views: 20 searchById.gsp listStudents.gsp
MVC Overview 21 Controllers perform business logic Logic result is sent to a View Controller’s actions and Views have the same name SpridenController’s searchById uses the searchById view
MVC Overview 22 searchById view
MVC Overview searchById sends us to listStudents in SpridenController
MVC Overview 24 Variables come from the form listStudents’ action executes a query, using those variables The results get sent to the listStudents view Controller methods map view names
Source Code Tour 25 Spring plugins Authentication Spring beans Autowire in java is the default in Grails
Deployment Servers Weblogic Quirks Deployment Challenges
27 Tomcat Weblogic Weblogic quirks
Weblogic Discoveries 28 MalformedParameterizedTypeException See:
Weblogic Discoveries 29 /index.gsp not found See:
WebLogic Discoveries - War files 30 Clean Refresh-dependencies Compile War
GitHub! Source Code
32
Watch The Application Being Built 33 Go to: -DnV7re8Yn4Yyunvbsx -DnV7re8Yn4Yyunvbsx Or.. Just go to and search for: stirling crow grails
Security FERPA University Policy
35 Did we build it right? FERPA Security at all layers
New environment New Tools
37 Issue tracking - JIRA Documentation - Confluence Version Control - GitHub
Summary 38 Development tools Technical Environment Security Policy compliance
Questions 39 Questions? Comments? We’d love to know if any of you have created applications using GRAILS!
Thank You! 40 Stirling Crow, Jason Foutz