jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes accessing glassfish EJB through external client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "accessing glassfish EJB through external client" Watch "accessing glassfish EJB through external client" New topic
Author

accessing glassfish EJB through external client

Henrik Axelsson
Greenhorn

Joined: Sep 15, 2008
Posts: 7
Hi all,

I've been trying to access a simple bean that I set up in glassfish using an external client. I followed the instructions here: https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB

However when the client tries to connect I get the following error:




When I use TCP view, and look at all the open ports on my machine, 3700 doesn't seem to be there. But going by the article I linked this is supposed to be the default port used. I had a look through my glassfish directories and found domain.xml that contains the line:



so it appears that it should be opening the correct port.

I created an 'Enterprise Application Client' in Netbeans, and if I try to access the bean through that it works fine. I just can't get it to work from a stand alone client which is what I really need to do. I am running glassfish 2u2 and controlling it through Netbeans 6.5.

I am a pretty much a beginner when it comes to glassfish and EJB so I may be missing something simple.

Thanks
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Henrik,

I'm not sure what might be going on, off hand. Perhaps it is best to pursue this with the GlassFish folks on their forums?

Best regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Henrik Axelsson
Greenhorn

Joined: Sep 15, 2008
Posts: 7
Thanks Reza, I'll try my luck over there.
 
wood burning stoves
 
subject: accessing glassfish EJB through external client
 
Similar Threads
Error in connecting client application with EJB deployed in JBOSS
Question About Simple EJB Application..
Using stand alone client appication
Client App socketType failure
Error while running Ejb client with netbeans