Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 23 09:15

    liubao68 on master

    [SCB-1734]add a test case for b… [SCB-1732]support inheritance s… [SCB-1732]support inheritance s… (compare)

  • Jan 23 09:15
    liubao68 closed #1551
  • Jan 23 08:36
    liubao68 synchronize #1551
  • Jan 23 08:09
    liubao68 synchronize #1551
  • Jan 22 07:01
    liubao68 opened #1551
  • Jan 22 06:39

    liubao68 on master

    [SCB-1725]turn on integration t… (compare)

  • Jan 22 06:39
    liubao68 closed #1550
  • Jan 22 02:56
    coveralls commented #1550
  • Jan 22 02:47
    lijbgo opened #626
  • Jan 22 02:31
    liubao68 opened #1550
  • Jan 22 01:34
    NoComments closed #1546
  • Jan 22 01:34
    NoComments commented #1546
  • Jan 22 00:52

    liubao68 on master

    [SCB-1726]fix all TODOs in demos [SCB-1726]fix all TODOs in demos [SCB-1726]mute execution logs and 2 more (compare)

  • Jan 22 00:52
    liubao68 closed #1548
  • Jan 21 08:42
    coveralls commented #1548
  • Jan 21 07:50
    liubao68 synchronize #1548
  • Jan 21 05:03
    liubao68 synchronize #1548
  • Jan 21 04:48
    jormungandr723 commented #1549
  • Jan 21 04:47
    jormungandr723 commented #1549
  • Jan 21 04:09
    jormungandr723 commented #1549
José Cardoso
@cardosojc
Yes, now i'm having the hibernate problem
Lei Zhang
@coolbeevip
😳 Hibernate was defeated by Mybatis in my life
Lei Zhang
@coolbeevip
@cardosojc Dose your project use springboot?
José Cardoso
@cardosojc
Yes it uses @coolbeevip , thanks i will have a look
José Cardoso
@cardosojc
@coolbeevip @WillemJiang i managed to solve this issue by using a dto and not a managed jpa class
However now i have other error..
image.png
Lei Zhang
@coolbeevip
@cardosojc Parameter mismatch when using reflection to call the compensation method, How do you define the compensation method
José Cardoso
@cardosojc
image.png
they have the same parameters, that's why i don't understand the error
Lei Zhang
@coolbeevip

import javax.transaction.Transactional;
import org.apache.servicecomb.pack.omega.transaction.annotations.Compensable;

@Compensable(timeout=5, compensationMethod="cancel")
@Transactional
public boolean transferOut(String from, int amount) {
repo.reduceBalanceByUsername(from, amount);
}

@Transactional
public boolean cancel(String from, int amount) {
repo.addBalanceByUsername(from, amount);
}

@cardosojc you forgot @Transactional
José Cardoso
@cardosojc
tks, will try
José Cardoso
@cardosojc
@coolbeevip @WillemJiang event with your suggestions it's not working
Willem Jiang
@WillemJiang
@cardosojc Can you remove the @Transactional
annotation?
José Cardoso
@cardosojc
Yes and the same error appears
Willem Jiang
@WillemJiang
It's quite strange to me , I'm not sure if the OrderManagementDTO is enhanced by hibernate or not. It could be more easy for us to track the issue if you can provide a simple test case.
Lei Zhang
@coolbeevip
@cardosojc Sorry, I misunderstood @Transactional, it does not solve the problem you said
José Cardoso
@cardosojc
i will try to provide a test case
José Cardoso
@cardosojc
But OrderManagementDTO is completely decoulpled from hibernate
icecream-wx
@icecream-wx
@WillemJiang 问一下servicecomb-pack的一个奇怪用法。官方手册上是说事务起点和子事务是可以在同一个方法上的,也就是@SagaStart@Compensable可以在同一个方法上,这种情况是如何用的?
假如现在有3个方法:A,B,C;A是事务起点,B和C是子事务方法,然后我在B方法上加了@SagaStart@Compensable,然后发现插入数据库的数据 B方法的globalTxId是不一样的,因为扫描到了 @SagaStart重新生成了globalTxId
icecream-wx
@icecream-wx
是不是不能在一个全局事务里面存在两个@SagaStart@TccStart注解
李勇
@liyong1028826685
大家有没有servicecomb pack mysql的设计文档?
@icecream-wx 只能有一个@xxxStart
Lei Zhang
@coolbeevip
@liyong1028826685 表结构说明》
Willem Jiang
@WillemJiang
@icecream-wx 你的B子事务方法是如何被A调用的,如果B方法没有标注@SagaStart的话,是不应该产生新的全局事务的。
sunjinghan7331
@sunjinghan7331
请问一下,在远端服务器启动的service center,在本地的微服务能够通过microservice.yaml文件注册到远端service center吗?
Willem Jiang
@WillemJiang
配置好service center的地址就可以了。
sunjinghan7331
@sunjinghan7331
@WillemJiang 在microservice.yaml中填写了远端service center的地址,但是连接失败
Willem Jiang
@WillemJiang
失败的原因是什么? 看看service center的端口是否监听,有没有开防火墙?
Richard Sun
@sxcooler
@WillemJiang 就着这个话题请教个事,目前版本的sc,支持某种“开发模式”吗?即我在本地启动一个服务,注册到远程sc,但我只调用别的服务,不对外提供服务(我和楼上的问题不同,我能注册上,但是由于网络结构的原因,反向提供服务不太行)
sunjinghan7331
@sunjinghan7331
@WillemJiang 修改了127.0.0.1:30100为0.0.0.0:30100后,可以注册到远端service center 了,现在有个问题,service center 的front界面能设置登陆权限吗?是不是只要知道我的ip和端口就可以访问我的service center front界面了?
Willem Jiang
@WillemJiang
@sxcooler 你的问题能在提到github issue上吗?
@sunjinghan7331 你的问题是访问远端的 servicecenter front吗, 只要你知道地址和端口就能访问了。
sunjinghan7331
@sunjinghan7331
@WillemJiang 是的,service center front能设置登陆权限吗?
Willem Jiang
@WillemJiang
@sunjinghan7331 这个好像没有,你可以提一个issue。
Richard Sun
@sxcooler
@WillemJiang OK
Jor
@jormungandr723
VertxHttpDispatcher 实现访问静态html文件出现 Request has already been read

public class StaticWebpageDispatcher implements VertxHttpDispatcher {

@Override
public int getOrder() {
return Integer.MAX_VALUE;
}

@Override
public void init(Router router) {
StaticHandler webpageHandler = StaticHandler.create();
webpageHandler.setWebRoot("webroot");
router.route("/test/*").handler(webpageHandler);

}

}

Richard Sun
@sxcooler
@sunjinghan7331 可以在sc front的前端加一个nginx,配置http basic authentication
miao jack
@msnetc
大家好 javachassis 怎么跨应用访问其他的注册在servicecenter上的微服务 ?
Richard Sun
@sxcooler
@msnetc 文档里有,serviceId前加上appId和冒号,类似于:someapp:someservice
前提是microservice里设置allowCrossApp: true
miao jack
@msnetc
好的 谢谢 @sxcooler