Win a copy of Spring Boot in Practice this week in the Spring 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

I need help for deploying container managed beans with hypersonic database

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everybody ,
Iam deploying entity beans that is a container managed beans on Jboss3.2.5 and I want to know which files need to be config while deploying .
I have made a bean.class , home.class and remote apart from this I have made a META-INF folder under which I have saved the following files ejb-jar.xml, jboss.xml

A)ejb-jar.xml

<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>JasbirBean</ejb-name>
<home>playerhome</home>
<remote>player</remote>
<ejb-class>playerbean</ejb-class>
<persistence-type>Container</persistence-type>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>playerbean</abstract-schema-name>
<cmp-field>
<field-name>PlayerId</field-name>
</cmp-field>
<cmp-field>
<field-name>Name</field-name>
</cmp-field>

</entity>
</enterprise-beans>

<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>JasbirBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>

</ejb-jar>

b)jboss.xml

<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<jboss>
<enterprise-beans>
<entity>
<ejb-name>JasbirBean</ejb-name>
<jndi-name>player</jndi-name>
</entity>
<ejb-ref>
<ejb-ref-name>ejb/jasbir</ejb-ref-name>
<jndi-name>player</jndi-name>
</ejb-ref>
</enterprise-beans>
</jboss>


please tell me is there any file need to be added apart from ebj-jar.xml , jboss.xml file as Iam doing this XMP example with Hypersonic database.
Please tell me if anyother file need to be added and if it is then which other files and tags are required so that I can run my CMP example in JBOSS.
Do i need to make changes in standard-jboss-cmp.xml file or not
Thanks in advance.
Jasbir
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic