File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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: 157
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
 
Consider Paul's rocket mass heater.
 
subject: I need help for deploying container managed beans with hypersonic database
 
Similar Threads
please help me to run a conatimer managed bean with Jboss
Help me out for CMR deployment in CMP EJB......
Is there something wrong with this .ear archive?
Deployment Error : Class not found
I need help for deploying container managed beans with hypersonic database