-
Jul 23rd, 2007, 05:17 AM
#1
struts webapp+EJBProject+spring in netbeans5.5
Hi,
i am new to spring and EJB.In my web application access slsb from EJBProject to webapplication through sprring xml in web application.
<bean id="myComponent" class="org.springframework.ejb.access.LocalStatele ssSessionProxyFactoryBean">
<property name="jndiName" value="myComponent"/>
<property name="businessInterface" value="Mains.AccountHome"/>
</bean>
<bean id="myController" class="Data.Impl.EmployeeDAOImpl">
<property name="myComponent" ref="myComponent"/>
</bean>
in this
<property name="businessInterface" value="Mains.AccountHome"/>
"Mains.AccountHome" it is in EJBProject,the xml file is in my web application.i getter setter the property "mycomponent" in my IMplementation("Data.Impl.EmployeeDAOImpl") it is in web application.
getter setter property,
private AccountHome myComponent;
but i can't import the interface "AccountHome" in my web application because it is in another EJBProject.how to access the ejb beans
can anybady help me please!
Thanks in advance
Mahe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules