since i can't use @ejb yet, and i don't want to litter the initial context 
throughout my code (old school), i figured i'd use spring to wire my ejb3 
stateless session bean to my action but i just get the following error:

 
  | 23:46:21,310 ERROR [[action]] Servlet.service() for servlet action threw 
exception
  | java.lang.reflect.UndeclaredThrowableException
  |         at $Proxy79.addTest(Unknown Source)
  |         at com.gwig.struts.action.TestAction.execute(TestAction.java:60)
  | 

...where .addTest is my stateless session bean method.

here is my spring config-pretty basic:


  |     <bean id="testStatelessService" 
class="org.springframework.jndi.JndiObjectFactoryBean">
  |             <property name="jndiName" value="gwig/TestSLSBLocal"/>
  |             <property name="resourceRef" value="true"/>
  |             <property name="proxyInterface" 
value="com.gwig.ejb.TestSLSBIF"/>
  |             <property name="lookupOnStartup" value="false"/>
  |     </bean>
  | 

this SLSB lookup works fine using the traditional initial context lookup stuff.
does the injection work with spring for ejb3's on jboss? has anyone done this? 
i'm using 4.0.4rc1...



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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to