File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does WL10 deploy both EJB2.0 and EJB3.0

 
Yan Zhou
Ranch Hand
Posts: 137
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Yan Zhou
Ranch Hand
Posts: 137
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic