How to configure Netty Client Handler in Spring Web Application - json

Is there a specific way in configuring Netty Client Handler as a message receiving point in Spring JSF Web Application?
If some standalone Java applications act as Netty Servers How can I receive messages to the Spring JSF web application?

I am assuming your question is how to configure netty with spring in a web application that uses JSF. If so, see this link Using JAVA NIO framework in SPRING server.

Related

Configuration of Axon Framework 4.2 without Spring Boot

I'm new to Axon framework. I'm evaluating it with Axon Server.
Using Spring Boot is very convenient und worked right away.
Problem is, we are aiming at using Spring Boot processes tied together with non Spring Boot processes (Hybris Commerce from SAP).
My question is: What do I have to do to configure Axon framework 4.2 without Spring Boot? (Without Spring Boot the AxonServerAutoConfiguration does not work).
Thanks in advance!
Axon provides the Configuration API, which as been given its own module as of release 4.
This package contains the Configurer, AggregateConfigurer, EventProcessingConfigurer and SagaConfigurer which should give you all the handles to define any set up with buses, aggregates and query models.
The Reference Guide typically provides snippets on how to configure a given component, both through the Configuration API and Spring Boot as separate code tabs.
Additionally, it's sensible that the AxonServerAutoConfiguration does not work without Spring Boot, as it's a Spring Boot dedicated solution to configuring your application.
Even without it though, Axon will (through a Service Loader mechanism) auto-load the ServerConnectorConfigurerModule once you've created a default Configurer. This should give you the required infrastructure components to configure an application using Axon Server without utilizing Spring Boot.

Implementing websockets with angular, node and mysql

I have a Angular app that serves content from a Node.js API which gets the data from a MySQL database. The node API server just gets the data from the database, it doesn't insert anything. A Spring Boot API microservice inserts data into the database.
How would I implement WebSockets so every time the Spring Boot API inserts something into the database, the content is served into the Angular app in real time.
I have a hard time finding tutorials on this topic, help would be greatly appreciated!
Your app will work in following model. i.e :
when page refreshed or loaded, base content will be retrieved from node API
web socket and watcher will based on Angular (client side) + spring boot (server side). web socket implementation doesn't rely on node API.
You need to create client sender and receiver with Angular
Spring boot receiver and sender for mysql, Also to inform client.
When there is new text entered, client and server will communicate via web socket. You don't need to return any data in spring boot but spring boot web socket should inform the client about the new connection/text etc.
Please check below link. Which demonstrates socket implementation of Angular + Spring boot.
Link :
Spring Boot Angular Websocket
Angular 6 WebSocket example with Spring Boot WebSocket Server | SockJS + STOMP

Mule ESB can be deployed in Application Server

Can I deploy Mule on any of the application server. If so how do we deploy the Mule examples.
I have configured my eclipse to run JBoss and Mule Flows dont get deployed in the JBOss server. The syncronisation gives error(null pointer).
But when I run as Mule Application it runs fine but starts Mule Server.
How does Mule deployed in the production? Do we need Mule server in production working along with the application Server?
Can we package all the application in one(ESB + application) and deploy it in the application server.
You have the choice regarding production deployments of Mule:
Use Mule standalone as your first choice, as it comes packed with all modules/transport, is production grade (control scripts...) and supports hot application reloads.
If your deployment environment forces you to deploy on application servers (like JBoss), package your Mule application as a web application (WAR).
If you decide to package your Mule application as a WAR, I strongly suggest you use Maven to do so, as they each Mule module/transport require numerous dependencies. Dealing with this by hand would be insane.
Also be sure to use Servlet inbound endpoints instead of HTTP inbound endpoints otherwise Mule will open another HTTP server inside the web container. You want Mule to use the servlet container for its inbound HTTP requests.
Yes you can. You might want to take a look to the Embedding Mule in a Java Application or Webapp manual page, and the Deploying Mule as a Service to Tomcat.

OSB 11g Streaming with WCF doesn't work

I'm trying to use the OSB 11g to stream large data to .NET WCF.
I use .NET client and server to check this feature.
I created a proxy which make a service callout to the WCF on the .NET server
but when tracing the streaming i find that the OSB buffers all the stream coming from the client into memory and then send it to the .NET WCF.
I guess i configured the proxy correctly with content streaming feature.
by the way i'm running the OSB over linux Red Hat 5.5.
Can any one please share is expirience working with WCF??
Can someone share his Streaming definition in the Proxy/Business services?

Swings to EJB communication without RMI port

I have swing based web application. Currently, the Swing clients communicates to EJB which is running in remote server through third party 'HTTP Tunneling' tool (JProxy). This is commercial tool.
my question is:
Is there any other open source / free 'HTTP Tunneling' tools equivalent to JProxy using which the Swing clients can communicate to EJB.
What are the ways a Swing client can communicate to EJB other than RMI protocal.
I suppose you could create a Web Service to communicate to your backend
http://en.wikipedia.org/wiki/Web_service
http://java.sun.com/webservices/