[jboss-user] [EJB3] - Re: EJB 3.1 beans in jars in a war packaged app do not get deployed

Marek Dec do-not-reply at jboss.com
Sun Nov 21 13:26:05 EST 2010


Marek Dec [http://community.jboss.org/people/marekdec] created the discussion

"Re: EJB 3.1 beans in jars in a war packaged app do not get deployed"

To view the discussion, visit: http://community.jboss.org/message/572128#572128

--------------------------------------------------------------
Hi,

Here goes the TestService:

package com.mytests.service;

import javax.ejb.Stateful;@Statefulpublic class TestService {

    @PersistenceContext    EntityManager entityManger;

    public String getText() {        Category cat = new Category();        entityManger.persist(cat);

        return null;
    }}


And here the AnotherService:

package com.mytests.core.dao;

import javax.ejb.Stateful;

@Statefulpublic class AnotherService {

    public void getTest() {        int i = 0;    }}



Now the web.xml header:

<?xml version="1.0" encoding="UTF-8"?><web-app xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee"      xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"      xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"      version="3.0">    <display-name>Web Application</display-name>


And I don't use the ejb-jar.xml file.

Does this seem OK?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/572128#572128]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101121/ff29af24/attachment.html 


More information about the jboss-user mailing list