[jboss-user] [JBoss Portal] - Does dependency injection work in portlets?

croft do-not-reply at jboss.com
Wed Aug 13 18:26:00 EDT 2008


Does dependency injection work in JBoss Portal portlets?

I am trying to do something like this:

  |     public final class  MyPortlet
  |       extends GenericPortlet 
  |     {
  |       
  |     @Resource ( name = "jms/ConnectionFactory" )
  |     private ConnectionFactory  connectionFactory;
  |     
  |     @Resource ( name = "jms/Destination" )
  |     private Destination  destination;
  | 

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170445



More information about the jboss-user mailing list