• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb 2.1 with netbeans 7

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How to create a ejb 2.1 application with netbeans 7 ? How to create those remote interfaces and home interfaces and bean classes? Please help
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
help?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use NetBeans as a glorified text editor and create and edit all of the interfaces, classes and config files by hand. If you are learning EJB 2.1, that is the best way to learn anyway.

I won't ask the obvious question of why you want to learn EJB 2.1 and not 3.x when 2.1 is ancient technology...
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Thanks for the reply. I managed to create a EJB using netbeans, but now the problem is I don't know how to give the JNDI name
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you saying:

a) You don't know how to configure the EJB to have a specific name within JNDI?

or

b) You don't know what JNDI name was assigned to your EJB, and you need to know that so that your lookup code works?

If it is 'b', we would need to know the app server that you deployed to (each app server has tools to let you discover the name assigned)
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:Are you saying:

a) You don't know how to configure the EJB to have a specific name within JNDI?

or

b) You don't know what JNDI name was assigned to your EJB, and you need to know that so that your lookup code works?

If it is 'b', we would need to know the app server that you deployed to (each app server has tools to let you discover the name assigned)


Thanks a lot for the reply! I have created another thread in http://www.coderanch.com/t/565416/EJB-JEE/java/EJB-NullPointException few days back

That thread is all about this issue, I believe the NullPointException is coming because of the JNDI case. Now I am using NetBean's built in GlassFish 3.1, but I will use whatever the container you want me to use, I will follow whatever the advice you give, please help me.... I am JUST 1 WEEK EXPERIENCED in EJB, so please help...
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created another thread in http://www.coderanch.com/t/565416/EJB-JEE/java/EJB-NullPointException few days back

The JavaEE forum is probably better for continuing this discussion since the issue is no longer with NetBeans.
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:
I have created another thread in http://www.coderanch.com/t/565416/EJB-JEE/java/EJB-NullPointException few days back

The JavaEE forum is probably better for continuing this discussion since the issue is no longer with NetBeans.


Of course, but I didn't get any reply yet

I can see "JBoss in Action" as your signature, so you might have a good knowledge about JBoss. I don't want to stick with GlasFish, so if my issue can be solved with JBoss or any other application server, please give me some hand.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic