Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

weblogic-ejb-jar.xml prblems ....

Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I am constructing a small application which needs 3 Entity beans and a session bean ( the session bean calls the entity beans ).
I have deployed the Entity beans individually , and can access them thru a client (java client) .
In my Session Bean I call the Entity beans in the following manner
Object ref = environment.lookup("java:comp/env/ejb/VispohdrHome"); hdrHome = (VispohdrHome)PortableRemoteObject.narrow(ref,VispohdrHome.class);
this implies that in my ejb-jar.xml I have to inclued the following reference information ..............
<remote>vism.masters.vispocolor.Vispocolor</remote> </ejb-ref>
Now when i go to deploy my session bean , I get an error message saying that the EJB's mentioned in the <ejb-ref></ejb-ref> should be defined in the weblogic-ejb-jar.xml .
My question's Are
1) How do I inclued this information in the weblogic-ejb-jar.xml ( keep in mind that the Entity beans that the Session bean will access has already been deployed )?
2) Is There a better way to package the components ?

Thanking in advance
(Aanupam K)
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at the WL examples and at:
Taked from the wl 6.1 ejb2.0 examples:
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
"-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
"" >

"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic