aspose file tools*
The moose likes JBoss/WildFly and the fly likes I need help for deploying container managed beans  with hypersonic database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "I need help for deploying container managed beans  with hypersonic database" Watch "I need help for deploying container managed beans  with hypersonic database" New topic
Author

I need help for deploying container managed beans with hypersonic database

Jasmine kaur
Ranch Hand

Joined: Nov 25, 2003
Posts: 160
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


jasmine kaur
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I need help for deploying container managed beans with hypersonic database