finally i could make it run...
i found this:
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#POJOLocalEJB

if this is the only solution then its a bit annoying :(

i placed this in the ejb-jar.xml. enterprise-beans must be the first thing in 
the file.


  |     <enterprise-beans>
  |         <session>
  |             <ejb-name>TestAction</ejb-name>
  |             <ejb-class>test.TestAction</ejb-class>
  |             <ejb-local-ref>
  |                 <ejb-ref-name>Test-ejb/TestBean/local</ejb-ref-name>
  |                 <ejb-ref-type>Session</ejb-ref-type>
  |                 <local>test.TestLocal</local>
  |                 <ejb-link>TestBean</ejb-link>
  |             </ejb-local-ref>
  |         </session>
  |     </enterprise-beans>
  | 
test is the package
TestAction is the actionbean behind the webpage.
TestBean is the bean that shall be created by seam.
as you can see i could leave the jndi-pattern untouched. i tried to use

  |             <ejb-name>Component</ejb-name>
  |             <ejb-class>org.jboss.seam.Component</ejb-class>
  | 

instead of

  |             <ejb-name>TestAction</ejb-name>
  |             <ejb-class>test.TestAction</ejb-class>
  | 

so it would have made redundant <ejb-local-ref> entrys for the same ejb in 
different actionbeans unnecessary but it didnt work. perhaps somebody has a 
better solution but for the moment it works.

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

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

Reply via email to