|
We are starting to put Xdoclet generated Session
Beans (see snip 1 below) onto WebLogic 6.1 and we are
getting Naming exceptions (see snip 2 below) when we call this Bean from a
jsp page (see snip 3) as a simple test. I'm wondering how to browse the comp:env
tree or how to write this xdoclet correctly as I have been referring to the
TellerBean example and trying to duplicate that. I'm also thinking the jsp is
perhaps not as simple as I've designed it here. TIA for any help. I'll provide
more info if needed and what I've tried. To be brief, that's all
folks!
////////////////////////////////////////SNIP
1///////////////////////////////////
/**
* * @ejb:bean type="Stateless" * name="cms/PersistenceFacade" * jndi-name="com/atser/ejb/PersistenceFacade" * * @ejb:ejb-ref ejb-name="cms/RfiHome" * @ejb:ejb-ref ejb-name="cms/Rfi" * @ejb:transaction type="Required" * @ejb:transaction-type type="Container" * @ejb:resource-ref res-name="middlegen.database" res-type="javax.sql.DataSource" res-auth="Container" * * @jboss:container-configuration name="Standard Stateless SessionBean" * @jboss:ejb-ref-jndi ref-name="cms/PersistenceFacade" jndi-name="ejb/cms/PersistenceFacade" * * @weblogic:pool * max-beans-in-free-pool="3" * initial-beans-in-free-pool="1" * */ ////////////////////////////////////////SNIP 2:
WebLogic command onsole ////////////////////////////////////
javax.naming.NameNotFoundException: Unable to
resolve comp/env/cms/PersistenceFacadeStatelessLocal Resolved: 'comp/env'
Unresolved:'cms'
; remaining name 'PersistenceFacadeStatelessLocal' at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:887) ////////////////////////////////////////SNIP 3: JSP
file //////////////////////////////////////
<%@ page
import="com.atser.interfaces.*,java.util.*,java.math.*,javax.ejb.*"%>
<% try
{ PersistenceFacadeStatelessLocalHome home = PersistenceFacadeStatelessUtil.getLocalHome(); PersistenceFacadeStatelessLocal persistence = home.create(); HashMap hm = new
HashMap();
hm.put("param1",new BigDecimal(6666)); persistence.storeData("Rfi",hm); hm = new
HashMap(); hm.put("param1",new BigDecimal(6667)); persistence.storeData("Rfi",hm); out.println("Stored! Check your database for 6666 and 6667"); } catch(Exception e) { e.printStackTrace(); } %> |
- RE: [Xdoclet-user] Problem in using the @ejb:home genera... Ara Abrahamian
- RE: [Xdoclet-user] Help...getting javax.naming.Nami... Grant Marblestone
- RE: [Xdoclet-user] Help...getting javax.naming.... Aslak Helles�y
