Showing posts with label REST. Show all posts
Showing posts with label REST. Show all posts

13.12.11

EasyMX - An alternative to JMX | Javalobby

EasyMX - An alternative to JMX | Javalobby

GlassFish - Jersey — Java.net
EasyMX | Free Development software downloads at SourceForge.net
  • Monitoring and getting information about the internals of application is always crucial.
  • http://easymx.sourceforge.net
  • EasyMX uses Rest and Eclipse plugins.
    • The management services are developed using Rest and 
      • First you have to write a service to get information about the application
    • accessed by the Eclipse plugin
I don't see the point of using EasyMX. Maybe just because I always prefer some lightweight tools, such as jstack, vmstat, etc.





REST Service Discoverability with Spring, part 5 | Javalobby

27.10.11

The REST with Spring series


  • The Spring framework snapshot repository is included so that Maven will be able to access the latest Spring snapshots – 3.1.0.BUILD-SNAPSHOT. 
    • http://maven.springframework.org/snapshot
  • I’m using the snapshots for this post because some really useful stuff has been added since 3.1.0.M2, especially in the area of Java based configuration for MVC. 
  • For the purposes of this post however, 3.1.0.M2 works fine, as none of the new additions are in use for the bootstrapping part. 
  • In order to use this version, the snapshot repository should be replaced with:
    • http://maven.springframework.org/milestone

CGLIB


  • Why CGLIB is a dependency?
    • The entire configuration cannot function without it.
    • If removed, Spring will throw:
      • java.lang.IllegalStateException:
        • CGLIB is required to process @Configuration classes.
        • Either add CGLIB to the classpath or remove the following @Configuration bean definitions
  • @Configuration
    • Effective
    • Configuration classes should not be final
    • They should have a constructor with no arguments
    • 4. The IoC container, 4.12 - Java-based container configuration
  • @ImportResource
    • Is used to import the existing XML based Spring configuration.
      • This may be configuration which is still being migrated from XML to Java
      • Or simply legacy configuration that you wish to keep.
      • Either way, importing into the Container is essential for a successful migration, allowing small steps without too much risk.
      • Equivalent XML annotation:
        • <import resource="classpath*:/rest_config.xml"/>