Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

remote ejb client failed connect to remote wildfly 10  RSS feed

 
kayvan jamshidi
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a example remote ejb client that connects to remote server wildfly 9.0.2 final , here my code :



here is important sections of standalone-full.xml on server side :


and my exception is :


please help me
 
Angelo Maggioni
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a similar problem and I was wondering if you find the solution
Thanks
 
Nicola Sivalli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[WILDFLY 10.1.0.FINAL WITH EJB 3.2]

In the standalone client create a new package with the name "src/main/resources" and in this create a new file with the name "jboss-ejb-client.properties".
In this file copy the following text:



Usually the values ​​to be changed are follows: host, port, username and password.
Host and port are default for local instance of Wildfly 10.1.0.Final. Username and password have been setted with add-user.bat (application user).

The following code is the client in the "src/main/java"



In the same "src/main/java" you have to put the same bean interface on the server (are the @Remote methods):

 
Nicola Sivalli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RECTIFICATION
String stringReturned = beanRemote.sayHelloFromEJBHello();
instead of
String stringReturned = assembleBeanRemote.sayHelloFromEJBHello();
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!