As far as I know, one difference is the way you are going to access your object.

If you use @Factory, you'll have to access it through the bean: 
#{myBeanName.myMethodName} (any first reference to myBeanName will trigger a 
call to the factory method)

Using unwrap, you directly use the bean name:  #{myBeanName} (the bean and any 
other methods remain hidden, only the result of the unwrap method is exposed).

There might be other differences, but I'm not aware of them...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061596#4061596

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061596
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to