The company's operation background service is Wildfly , Some problems , There is no online solution Tomcat It's convenient to come here .（So, Now it's time to change the frame ）
But there are some problems that have been troubling me for a long time , I still want to record .
Several new interfaces have been written , Used to record and verify the abnormal flow of mobile phone number , During the test, it was found that there was an exception all the time ：
EJBCLIENT000409: No more destinations are available
According to past experience , I doubt it. Wildfly The newly written interface is not registered , It's not found .
1、 Please check first Wildfly Is there any omission in the interface annotation 、 Wrong writing （@Remote、@BeanName(“ Implementation class name ”））, And implementation class annotations （@Stateless、@TransactionManagement(））
2、 Check interface parameters 、 Whether the returned entity class is serialized （<span class="colour" style="color: rgb(85, 86, 102);">implements Serializable</span>）
use @Remote The interface parameters of the annotated class and the returned object class need to be serialized .
Tips： Look up the ,<span class="colour" style="color: rgb(85, 86, 102);">Serializable Allows us to convert objects into byte sequences , These byte sequences can be stored to regenerate the original object ;Serializable Automatically masking differences in operating systems 、 Byte order, etc ;Java Of RMI（Remote method invocation Remote method call ） Allows us to manipulate objects on a remote machine as if they were on the local machine , When we send a message to a remote object , It needs to be used Serializable Mechanism to send and receive data .</span>
3、 see <span class="colour" style="color: rgb(85, 86, 102);">jboss-ejb-client.properties Is the location of the configuration file correct （ I've never met that before , I don't need this profile for my project either ）</span>
The general situation is resources Under the table of contents , No words , Try it one by one .