This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

remote ejb client failed connect to remote wildfly 10  RSS feed

 
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();
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!