aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes ejb 2.1 with netbeans 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "ejb 2.1 with netbeans 7" Watch "ejb 2.1 with netbeans 7" New topic
Author

ejb 2.1 with netbeans 7

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

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


Are you better than me? Then please show me my mistakes..
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

help?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

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...


JBoss In Action
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

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

Joined: May 14, 2008
Posts: 5830
    
    7

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

Joined: Oct 07, 2010
Posts: 499

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

Joined: May 14, 2008
Posts: 5830
    
    7

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

Joined: Oct 07, 2010
Posts: 499

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejb 2.1 with netbeans 7