users@glassfish.java.net

Re: Deploying EJB3 Session Bean from external JAR file

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Nov 2007 09:35:10 PST

An ejb-jar can have either or both ejb-jar.xml and sun-ejb-jar.xml. Sun-ejb-jar.xml is the vendor-specific deployment plan where you can specify metadata specific to your server runtime environment. It's similar to Tomcat context.xml.

Given this bean class,
@Stateless
public class HelloBean implements HelloService {

the ejb-name is the default class name witout package (HelloBean). This is the cause of your deployment failure. You can customize it by
@Stateless(name="myHello")

To use ior-security-config in sun-ejb-jar.xml has nothing to do with whether you use ejb-jar.xml or not.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

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