Title: Message
Hi Louis,
 
Yep, you can do that in three ways.
 
1. Change the ejb-name from "Hello" to "helloDemo/Hello" in your ejb-jar.xml, then redeploy with the -a option.
 
2. Don't change your ejb-jar.xml at all, but simply deploy without the -a option. When it prompts you for a deployment ID for the bean, type "helloDemo/Hello".  If you take this route, you might want to add the -C option so you don't have to pick which container to put the bean into.
 
3. Crack open your deployed jar and edit the META-INF/openejb-jar.xml, that's where all the mapping info is.  The deploy tool really does nothing but create this file.  If you take a moment to learn the structure of the file, you'll never need the deploy tool again.  Just check the openejb-jar.xml into your cvs next to your ejb-jar.xml and pack it in the jar with Ant.  The only time you'll ever need to edit it is when you add/remove/rename a bean from your ejb-jar.xml or if you add/remove/rename a resource-ref in your ejb-jar.xml.
 
-David
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Louis Malenica
Sent: Wednesday, September 25, 2002 11:45 PM
To: [EMAIL PROTECTED]
Subject: [OpenEJB-user] HelloWorld example JNDI lookup

HI folks,

Out of curiosity, with the HelloWorld example, is it possible to map the "/Hello" JNDI lookup, to one such as "helloDemo/Hello".

So, in the client code:
Object obj = ctx.lookup("/Hello");
Becomes
Object obj = ctx.lookup("helloDemo/Hello");

I understand Jboss uses a jboss.xml congif file for such mappings in order to provide a namespace facility, is there anything similar with openejb?

Regards,

Louis.

// ---------------------------------------------------------------------
//
Redshift Systems – Web & Application - Development – Design – Programming
// E-commerce - Application Integration – Intranets – Databases
// Louis Malenica – BappSci(IT) – Principal - Analyst Programmer
//
[EMAIL PROTECTED]
// http://members.optusnet.com.au/redshift-systems
// ---------------------------------------------------------------------

Reply via email to