Helios
Helios
CONTROLLERS ............................................................................................................................................... 1
SONARQUBE.................................................................................................................................................. 2
TEAMSITE PORTS........................................................................................................................................... 3
What are microservices? .............................................................................................................................. 3
Java ORM Frameworks.................................................................................................................................. 4
SPRING .......................................................................................................................................................... 4
CONTROLLERS
AlexC
January 21, 2010 #2
1)What is the significance of using Controllers?
There are 3 types of controllers, site, page and component, each can execute before and after such entity which allows you to
control flow at any of those levels and execute code after the page is rendered.
2) Is the Controllers of Livesite is same as what we usually used in Struts where we have struts-config file which contains the
action mapping and
accordingly redirects to success or failure jsp as a next page(an example)?
It is not just a mapping but executing code with full context available.
3) If I want to use controllers what ill be the steps I need to follow as in my application we have not used controllers
anywhere, So will it require any architectural change i.e. do I need to create a config file where I give the mapping of next
pages based on the return type of my Action class.
It is built in, see impl.zip for samples and docs for how to attach them.
4) Will my action class will extend some class like Action(in struts)?
No, they are standalone POJO methods.
5) Can someone provide the sample code snippet?
See impl.zip provided with livesite and read the tech reference.
SE123
January 22, 2010 #3
Thanks, for your response Alex I got many of my answers but could you please elaborate more on site, page and component
Controllers or it would be great if you can refer me any document where it is explained in detail because I am referring the
ls_310p1_spdev_v01_en.pdf but it doesn't say much on controllers.
Please provide some link where I can get any document and also provide me the link where I will get the impl.zip
Thanks a ton.
AlexC
January 22, 2010 #4
impl.zip is installed with Livesite, check with support if you do not have one, it is part of the distribution (try grepping for it).
There are 3 types of controllers in TeamSite 672 (I believe Livesite 3.1 only had a component controller).
Site pre-controller
Page pre-controller
For each component that needs to be rendered or is a target of a submit
{
Component controller
Component rendering
}
Page post-controller
Site post-controller
Post-controllers cannot write anything to the user nor can they change flow, they are mostly for statistics and cleanup tasks.
I am trying to use pre-controller but it is not working and I am unable to find out the problem.
I have implemented all the steps as mentioned in the "ls_310_spdev_v02_en.pdf" on my TeamSite server. but when I am
hitting the URL
"http://servername/mysites/sitename/PreControllerPOC.page?&submit=true&ComponentID=1264614790248&iwPreActions
=one;"
It is neither giving any error nor calling any method. Please help me in this.
Thanks in advance
vpatel
January 28, 2010 #8
Post some details...
Where is your class / package located? How did you compile it? How are you referencing it? What is in the servletd log?
AlexC
January 29, 2010 #9
Please don't use 2 threads to answer one question, see the other thread where I answered the question. Thanks.
SONARQUBE
Yep, I do that all the time. You wouldn't hook it up direct to TeamSite though. Ideally you're managing your code in a
separate source control system and building a JAR file from there. The next step is to have a continuous integration system
automate your builds, and then you can hook up sonar to that.
TEAMSITE PORTS
MICROSERVICES
Microservices - also known as the microservice architecture - is an architectural style that structures an application as a
collection of services that are
The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables
an organization to evolve its technology stack.
A good starting point is the Monolithic Architecture pattern, which is the traditional architectural style that is still a good
choice for many applications. It does, however, have numerous limitations and issues and so a better choice for
large/complex applications is the Microservice architecture pattern.
If you have built an application with the microservice architecture then take a look at the Microservices Assessment
Platform. The platform assesses what you have built and identifies what needs to be improved. It reduce architectural and
organizational risk and maximizes the benefits of the microservice architecture
https://platform.microservices.io/apps
https://www.tutorialspoint.com/hibernate/orm_overview.htm
SPRING:
Spring makes programming Java quicker, easier, and safer for everybody. Spring’s focus on speed, simplicity, and
productivity has made it the world's most popular Java framework.
Spring makes programming Java quicker, easier, and safer for everybody. Spring’s focus on speed, simplicity, and
productivity has made it the world's most popular Java framework.
Spring is everywhere
Spring’s flexible libraries are trusted by developers all over the world. Spring delivers delightful experiences to millions of
end-users every day—whether that’s streaming TV, online shopping, or countless other innovative solutions. Spring also has
contributions from all the big names in tech, including Alibaba, Amazon, Google, Microsoft, and more.
Spring is flexible
Spring’s flexible and comprehensive set of extensions and third-party libraries let developers build almost any application
imaginable. At its core, Spring Framework’s Inversion of Control (IoC) and Dependency Injection (DI) features provide the
foundation for a wide-ranging set of features and functionality. Whether you’re building secure, reactive, cloud-based
microservices for the web, or complex streaming data flows for the enterprise, Spring has the tools to help.
Spring is productive
Spring Boot transforms how you approach Java programming tasks, radically streamlining your experience. Spring Boot
combines necessities such as an application context and an auto-configured, embedded web server to make microservice
development a cinch. To go even faster, you can combine Spring Boot with Spring Cloud’s rich set of supporting libraries,
servers, patterns, and templates, to safely deploy entire microservices-based architectures into the cloud, in record time.
Spring is fast
Our engineers care deeply about performance. With Spring, you’ll notice fast startup, fast shutdown, and optimized
execution, by default. Increasingly, Spring projects also support the reactive (nonblocking) programming model for even
greater efficiency. Developer productivity is Spring’s superpower. Spring Boot helps developers build applications with ease
and with far less toil than other competing paradigms. Embedded web servers, auto-configuration, and “fat jars” help you get
started quickly, and innovations like LiveReload in Spring DevTools mean developers can iterate faster than ever before.
You can even start a new Spring project in seconds, with the Spring Initializr at start.spring.io.
Spring is secure
Spring has a proven track record of dealing with security issues quickly and responsibly. The Spring committers work with
security professionals to patch and test any reported vulnerabilities. Third-party dependencies are also monitored closely,
and regular updates are issued to help keep your data and applications as safe as possible. In addition, Spring Security
makes it easier for you to integrate with industry-standard security schemes and deliver trustworthy solutions that are secure
by default.
Spring is supportive
The Spring community is enormous, global, diverse, and spans folks of all ages and capabilities, from complete beginners to
seasoned pros. No matter where you are on your journey, you can find the support and resources you need to get you to the
next level: quickstarts, guides & tutorials, videos, meetups, support, or even formal training and certification.
The distributed nature of microservices brings challenges. Spring helps you mitigate these. With several ready-to-run cloud
patterns, Spring Cloud can help with service discovery, load-balancing, circuit-breaking, distributed tracing, and monitoring.
It can even act as an API gateway.