hello guy I need to use generic object on kafka to allow my msg to receive with any object
produce
Send message=[BillDto(ReqId=SP20210205130219, billTyp=1, payTyp=1, grpBillId=SP1158195368931, serviceName=E_TICKETING, serviceCategory=PASSENGER_BOOKING, taxGroup=C, billDetail=BillDetailDto(billId=SP1158195368931, collCentCode=14476430002, billDesc=Purchase of Timber, custTin=111535345, custId=UB132424114, custIdTyp=1, custAccnt=T123ABC, custName=Ubuntu Wamwana, custCellNum=255713525539, custEmail=payer@yahoo.com, billGenDt=2018-10-22T10:00, billExprDt=2023-10-30T10:00:30, billGenBy=Allen Scott, billApprBy=John Legend, billAmt=30000.00, billEqvAmt=30000.00, minPayAmt=0.01, ccy=TZS, exchRate=1.00, billPayOpt=1, PayPlan=1, payLimTyp=1, payLimAmt=0.00, billItems=[BillItemDto(refBillId=SP11581953689, gfsCode=1403541, billItemRef=B1IT115800000, useItemRefOnPay=N, billItemAmt=10000.00, billItemEqvAmt=10000.00)]))] with offset=[18]
consume
Bill ##################ConsumerRecord(topic = BILL_REQUEST_FROM_TRC, partition = 2, leaderEpoch = 0, offset = 18, CreateTime = 1694505276818, serialized key size = -1, serialized value size = 859, headers = RecordHeaders(headers = [RecordHeader(key = TypeId, value = [116, 122, 46, 99, 111, 46, 116, 114, 99, 46, 116, 114, 99, 103, 101, 112, 103, 46, 100, 116, 111, 46, 66, 105, 108, 108, 68, 116, 111])], isReadOnly = false), key = null, value = {"billTyp":1,"payTyp":1,"grpBillId":"SP1158195368931","serviceName":"E_TICKETING","serviceCategory":"PASSENGER_BOOKING","taxGroup":"C","billDetail":{"billId":"SP1158195368931","collCentCode":"14476430002","billDesc":"Purchase of Timber","custTin":"111535345","custId":"UB132424114","custIdTyp":"1","custAccnt":"T123ABC","custName":"Ubuntu Wamwana","custCellNum":"255713525539","custEmail":"payer@yahoo.com","billGenDt":[2018,10,22,10,0],"billExprDt":[2023,10,30,10,0,30],"billGenBy":"Allen Scott","billApprBy":"John Legend","billAmt":30000.00,"billEqvAmt":30000.00,"minPayAmt":0.01,"ccy":"TZS","exchRate":1.00,"billPayOpt":1,"payLimTyp":1,"payLimAmt":0.00,"billItems":[{"refBillId":"SP11581953689","gfsCode":1403541,"billItemRef":"B1IT115800000","useItemRefOnPay":"N","billItemAmt":10000.00,"billItemEqvAmt":10000.00}],"payPlan":1},"reqId":"SP20210205130219"})
but i need only value to any object i want
i use JsonSerializer and Deserializer
Top comments (0)