Questions tagged [msf4j]

WSO2 Microservices Framework for Java (MSF4J) is a lightweight high performance framework for developing & running microservices.

WSO2 Microservices Framework for Java

Links

43 questions
0
votes
0 answers

Invalid function argument when setting receivebuffer size by netty

Starting up micro services with wso2 msf4j throws error 4022 socket exception on one non-stop machine but works fine on multiple other machines machine including j and l series. We are currently using msf4j 2.1.0, ws02 5.1, and Netty 4.0.3. Most of…
0
votes
0 answers

msf4j response image got Improperly closed variable

i use msf4j with mustache for my project service and get problem when returning an image (image/png) as a response entity. here the code: String img = MustacheTemplateEngine.render('path/to/image.png',null); return…
M. Plant
  • 467
  • 2
  • 7
  • 19
0
votes
1 answer

Does it make sense to use wso2-dss as a data access layer for msf4j microservice?

My question is related to the architecture of a java microservice with msf4j maria db and wso2 dss, i would like to know is it wise to use the dss as a data access layer , how can i build a correct architecture
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
0 answers

using spring boot dev tool in msf4j and netbeans

am using msf4j-spring and am trying to use the spring-boot-devtools for hot Reloading and restarting. My IDE is netbeans and I have set my IDE to compile on save, yet when I edit my .java files and properties files it does not restart or reload my…
DaviesTobi alex
  • 610
  • 1
  • 9
  • 34
0
votes
1 answer

"Could not find or load main class" when running a jar file from a msf4j project

I'm working on a Java project which uses the msf4j library. In IntelliJ IDEA I'm able to run the project, everything works as expected. However, If I build a jar file from this project (aplying the first part of this answer), the jar file cannot run…
Alex
  • 258
  • 2
  • 20
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

Problems with MSF4J and @MatrixParam

Folks, I have found what seems to be a problem with / (bug in ?) MSF4J as including an @MatrixParam annotated variable in a URI causes the affected (micro)service to either 'hang' indefinitely, or if accessed via a browser, to give a "404 Not Found"…
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

WSO2 Self contained AccessToken claims configuration -- the "sub" field

I am working on WSO2IS, and had been able to get a self contained access token out of WSO2IS by Oauth2 "password" grant type by following this post I am also able to verify the signature of the token in application (see this post) yet there is…
0
votes
0 answers

wso2 msf4j: How to configure the server properties

I'm currently trying to use MSF4J with the StreamingOutput API. However, instead of streaming a File, I want to stream a series of unending short strings/texts. I want the strings to be flushed to the client immediately. However, the client is not…
Speng
  • 1
  • 2