In wls when u define a Datasource, u can look it up using context.lookup("datasourcejndiname"). But in JBoss the lookup has to be conetxt.lookup("java:/datasourcejndiname") as it gets defined in the java namespace.
This makes the lookup code, app server dependant. Any suggestions has to how to avoid this so that the lookup code works on both app servers.
cheers
Vinay S