[JBoss-user] jboss.xml for web app

2001-05-11 Thread Jason Trust

Which directory does the jboss.xml go in for web applications:

META-INF
or
WEB-INF

Since the web.xml file is in WEB-INF, I am unsure if it needs to go here to
be used, or in the META-INF.


Thanks,
Jason E. Trust


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] SessionBean or ConnectionCache Problems (not sure...)

2001-05-10 Thread Jason Trust

This is my first posting here, and I am pretty new at jboss, so be kind.

I have an application (EAR) that I have built in Sun RI and have working
nicely, and now I am trying to deploy it to jboss.  I have made some minor
modifications to the WAR xml file since tomcat is under the 2.2 Web
Application spec and Sun RI is using 2.3.  (jboss 2.2.1, tomcat 3.2.1, jdk
1.3)

Here are my issues, and I am not totally sure on this, since everything
deploys nicely and there is relatively little debug information to go on:
I cannot access my session beans or connection cache (not sure which).

Here is my code:


jboss.jcml
---
  !-- JDBC --
  mbean code=org.jboss.jdbc.JdbcProvider
name=DefaultDomain:service=JdbcProvider
 attribute
name=Driversorg.hsql.jdbcDriver,com.sybase.jdbc2.jdbc.SybDriver/attribut
e
  /mbean

  mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=ctpdb
attribute name=PoolNamectpdb/attribute
attribute
name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l/attribute
attribute name=URLjdbc:sybase:Tds:localhost:2638/attribute
attribute name=JDBCUseruser/attribute
attribute name=Passwordsql/attribute
  /mbean


ejb-jar.xml (for Press Bean)
---
?xml version=1.0 encoding=Cp1252?
!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'

ejb-jar
  descriptionno description/description
  display-namePress/display-name
  enterprise-beans
session
  descriptionno description/description
  display-namePress/display-name
  ejb-namePress/ejb-name
  homecom.ctp.corp.PressHome/home
  remotecom.ctp.corp.Press/remote
  ejb-classcom.ctp.corp.PressBean/ejb-class
  session-typeStateless/session-type
  transaction-typeBean/transaction-type
  security-identity
description/description
use-caller-identity/use-caller-identity
  /security-identity
  resource-ref
res-ref-namejdbc/ctpDataSource/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
res-sharing-scopeShareable/res-sharing-scope
  /resource-ref
/session
  /enterprise-beans
/ejb-jar


jboss.xml (for Press Bean)
---
?xml version=1.0 encoding=Cp1252?

jboss
  enterprise-beans
session
  ejb-namePress/ejb-name
  jndi-namePress/jndi-name
/session
  /enterprise-beans

  resource-managers
resource-manager
  res-jndi-namejava:/ctpdb/res-jndi-name
  res-namejdbc/ctpDataSource/res-name
/resource-manager
  /resource-managers
/jboss



Within my code, here is my lookups from both the JavaBean (to the Press
Bean) and from the Press Bean to the Connection Cache:

code from ShowPressBean.java
---
java.lang.Object obj = ctx.lookup(java:comp/env/ejb/Press);
PressHome pressHome = (PressHome)PortableRemoteObject.narrow(obj,
PressHome.class);


code from PressBean.java
---
ds = (DataSource) ctx.lookup(java:comp/env/jdbc/ctpDataSource);


Any help would be appreciated.

Jason E. Trust
Sun Certified - Java 2 Programmer
Sybase Certified - EAServer Developer

Corporate Technology Partners, Inc.
[EMAIL PROTECTED]
720.482.0706 x251


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user