]
George Gastaldi closed FORGE-1803.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.5.1.Final
(was: 2.x Future)
Resolution: Done
EJBs are now created under .service package by default
Created EJB goes into the view package
--------------------------------------
Key: FORGE-1803
URL:
https://issues.jboss.org/browse/FORGE-1803
Project: Forge
Issue Type: Bug
Components: Java EE
Affects Versions: 2.5.0.Final
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Fix For: 2.5.1.Final
If I create a new project from scratch and add an EJB, the EJB is created under the
{{service}} package. But if I am on an already created project and do the same, the EJB is
created under the {{view}} package.
The example below show how I create a new EJB under the newly created {{test}} project
which ends up in {{service}} package. And then, I {{cd}} an already created project
({{cdbookstore}}) and the EJB is created under {{view}} :
{code}
[temp]$ project-new --named test
***SUCCESS*** Project named 'test' has been created.
[test]$ ejb-new-bean --named MyService
***SUCCESS*** EJB has been installed.
***SUCCESS*** EJB org.test.service.MyService created.
[MyService.java]$ cd ~~
[test]$ cd ../cdbookstore/
[cdbookstore]$ ejb-new-bean --named MyService
***SUCCESS*** EJB org.agoncal.training.javaee6adv.view.MyService created.
{code}