question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to use RPC client from service

See original GitHub issue
  1. RPC client cant be defined in service
  2. Controller (with defined RPC client) cannot be injected in service to call RCP actions via controller methods
  3. Controller cant be RPC client without defining @RequestMapping() on some method (try to remove method with @RequestMapping from controller and in controller constructor call this.client.send() after some timeout, this.client will be null)

Just got example from documentation (Client section) and tried all above. IMHO the most important is 2 issue cause it’s useful to have controllers that works with all transport (http/ws/rpc) things and services for all other work. So service should be able to inject appropriate controller to call RPC client action or send smth away via websocket.

Update. Or maybe we can move RPC client/server to Gateway? They can be injected into anything and rpc has same interaction logic as websocket (ability to receive and send messages).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilmysliwieccommented, Jun 4, 2017

Since 3.0.0 constructor shouldn’t break RPC client creation. You can inject dependencies through constructor, but interact with them after module init event.

0reactions
lock[bot]commented, Sep 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Restrictions for Unauthenticated RPC Clients: The group ...
The Argument. One of the options for Restrictions for unauthenticated RPC clients is "Authenticated without Exceptions". When enabled, RPC ...
Read more >
rpcclient - Samba.org
DESCRIPTION. This tool is part of the samba(7) suite. rpcclient is a utility initially developed to test MS-RPC functionality in Samba itself.
Read more >
Active Directory Enumeration: RPCClient - Hacking Articles
In this article, we are going to focus on the enumeration of the Domain through the SMB and RPC channels. The tool that...
Read more >
Understanding RPC Vs REST For HTTP APIs
REST is all about a client-server relationship, where server-side data ... Seeing as XML is not everyone's cup of tea, an RPC API...
Read more >
Advanced Use of RPC
The RPC_Establish procedure may be used in a client program to handle errors occuring in remote procedure calls. By default, if an unrecoverable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found