The file sun-ejb-jar.xml is optional since Java EE 5. There are various
ways to map an ejb reference to a target bean. You can take a look at
this section of EJB FAQ for a summary of it:
http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html#mappingRemoteejbdependency
If you use tools like NetBeans, it should automatically create a
sun-ejb-jar.xml (or glassfish-ejb-jar.xml) for you as needed.
- Hong
On 12/27/2011 11:38 PM, forums_at_java.net wrote:
> Hi Hong,
>
> Yes, there are some other beans also which are same as
> UserManagerBean. I'm
> new to Glassfish server. Is it required sun-ejb-jar.xml for every
> ejb-jar.xml
> file? Currenty I'm not using sun-ejb-jar.xml in this UserManager bean. If
> sun-ejb-jar.xml is required then how it created? is there any tool to
> generate this?
>
> Thanks & Regards,
>
> Mohit Kumar Joshi
>
>
>
>
> --
>
> [Message sent by forum member 'mohitkumarjoshi']
>
> View Post: http://forums.java.net/node/876859
>
>