users@glassfish.java.net

Re: Problem deploying same SSB class in different apps on Glassfish v3

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Jan 2010 10:34:23 PST

Hello,
thanks a lot for your reply.

I've tried with only sun-ejb.jar.xml and also with both that and ejb-jar.xml:

<ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
         version="3.0" xmlns="http://java.sun.com/xml/ns/javaee">
    <display-name>myApp</display-name>
    <enterprise-beans>
      <session>
        <description>Se necesita por el puto nombre especĂ­fico de Glassfish</description>
        <ejb-name>UserManager</ejb-name>
        <home>com.servengine.user.UserManagerLocal</home>
        <remote>com.servengine.user.UserManager</remote>
        <ejb-class>com.servengine.user.UserManagerBean</ejb-class>
        <session-type>Stateless</session-type>
      </session>
    </enterprise-beans>
</ejb-jar>

<?xml version="1.0" encoding="UTF-8" ?>
<sun-ejb-jar>
        <enterprise-beans>
                         <ejb>
                                         <ejb-name>UserManager</ejb-name>
                                         <jndi-name>myApp/UserManager</jndi-name>
                         </ejb>
         </enterprise-beans>
 </sun-ejb-jar>
<?xml version = '1.0' encoding = 'UTF-8'?>

I still get:
[[#|2010-01-26T19:23:51.387+0100|INFO|glassfishv3.0|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=25;_ThreadName=Thread-1;|Glassfish-specific (Non-portable) JNDI names for EJB UserManager : [com.servengine.user.UserManager#com.servengine.user.UserManager, com.servengine.user.UserManager]|#]


And keeps conflict with the other apps.

Am I missing something? Don't know if I need any other descriptor... (I am using new EJB 3.1 option to deploy EJBs in /WEB-INF/lib... hope this is not causing Glassfish to ignore sun-ejb-jar.xml )

Thanks for any help... I need to deploy multiple apps with same classes and just can't launch a JVM with a Glassfish domain for each. Oh God... don't want to go back to JBoss!! :-)
[Message sent by forum member 'icordoba' (icordoba_at_skios.es)]

http://forums.java.net/jive/thread.jspa?messageID=383085