Implementation of EJB

I need some help with EJBs:

I can implement a Session EJB (in the admin console) and add it with no problems in "EJB -> add Set of Session EJBs"

I create a wrapper for that EJB (drag&drop in Page1) and use it.

If I modify the EJB (add a method) and implement it again (after I remove the old one), I can't use the new method...it appears in the list of methods but I can't bind it to a Table for example (it returns an ArrayList).

If I create a new project I can perfectly use that new method.

[sorry for my awful English]

Mono.

[580 byte] By [mono] at [2007-11-26 9:11:19]
# 1

Well, after hours, here is one posible solution:

To make the JSC recognize the modification made on an EJB you should:

- Not undeploy the old EJB, redeploy it instead.

- In the servers tab, refresh the Set of Session EJBs that contains your EJB.

- Drag and drop in the page one of the new methods you added, JSC will create a new EJB client.

- Delete the old EJB Client and change the new one's id to replace it. (Do not touch any of your datasources, because if you do you will loose all your references to the EJB).

- Clean and rebuild your project.

- Done!. You can now use your new methods!

Mono.

[Thx to MAL & JPB]

mono at 2007-7-6 23:31:18 > top of Java-index,Development Tools,Java Tools...