aspose file tools*
The moose likes BEA/Weblogic and the fly likes Does WL10 deploy both EJB2.0 and EJB3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Does WL10 deploy both EJB2.0 and EJB3.0" Watch "Does WL10 deploy both EJB2.0 and EJB3.0" New topic
Author

Does WL10 deploy both EJB2.0 and EJB3.0

Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
Hi there,

I have existing EAR that is EJB 2.0. I create an EJB 3.0 session bean, with existing 2.0 EJBs.

After I deploy the EAR, the WL console does not show the new EJB 3.0, it shows all existing EJB 2.0.

Is there anything special I need to do to get WL deploy EJB 3.0? Would the presence of ejb-jar.xml on existing EJB 2.0 cause WL to ignore new EJB 3.0 beans?

Thanks,
Yan
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

That depends. Did you recompile the EJB JAR with the new WL10 EJB compiler ? Have you made changes to the spec in the EJB-jar xmls ? You might need to use DD converter if you are moving between weblogic versions as well


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
I thought all I need to do for EJB3.0 is to use the standard Java compiler to compile it and deploy it.

There is no change in descriptor file because it is optional to EJB3.0. I am not converting existing EJB2.0 to EJB3.0, what I hope to do is to have existing EJB2.0 continue working as it, and add EJB3.0. What would be the process for that?
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Yan Zhou wrote:I thought all I need to do for EJB3.0 is to use the standard Java compiler to compile it and deploy it.

There is no change in descriptor file because it is optional to EJB3.0. I am not converting existing EJB2.0 to EJB3.0, what I hope to do is to have existing EJB2.0 continue working as it, and add EJB3.0. What would be the process for that?


Ah ! after perusing through your question I have come to realize that I misunderstood it. I am not sure about the interoperability of EJB 3 with EJB 2. I have not done it myself. Is it possible ? hmmm... I do not know that either. But why do you want to deploy different EJBs on the same app ? It is likely to cause maintenance headaches down the line.

Here is what you can do though. Try deploying the EJB 3 as a standalone and check if that deploys. This will help determine any interoperability problems. Compare with a sample EJB 3 in weblogic and check if yours is different by any means.

If you found the answer to your question let us know. I would like to know if EJB 2 and 3 can work together on the same app. In theory atleast, that might be possible
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does WL10 deploy both EJB2.0 and EJB3.0