Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Import javax.ejb cannot be resolved

843830Jan 31 2008
Hi,

There are some libraries missing in the following code.



package era.budget;
import javax.ejb.*;
import era.budget.BudgetVO;


public class BudgetItemVO implements java.io.Serializable

{

private Integer itemId;
private BudgetVO budget;
private int type;
private String itemDetails;
private int amount;


// -------------- BEGIN GET/SET METHODS --------------



public BudgetItemVO(Integer id)
{
this.itemId = id;
}

public BudgetItemVO()
{
}


public Integer getItemId()
{
return itemId;
}


public BudgetVO getBudget()
{
return budget;
}

public void setBudget(BudgetVO budget)
{
this.budget=budget;
}

public int getType()
{
return type;
}

public void setType(int id)
{
this.type=id;
}

public String getItemDetails()
{
return this.itemDetails;
}

public void setItemDetails(String details)
{
this.itemDetails=details;
}

public int getAmount()
{
return this.amount;
}
public void setAmount(int amount)
{
this.amount=amount;
}


}


As aresult of these missing libraries there are some compilation errors..Some of the errors are as follows


1)The import javax.ejb cannot be resolved
2)EntityBean cannot be resolved to a type
3)EntityContext cannot be resolved to a type
4)EJBLocalObject cannot be resolved to a type


Thanx & Regards
Maria.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2008
Added on Jan 31 2008
0 comments
293 views