• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

remote ejb client failed connect to remote wildfly 10

 
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
 
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
 
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();
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic