• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Does WL10 deploy both EJB2.0 and EJB3.0

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic