jndi

NameNotFoundException when application name contains a period

I have a simple EJB app that used to work about 6 months ago. I installed the latest JDeveloper (11.1.1.3.0) and I'm trying to get it to work again, when I ran into this problem. Deployment fails on this line: TeacherManager teacherManager = (TeacherManager)context.lookup("Uran_2.0-TeacherManager#hu.elte.pgy2.BACNAAI.UranEJB.TeacherMan...

How do I configure a JDBC data source in JBoss AS 5.1.0.GA?

Could somebody point me at or post an example of configuring a data source for JBoss 5.1.0.GA? I am getting the following error when I try to hook up a data source to my web application in JBoss 5.1.0.GA using JNDI. startup failed due to previous errors java.lang.RuntimeException: mapped-name is required for jdbc/jos of deployment j...

EJB3 JSF application run in jboss 5

I am using JSF 1.2, EJB 3 on JBoss 5. This is my EJB: @Local public interface HelloServiceLocal { public void sayHello(String username); } @Stateless(name="helloService") public class HelloService implements HelloServiceLocal { public void sayHello(String username) { // business logic } } In a JSF backing bean ...

What to put into jta-data-source of persistence.xml?

What value should I place into <jta-data-source> of my persistence.xml? In glassfish admin panel I created a datasource name "abcDS". In my jndi.properties (inside src/test/resources) I defined it like this: [...] abcDS=new://Resource?type=DataSource abcDS.JdbcDriver=org.hsqldb.jdbcDriver abcDS.JdbcUrl=jdbc:hsqldb:mem:testdb abcDS.JtaM...

Is it possible to get "everything" from javax.naming.InitialContext?

Is it possible to retrieve "everything" (all names) from javax.naming.InitialContext? I didn't find any examples or documentation about it. ...

Where can I find RefFSContext source (from fscontext.jar)

I've downloaded glassfish source code but it's not in there. People used to point at http://java.sun.com/products/jndi/index.html#download but it seems this link has disappeared. Any idea ? Thanks ...