-
1. Re: how to see my ejb in the java:comp/env context??
adrian.brock May 24, 2004 9:39 AM (in response to chris75be)java:comp is only available inside the bean that defines it.
It is not available from a client, nor is the java:/ namespace.
You should use the global jndi name,
your <ejb-name> by default unless you change it with a jndi-name in jboss.xml -
2. Re: how to see my ejb in the java:comp/env context??
chris75be May 24, 2004 10:16 AM (in response to chris75be)Here's the part of the deployment descriptor:
<entreprise-beans> <session> <description> My first stateless session bean </description> <ejb-name>MySessionBean</ejb-name> <home>EJB.MySessionBeanHome</home> <remote>EJB.MySessionBean</remote> <ejb-class>MySessionBeanBean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> <jndi-name>MyBean</jndi-name> </session> </entreprise-beans>
Should I see "MyBean" in the Global JNDI in the console?
In the client, I have:
Object ref = (MySessionBeanHome)jndiContext.lookup("MyBean");
and I have an error message back saying that the component is unknown..
Do you know what my problem is?
Thank you
Christophe -
3. Re: how to see my ejb in the java:comp/env context??
adrian.brock May 24, 2004 10:18 AM (in response to chris75be)MySessionBean
-
4. Re: how to see my ejb in the java:comp/env context??
chris75be May 24, 2004 10:31 AM (in response to chris75be)I don't see MySessionBean in the Global JNDI context.
I also tried MySessionBean for the lookup without success...
What did you mean by MySessionBean ?
thanks -
5. Re: how to see my ejb in the java:comp/env context??
kabirkhan May 24, 2004 10:38 AM (in response to chris75be)Do you get errors during deployment?
-
6. Re: how to see my ejb in the java:comp/env context??
adrian.brock May 24, 2004 10:41 AM (in response to chris75be)Enough ping/pong.
You question has been posted many times before. Use search
or download the getting started guide.
Your response time to my answers suggests to me that you are not trying to
understand what is going on and you are just proxying your errors for me to solve.
That is not acceptable.
I said MySessionBean, because that is your ejb-name, see my first post.
So either:
1) You have a jboss.xml
2) Your bean is not getting deployed
3) You are connecting to the wrong server.
Show me you understand what is supposed to happen by posting relevent
configuration/logging or listing the bindings of your context - the latter
will show me you used search.
To understand why I am angry see the FAQ section about forums usage. -
7. Re: how to see my ejb in the java:comp/env context??
chris75be May 26, 2004 4:31 AM (in response to chris75be)I though my question was well related to "Installation and configuration".
Sorry..
I'll try to make it working by myself. Thank you.