[jboss-user] [JBoss Seam] - Third-party EJBs as seam components
patrickr
do-not-reply at jboss.com
Wed Aug 1 11:11:36 EDT 2007
Hi there,
Consider an EAR file containing a seam application and a third-party ejb-jar. Now, can I just use components.xml to give these EJBs a name and seam scope and then use them as usual seam components?
And what happens if I deploy the ejb-jar by itself? Would this work:@Name("myRemoteEJB")
| public class RemoteEJBManager
| {
| private RemoteInterface ejb;
|
| @Create
| public void create() throws NamingException {
| InitialContext ic = new InitialContext();
| RemoteInterface ejb = (RemoteInterface)
| ic.lookup(RemoteInterface.class.getName());
| }
|
| @Unwrap
| public RemoteInterface getEjb() {
| return ejb;
| }
|
| }
Thank your very much!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069690#4069690
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069690
More information about the jboss-user
mailing list