Reporting statistics in Spring Web Flow - spring

We have an enterprise application using Spring 3.2.8 and Spring Web Flow 2.3.3 deployed on the Websphere 8 server. We wish to report statistics like no. of incomplete flows, the state at which user terminate the flow, time spent at individual states etc. We thought of using Spring Instrumentation. However, could not find instrumentation jar package for Spring 3.2 and Webflow 2.3. Where can I find the complete distribution of Spring 3.2 instrumentation jars? Or which other tool can I use for my purpose with Websphere 8? Please help.

I just did a google search. If I read the webpage correctly, instrumented spring is a paid product.
From http://static.springsource.com/projects/instrumentation/index.html:
Instrumented Spring Framework, Web Services, Web Flow, and Security are available as part of a tc Server Spring Edition 2.x subscription or evaluation, which includes integration with Hyperic HQ. Instrumented Spring products are also available to Spring Enterprise subscribers.

Related

spring integration max-fetch-size info

We want to use spring boot 1.5.8 with spring integration 5.x as it has one attribute(max-fetch-size) for sftp inbound channel adapter which allows you to control no. of files being downloaded locally from sftp server. Is it possible to use spring integration 5.x with spring boot 1.5.8?
I cannot use spring boot 2.0 M7 release in production as it is not allowed in our company and as spring boot 2.x is not release yet and we have to go to production in March , we need workaround.
If this is not possible, how can i implement max-fetch-limit with spring integration 4.x version?
There are not currently any plans to back-port that feature to 4.3.x.
As an alternative, you could use an SFTP Outbound Gateway to GET a single file instead of using the inbound channel adapter.
Spring Boot 2.0 is currently scheduled to be released in February so, perhaps, that fits your timeline.

Does Hybris use Spring Framework?

I am trying to understand and get some information for the Hybris platform. Does it use Spring Framework? Also could anyone please share the link / material to have more understanding about it's architecture, technology, etc ?
As per my research, they use:
Technology:
Spring MVC, JSF (FrontEnd), REST Web services ?????
User Interfaces:
Product Cockpit, CMS Cockpit, Print Cockpit, Admin Cockpit, HMC
Platform:
Persistance, Caching, Security, Internationalization, Import/Export, Search
App Server:
Hybris Server, Oracle BEA, IBM, JBoss
Database:
Oracle, SqlServer, Mysql
IMP: Does SAP Hybris support for Spring REST. I think since it uses Spring MVC + Security, so restful web services should of Spring REST only. I heard that it also support RestEasy and Jersey, but not good option when you have a Spring REST in place which adds great support than RestEasy and Jersey. Can you bring in details ?
Can someone please answer to the above IMP query ? Also please share sample RestFul web service of SAP Hybris.
Hybris uses the following technologies:
Java, Spring, Apache SOLR, Groovy, Scala, Apache Commons, ZK framework, Google Analytics, Jasper Reports, Tomcat.
You can find the best information on the architecture of hybris here.
You need a SAP Hybris login for this.
Spring core, Spring MVC.
JSP, javascript, CSS, bootstrap for the frontend.
java 8 for the backend.
apache Solr as the search engine.
tomcat, spring tc server, oracle, IBM as server.
hsqldb, oracle, IBM SAP HANA, MySql, Percona etc as database.
hybris does use spring and many other frameworks (like zk, groovy, scala). They have there own persistence layer and they does use the MVC pattern a lot. As hybris provide a lot of different services and interfaces it is not clearly only one architecture.
e.g. the "datahub" is a communication gateway based on spring integration, but Independent from the base platform.
Hybris use spring mvc spring security. it is compatible with Mysql, HANA, Oracle, sqlserver etc. Also it comes with charon api which make it easy to interact with yaas platform specially designed to fulfill the requirement of other ecommerce feature. you can access it through following link : click [here]:help.hybris.com
But again it is not free. You can also try on http://www.slideshare.net/

Soap client framework

I have web application on Spring MVC and looking for SOAP consumer - frameworks to be used with Spring MVC. The web app is only the consumer and doesn't host any web service.
Options I am looking for SOAP client are :
1. JAX-WS
2. Spring MVC & Spring-WS
3. Apache Axis or CXF
4. Spring Integration or Camel. Can these be used for consumption of
services too? Won't that be overhead?
What do you suggest? Please recommend the best option if also not in the above list.
Thanks in advance.
Look at this excellent post about this subject.
Which framework is better CXF or Spring-WS?
My advise based on the fact that you only have to develop one client, is to consider making your choice based on your context to optimize your productivity and avoid adding tones of layer and libs in your app:
Pure Java EE app or already using Spring APP
Your current Application Server : Jboss for example already provide a CXF implementation that is very suggested to use
Service providers "age": I have met some problems in calling AS400 or old IBM system webservices. Any client was not working.
Your IDE and Plugins : for example, if you have eclipse, Axis/CXF plugins are very interesting.
Concerning Camel, it is interesting if you have different source and destination like HTTP to JMS.
For Camel, read this post:
What exactly is Apache Camel?

With Spring do you still need a java application server and when?

looks to me you need tomcat or some other servlet engine for the web part.
what about data access part using hibernate and jms? Thanks.
No, you don't need an application server, you can see Spring as a proprietary, modular application server implementation / adapter. But you still need an a servlet container.
Data access part: you can use hibernate and some standalone connection pool
jms: Spring is not a JMS provider, but it nicely integrates POJOs with any JMS provider
Spring also has comprehensive transactions support
Finally you have jmx and aop support built-in and easy integration with bean validation, jpa, web services, rmi, jci, task scheduling, caching...
As you can see you can either use certified application server and Java EE stack or built on top of Tomcat and pick Spring modules you need. Sometimes Spring uses standard Java EE APIs (like JPA), more often it builts its own.

How to integrate Spring application with Mule ESB

I want to integrate my spring (3.0) application with Mule ESB (Mule3) and make available those service for different clients (.Net, GWT etc). For accomplish this, whether I should deploy my Spring application as separate component and define Endpoint on Mule or I can deploy my spring application inside the Mule and provide those services to outside clients. If anyone know some ideas or any sample reference projects related to this problem, can please update me. Thanks.
I would recommend integrating Mule into your Spring application. That is, adding the Mule jar files to your app and using it as a library. Doing it this way Mule adds a child context to your main Spring application context and has access to your beans so they can be used as services.
The Using Mule with Spring and Spring Application Contexts pages are the places to start learning about how to do this.

Resources