Skip to main content

@Stateful, @Local, @Remote, @EJB... what else?

3 replies [Last post]
pmrenaud
Offline
Joined: 2008-10-01

Well,

I'm working on a web application which need to be accessible from the web (@Remote) and local (@Local). I was using JNDI, but we are now using injection...
And it still not working...
The variable which is @EJB still getting a null value.

Any suggestions, tutorials or examples will be appreciate.

thks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pmrenaud
Offline
Joined: 2008-10-01

okay...

I'm using Glassfish 2.0.
The project is package to an .ear projet.
With JNDI lookup, no problem to access to the EJB.

here is the web.xml

--------------------------------------

ClientSession
Session
com.imagem.heredity.beans.ClientSessionRemote
com.imagem.heredity.beans.ClientSessionRemote


ClientSessionHome
Session
com.imagem.heredity.beans.ClientSessionLocal
com.imagem.heredity.beans.ClientSessionLocal

--------------------------------------

Martin Gainty

are you using Spring or some other Factory mechanism..if so which version?
Are you using an ORM such as Hibernate or iBatis..if so which version?
What are the (xml|properties) configuration parameters you are supplying for the factory?
Are you using a Datasource or some other type of resource to populate the factory?
?
Martin Gainty
______________________________________________
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents.
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.

> Date: Thu, 7 May 2009 13:37:49 -0700
> From: glassfish@javadesktop.org
> To: users@glassfish.dev.java.net
> Subject: @Stateful, @Local, @Remote, @EJB... what else?
>
> Well,
>
> I'm working on a web application which need to be accessible from the web (@Remote) and local (@Local). I was using JNDI, but we are now using injection...
> And it still not working...
> The variable which is @EJB still getting a null value.
>
> Any suggestions, tutorials or examples will be appreciate.
>
> thks
> [Message sent by forum member 'pmrenaud' (pmrenaud)]
>
> http://forums.java.net/jive/thread.jspa?messageID=345450
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Hotmail® goes with you.
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tuto...
[att1.html]

Felipe Gaúcho

are you splitting the interface with the implementation and including
it in the lib folder of the EAR ?

usually the problems are in the package and not in the code.......

are you using maven to pack ?

http://maven.apache.org/plugins/maven-ear-plugin/howto.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net