RE: [JBoss-user] JNDI Name

2003-08-28 Thread Rod Macpherson
Okie dokie. Thanks, Rod -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 2:56 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JNDI Name No, you have to expose some interface yourself to access it remotely. alex Rod Macpherson

Re: [JBoss-user] JNDI Name

2003-08-28 Thread Alexey Loubyansky
otely? -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 4:37 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JNDI Name Everything under 'java:/' is not remotely accessible. alex Rod Macpherson wrote: JBoss is binding my datas

RE: [JBoss-user] JNDI Name

2003-08-27 Thread Rod Macpherson
esday, August 27, 2003 4:37 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JNDI Name Everything under 'java:/' is not remotely accessible. alex Rod Macpherson wrote: > JBoss is binding my datasource just fine and my webapp works but > trying > to connect from a stand-alone clie

Re: [JBoss-user] JNDI Name

2003-08-27 Thread Alexey Loubyansky
Everything under 'java:/' is not remotely accessible. alex Rod Macpherson wrote: JBoss is binding my datasource just fine and my webapp works but trying to connect from a stand-alone client outside of the server fails: 14:25:52,704 INFO [FoobarDS] Bound connection factory for resource adapt

RE: [JBoss-user] JNDI Name

2003-08-27 Thread Danny . Yates
Title: Message The java:/ context is only available within the same VM as the server.   -- Danny Yates   -Original Message-From: Rod Macpherson [mailto:[EMAIL PROTECTED] Sent: 27 August 2003 00:12To: [EMAIL PROTECTED]Subject: [JBoss-user] JNDI Name JBoss is binding

[JBoss-user] JNDI Name

2003-08-26 Thread Rod Macpherson
Title: Message JBoss is binding my datasource just fine and my webapp works but trying to connect from a stand-alone client outside of the server fails:   14:25:52,704 INFO  [FoobarDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=Foob

[JBoss-user] jndi name ignored

2003-08-04 Thread Juraj . Lenharcik
Hi, My following DD: BANFEJB ejb/sap/ek/BANFEJB ejb/sap/ek/local/BANFEJB When I call the jndi-name, I get an exception. But when I call the "BANFEJB" with JNDI I get the EJB. Whats wronge there? Juraj --

[JBoss-user] jndi name of the mysql database

2002-11-26 Thread linuxman
hi, I have a simple BMP to test jboss and mysql, but the problem is, I can access mysql server with the jboss specific database name java:/MySQL, but can not when I change to java:comp/env/jdbc/MySQL. here is my jboss.xml: . jdbc/MySQL java:/MySQL

Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-05 Thread Christine
Thanks a lot. Danch. Now, I am using: ctx.lookup("java:/Customer") and change "java:/DefaultDS" to "java:/Customer", my lookup code works fine. So I assumed if i change "java:/Customer" back to "java:/DefaultDS", I also can lookup for "java:/DefaultDS". I will try to use "java:comp/env/jdbc/Custmo

Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-03 Thread danch
You're close! See comments inline below. -danch Christine wrote: > Sorry for miscopy in my previous email! > > The code in my function is : >javax.naming.Context ctx = new InitialContext(); >DataSource dbs = (DataSource) ctx.lookup("jdbc/Customer"); the name should be "java:comp/env/

Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-01 Thread Christine
I am sorry to confuse you by my mistake. I have a database in MySQL called Customer, which is specified in jboss.jcml. DefaultDS org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl jdbc:mysql://localhost/Customer Now, I wanted to use bind my database Customer to JNDI server with name

Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-01 Thread David Jencks
Why should jdbc/Customer be bound? if your code is in an ejb, you wouldn' link from web.xml or jboss-web.xml but the ejb counterparts. If its in a servlet, looks like you want to look up jdbc/MilosDataSource david jencks On 2002.03.01 18:44:41 -0500 Christine wrote: > Hi, Since I didn't get any

[JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-01 Thread Christine
Sorry for miscopy in my previous email! The code in my function is : javax.naming.Context ctx = new InitialContext(); DataSource dbs = (DataSource) ctx.lookup("jdbc/Customer"); Connection aConnection = dbs.getConnection(); Statement QStatment = aConnection.createStatement(); Result

[JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-01 Thread Christine
Hi, Since I didn't get any reply, I am using another approach now. I changed my Customer Entity Bean. I removed the findMaxID method and add a function which uses JDBC connect to Database directly and get the largest ID for that Customer table. But now, I am getting error to find connect to the da

Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread David Jencks
I haven't looked at the Castor stuff at all ever, but I suspect it uses jndi binding because jndi is a required part of an app server whereas jmx is not. This makes something using Castor not so jboss-specific. However... I think the hot deploy is pretty jboss specific. david jencks On 2001.

Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Scott M Stark
MAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 17, 2001 5:10 PM Subject: Re: [JBoss-user] JNDI name for J2eeDeployer? > So what you guys are saying is I should do this: > > MBeanServer server = (MBeanServer) > MBeanServerFactory.findMBeanServer(null).iterator(

Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Frederick N. Brier
So what you guys are saying is I should do this: MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).iterator().next(); J2eeDeployer deployer = (J2eeDeployer)server.getObjectInstance( "service=J2eeDeployer" ); Sorry about my misconception. I had based my understanding

Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Juha-P Lindfors
On Mon, 17 Sep 2001, Scott M Stark wrote: > > There is no JNDI name for an MBean. Each MBean has a JMX ObjectName > by which it is accessed through a MBeanServer instance. JMX makes > no use of JNDI. Well, the RI doesn't make use of JNDI. That doesn't mean an implementation of JMX can't make us

Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Scott M Stark
ember 17, 2001 9:21 AM Subject: [JBoss-user] JNDI name for J2eeDeployer? > What is the JNDI name for the J2eeDeployer? I want to do: > > String deployerName = ??? > > J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup( > deployerName ); > > What is deployerName su

Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread David Jencks
Find it as an mbean, I don't think it is or should be in jndi. You can see how to do this from a client (from a server is almost the same, but simpler) in the (rabbithole) testsuite//test/JBossTestServices.java file. If you are doing this from a client, the Connector class may be in a differ

[JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Frederick N. Brier
What is the JNDI name for the J2eeDeployer? I want to do: String deployerName = ??? J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup( deployerName ); What is deployerName supposed to be? In the JMX HTTP interface it is listed under the J2EE heading with a hyper link of "se

Re: [JBoss-user] JNDI name bindings are not working properly on deployment

2001-05-31 Thread Selvarajah Vahees
Hi, having the jar files in the classpath without the DDs worked for me Thanks to Scott M Stark r vahees -Original Message- From: Gianni Gottardi <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, May 31, 2001 4:35 PM Subject: RE: [JBoss-use

Re: [JBoss-user] JNDI name bindings are not working properly on deployment

2001-05-31 Thread Selvarajah Vahees
Title: RE: [JBoss-user] JNDI name bindings are not working properly on deployment OK.fine that means if I am to make available my bean classes to my JSPs in embedded Tomcat, I have to make another jar file without DDs and put then in the classpath..right? ok..lemme try that   vahees

RE: [JBoss-user] JNDI name bindings are not working properly on deployment

2001-05-31 Thread Marko Strukelj
Title: RE: [JBoss-user] JNDI name bindings are not working properly on deployment You are talking about the OLD bean jndi. If you mean you've deployed a jar and all the jndi bindings were correct, then you changed something and restarted, but the changes don't seem to have effect.

Re: [JBoss-user] JNDI name bindings are not working properly on deployment

2001-05-31 Thread Scott M Stark
Show your ejb-jar.xml and jboss.xml deployment descriptors. - Original Message - From: "Selvarajah Vahees" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 31, 2001 1:27 AM Subject: [JBoss-user] JNDI name bindings are not working properly on depl

RE: [JBoss-user] JNDI name bindings are not working properly on deployment

2001-05-31 Thread Gianni Gottardi
Sent: jeudi, 31. mai 2001 10:27 To: [EMAIL PROTECTED] Subject: [JBoss-user] JNDI name bindings are not working properly on deployment Hello folks, I have a few EJBs and I am trying to deploy it on a JBoss2.2 with embedded tomcat3.2.1. My deployment goes fine. But my JNDI name bindings are not

[JBoss-user] JNDI name bindings are not working properly on deployment

2001-05-31 Thread Selvarajah Vahees
Hello folks, I have a few EJBs and I am trying to deploy it on a JBoss2.2 with embedded tomcat3.2.1. My deployment goes fine. But my JNDI name bindings are not getting place. It always puts one of my OLD bean JNDI on the Namespace. And also all my beans are getting that beans Namespace,which I

[JBoss-user] JNDI name bindings are not working properly on deployment

2001-05-30 Thread Selvarajah Vahees
Hello folks, I have a few EJBs and I am trying to deploy it on a JBoss2.2 with embedded tomcat3.2.1. My deployment goes fine. But my JNDI name bindings are not getting place. It always puts one of my OLD bean JNDI on the Namespace. And also all my beans are getting that beans Namespace,which I f

[JBoss-user] JNDI name list

2001-05-21 Thread wjlz
Hi All, I would like to get all available JNDI name on the sever. How can I do it? Is there an example code for a client? Thanks in advance. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ __

Re: [JBoss-user] JNDI name for EJB from another EJB

2001-04-29 Thread Guy Rouillier
rate the InitialContexts under a single JNDI provider to create a single JNDI namespace spanning multiple providers. You could use the ExternalContext mbean in JBoss to do this. == - Original Message - From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROT

Re: [JBoss-user] JNDI name for EJB from another EJB

2001-04-09 Thread Scott M Stark
You are supposed to define ejb-refs for any bean you access. This is specified in the chapter 14 of the EJB 1.1 spec. - Original Message - From: "Fredrik Ålund" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 09, 2001 4:15 AM Subject: SV: [JBoss-u

SV: [JBoss-user] JNDI name for EJB from another EJB

2001-04-09 Thread Fredrik Ålund
Scott M Stark Skickat: den 9 april 2001 12:27 Till: [EMAIL PROTECTED] Ämne: Re: [JBoss-user] JNDI name for EJB from another EJB Your not declaring an ejb-ref in your ejb-jar.xml descriptor as required: ejb/Actors Session

Re: [JBoss-user] JNDI name for EJB from another EJB

2001-04-09 Thread Scott M Stark
Ålund" <[EMAIL PROTECTED]> To: "Jboss-User" <[EMAIL PROTECTED]> Sent: Monday, April 09, 2001 2:31 AM Subject: [JBoss-user] JNDI name for EJB from another EJB Hi, As I understand it, when calling an EJB from another EJB you should use java:comp/env/ejb/EJBNAME, but this

[JBoss-user] JNDI name for EJB from another EJB

2001-04-09 Thread Fredrik Ålund
Hi, As I understand it, when calling an EJB from another EJB you should use java:comp/env/ejb/EJBNAME, but this doesn't work for me. I have one EnityBean called Actor and a SessionBean called ActorSB. From within the ActorSB I want to invoke Actor. When I use the non commented pease of code belo