Kevin Cloutier

Greenhorn
+ Follow
since Jul 07, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kevin Cloutier

OK, looks like I may have figured this error out. My interfaces were incorrect... will post back the solution when I know for sure...
Hi,

I am attempting to create my first EJB3 client application and I am running into a strange issue. I run Glassfish on http://localhost:8080 with an admin at http:/localhost:4848 (the server is also accessible through http://127.0.0.1:8080 with admin of http://127.0.0.1:4848 but I am receiving a socketType failure error when running the client which references the internal IP address provided by my router.

Here is what I do:



This is the error (internal ip changed of course!) I was hoping this would be as simple as passing a "host" and "port" parameter when starting the app, but appclient doesn't seem to accept these. Any thoughts? Is the hostname just a "red herring"?


[ July 07, 2008: Message edited by: Kevin Cloutier ]
Ok, I've posted a few questions to the Java Sun EJB forums over the last few weeks but it looks like JavaRanch is much more active for questions regarding EJBs... so, here it goes.

I am new to EJB3 (actually EJB) and two questions have arisen while studying this topic.

1) If my application requires both Remote and Local access, and the interfaces are identical, can I use one interface with the following annotation? If so, is this good practice?




2) When creating a client application, I understand from the text I am reading I must include the Interface class file within my client.jar in order for it to work correctly (i.e. InterfaceClassNameLocal.class or InterfaceClassNameRemote.class). Is there any other way? What if I were building an application which utilized EJBs that I did not have access to the source, but were deployed on the server? (by the way, this isn't the case, but it struck me as limiting so I thought I would ask.)