• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

remote ejb client failed connect to remote wildfly 10

 
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic