users@glassfish.java.net

RE: Not all Beans are beeing registered during deployment Glassfish 3.0.1

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Sun, 3 Jul 2011 10:01:40 -0400

you can take adavatage of Glassfish autodeploy by placing your ejb.jar at
$AS_HOME/domains/domain1/autodeploy/hello_jar.jar
you can also deploy manually to the site..assume the name of the deployed ear artifact is 'hello'





http://developers.sun.com/appserver/reference/techart/deployment.html

when you have a properly packaged ear you can use maven-glassfish-plugin to deploy your ear to a running glassfish instance e.g. :
http://maven-glassfish-plugin.java.net/examples/complete.html

Martin Gainty
______________________________________________
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut ętre privilégié. Si vous n'ętes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert ŕ l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement ętre sujets ŕ la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.


> To: users_at_glassfish.dev.java.net
> Subject: Not all Beans are beeing registered during deployment Glassfish 3.0.1
> From: forums_at_java.net
> Date: Sun, 3 Jul 2011 08:19:59 -0500
>
> I have a problem with an EJB3 application and glassfish server 3.0.1 that
> ships with Netbeans 6.9.1. I am using stateless sessionbeans, with remote
> intefaces and local singleton beans in the project. The strange thing is,
> when I deploy the Application, no matter if I do it via netbeans oder the
> webinterface and the .jar file, it registers an arbitary number of beans, but
> never the whole number of beans coded in the Application. So it might be,
> that there are only 2 beans are beeing registered and after redeploy maybe 20
> but there are always some beans missing, and all that without any error
> message?! This behavior naturally leads to Problems when ohter beans try to
> look up for the missing beans via JNDI or dependency Injection. One time I
> had luck and all beans were deployed and the Application worked well on the
> server, so there are no problems with the the Application itself. So I blamed
> the glassfish installation and switched to an other computer -- with the same
> result. Any suggestions or assumptions how this can be?
>
>
> --
>
> [Message sent by forum member 'jcite']
>
> View Post: http://forums.java.net/node/818350
>
>