Questions tagged [wso2-msf4j]

WSO2 Microservices Framework for Java is an Open Source framework for developing & running microservices. Creates secure, high-performance microservices that support container-based deployments.

WSO2 Microservices Framework for Java (WSO2 msf4j) is an Open Source, lightweight framework for developing & running microservices. Creates secure, high-performance microservices that support container-based deployments.

Features:

  • Supports framework.
  • supports .
  • Supports container-based deployment.
  • Leverages annotations, such as .
  • High performance based transport.
  • based tooling.
  • Built-in metrics and integration via WSO2 Data Analytics Server ()
  • Message tracing with or
  • Supports circuit breaker using Netflix Hystrix.
  • Pre-integration for WSO2 Identity Server ()and supports third-party authentication servers.
  • Integration with rendering engines such as .

References:

20 questions
1
vote
0 answers

msf4j request threws an exception Error in http connector listener

I have created a microservice using msf4j framework and configured the postgres database using Hibernate jpa and started the server. I could able to do post/get operation successfully but in the backend getting this below error. Can anyone guide me…
1
vote
1 answer

MSF4J POST method receiving partial data

I'm new to MSF4J and I need to write a REST API that accepts a large XML data through POST. I am using request.getMessegeBody() method to get the data. I discovered that it's now deprecated but I couldn't find the newer version of it so I decided to…
Piaget Hadzizi
  • 702
  • 8
  • 15
1
vote
1 answer

MSF4J integration test

Do we have any library for integration test with MSF4J, like we have one for spring boot? If someone knows about some sample library in github, would be of great help. Thanks, Manish
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
0 answers

How to create an "https" connection in an MSF4J microservice?

I'm new to MSF4J micorservices. I was trying out a hello-world MSF4J example as given here: https://javahelps.com/wso2-msf4j-hello-world. Everything works as expected, but when I try to access the service using an https url…
jogi343
  • 1
  • 1
0
votes
2 answers

msf4j JWTAccessTokenBuilder threws ClassNotFoundException

I am running wso2is Version 5.7 and tried to implement a TokenGenerator based on msf4j JWTAccessTokenBuilder. My identity.xml includes com.wso2.jwt.token.builder.JWTAccessTokenBuilder
csbrogi
  • 424
  • 3
  • 14
0
votes
3 answers

msf4j support for cors

I created a microservice using MSF4J and tested the resources with postman all works fine but when I use it with a Angular 5 client app; the browser sends an additional http OPTIONS request to check CORS I get a "405 Method Not Allowed" Response.…
shalini
  • 1
  • 1
0
votes
1 answer

Is it possible to deserialize RFC3339 full-date field of an request json body to some java date class within msf4j application?

I wonder if it is possible to deserialize RFC3339 full-date field of an request json body to some java date class within msf4j application? My model looks like: class Model { java.util.Date date; ... } Service looks like: @Path("/") class…
uanacau
  • 63
  • 2
  • 9
0
votes
0 answers

WSO2- MSF4J to parse XML dynamically

I am in a requirement to develop a middleware API on MSF4J framework which shoudl be able to accept XML as input and send a transformed XML back to client? Could see examples with json as input like the below snippet but not with XML anywhere? How…
Maadavan
  • 1
  • 2
0
votes
1 answer

msf4j Runnable/Thread

I try to make my msf4j jar become runnable (public class abcService implements Runnable, Microservice) When i deployed the jar to wso2 msf4j container, the runnable part is not working as "Main thread " and "Child Thread " is not displayed at the…
GOAT_Dirk
  • 13
  • 3
0
votes
1 answer

how to develop msf4j-apps and deploy them in wso2ei

the about-page of wso2ei 6.1.1 (https://docs.wso2.com/display/EI611/About+this+Release) mentioned the possibility to develop and especially to deploy msf4j apps in wso2ei: From WSO2 EI 6.1.0 onwards, it does not ship the functionalities of WSO2…
0
votes
0 answers

WSO2 MSF4J receive large data in @Post

We are using wso2 microservice engine as middleware between WSO2 EI and DB. The target chain MQ->WSO EI->msf4j->DB. DTO which is transfered - formatted xml string which basically shouldn't be parsed till msf4j layer. So, for all this is just string.…
PVN
  • 21
  • 6
0
votes
1 answer

WSO2MB doesnot work in spring boot

I am trying to use WSO2MB in spring boot, but the maven is not able to download the dependencies like andes-client-3.1.1.jar. It is working fine when I use msf4j. Is it not possible for spring-boot to use wso2mb? I am getting error: Failure to find…
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
1 answer

How to use exception mapper for exceptions thrown from interceptors in MSF4J

I added a authorisation module in interceptor, and tried to use exception mapper to throw 401 status code, but even if it is scanning my exception mapper, it is not using it in runtime. @Component public class ExceptionMapper implements…
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
2 answers

spring custom scan in msf4j

I have an msf4j application in package com.a.sample1 and I want to scan some component in com.a.sample2. Is there a way to do it in msf4j? I am using: public static void main(String[] args) { MSF4JSpringApplication …
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
0 answers

msf4j spring retrieve token through rest template

I am trying to retrieve token from WSO2 identity server, based upon the username and password received from UI. I am able to do it from the below curl command: curl -v -k -X POST --basic -u zbvliQjZK2aVpWV_EE2Q6PWYDUIa:xBGfoppV1DsDGoMNHDPsF5uWLKga…
krmanish007
  • 6,749
  • 16
  • 58
  • 100
1
2