remove

2002-01-18 Thread Alexey Alexapolsky






RE: Lookup EJB's in another application

2002-01-17 Thread Alexey Alexapolsky
Title: RE: Lookup EJB's in another application





I manages to achieve this by adding a line to applications.xml


 ejb-module path=../applications/YP/YP-ejb.jar remote=false /


and then I get my ejbs from another app same as I do from standalone app ,
via Initial context


Don't forget to ejb declaration to web.xml of your web app


Regards,
Alexey
CodeCharge Support



 -Original Message-
 From: Patrik Strid [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 17, 2002 1:48 AM
 To: Orion-Interest
 Subject: Lookup EJB's in another application
 
 
 Hi,
 
 If you have two applications in the same orion
 container. One application with web components and
 another with just EJB's. From the application with web
 components, I want to lookup an EJB that is deployed
 in the other application - is that possible via the
 InitialContext or do I have to call it via an URL and
 getting the extra RMI call?
 
 I can get it to work using a provider URL to the other
 application, but using the InitialContext, the local
 context - it cannot find the bean, or more correct,
 the JNDI name could not be found.
 
 Any help is appreciated !
 
 Thanks,
 Patrik 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 





pls help register EJB in web app

2002-01-16 Thread Alexey Alexapolsky




Hello guys , asking 
for some help ...I get this error:"Error instantiating web-app JNDI-context: No location 
specified and no suitable instanceof the type 'yp.ypSession' found for the ejb-ref 
yp.ypSession"
1) I have this 
EJBworking well from standalone app
2) When I try to use 
it in simple JSP page , that I placed in default-webapp directoryI get the 
error above/*this is how I look it up*/Object homeObject = 
context.lookup("java:comp/env/yp.ypSession");

Can this be because beans are 
registeredin a separate application andI try to get them from 
another(default) application ?This 
is web.xml contents of my default-web app 
where this jsp page resides
ejb-ref
ejb-ref-nameyp.ypSession/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homeyp.ypSessionHome/home
remoteyp.ypSession/remote
/ejb-ref




setting up data-source: no cmt-dataSource/ejb-datasource

2001-10-23 Thread Alexey Alexapolsky




Hello 
guys,I've installed Orion to my system and trying to run 
hello-world app. It's using a simple CMP bean. I need to connect it to ODBC 
datasource. How do I create a datasource in data-sources.xml for existintg ODBC 
datasource ?This is what I have in data-sources.xml , but my Orion screen returns"Auto-deploying 
User-ejb.jar (orion-ejb-jar.xml had been updated since the previous 
deployment)... Error compiling 
file:/C:/j2ee/orion/applications/User/User-ejb.jar: jdbc/RegForm did not 
contain a cmt-dataSource/ejb-datasource"

Thanks in 
advance,Alexdata-source 
class="com.evermind.sql.DriverManagerDataSource" 
name="RegForm" xa-location="jdbc/xa/RegForm" 
ejb-location="jdbc/ejb/RegForm" location="jdbc/RegForm" 
connection-driver="sun.jdbc.odbc.JdbcOdbcDriver" username="" 
password="" url="jdbc:odbc://localhost/RegForm" 
inactivity-timeout="30"/

data-source 
class="com.evermind.sql.ConnectionDataSource" 
location="jdbc/RegForm"nameRegForm/namedescription 
RegForm SQL 
source./descriptionurljdbc:odbc:RegForm/urlconnection-driversun.jdbc.odbc.JdbcOdbcDriver/connection-driverusername/usernamepassword/password/data-source