Note that there are some explanatory texts on larger screens.

plurals
  1. POEJB remote application-client
    primarykey
    data
    text
    <p>I am starting a new enterprise project and use <code>Glassfish 3</code> as an application server and <code>NetBeans 6.9</code> as an <code>IDE</code>. I have some <code>EJBs</code> which I want to access remotely from a desktop <code>Swing</code> application. AFAIK there are two options - either use plain <code>JNDI</code> lookup or run the <code>Swing</code> application in an application-client container and use <code>@EJB</code> annotations. I tried successfully the first option but I had to copy all <code>glassfish</code> libraries to satisfy the dependencies(about 50MB, which I don't find normal). Now I try the second option. In <code>NetBeans</code>, I create a new <code>Enterprise Application Client</code> project, add the EJB project as a dependency and press run. I get the following exception: <code>Sniffers with type [ejb] and type [appclient] should not claim the archive at the same time</code>. Now if I remove the <code>package</code> checkbox, next to the EJB project in the Project properties of application client, I get a different <code>ClassNotFound</code> exception of my remote interface.</p> <p>I feel kind of stuck:( Could some more experienced guys, tell me how do they access their EJBs remotely, using <code>Glassfish 3</code>? As I have written above, I succeed with the first option, but 50MB are too much in my opinion for a simple client.</p> <p>Edit: What approach would you choose for deployment and remote access from the client, if you have the business logic in <code>ejbs</code> on a remote server?</p> <p>Thanks for any suggestions you have!</p> <p>Wish you all the best, Petar</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload