sri
sri

Reputation: 43

error while creating session bean

i am trying the 'Hello World! with Remote Stateless Session Bean'example with glassfish3+ and netbeans 7.2 and while creating a session bean i have an error stating-"there is no suitable project available into which Remote interface could be stored. An open Ant-based Java Class Library project is required". what does this mean and how to resolve the problem and how can i proceed.does it require any additional installation.

Upvotes: 3

Views: 3498

Answers (1)

greenkode
greenkode

Reputation: 3996

Ok. So Netbeans tries to enforce best practices on you. in this case it is considered best practice to put your remote interfaces in a separate Java library, because other clients might use it. So Here's the step you should take.

Create a new Java Class Library Project enter image description here Right click on your EJB Module, Click properties and add that project to your EJB Modules library. enter image description here Now you should see your Library Class, when you create a new Session Bean with Remote Interface. enter image description here

Upvotes: 6

Related Questions