[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-30 Thread fhh
Is it possible that Toplink requires resource references as per EJB spec? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059374#4059374 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059374

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-28 Thread oskar.carlstedt
Hello again! If your datasource is correctly deployed, then I don't know. It might be a TopLink issue. This is the way to deploy a EJB3 jar file and connect it to a datasource. When using EJB3 and JPA you are not using Hibernate directly. You are using JPA, which JBoss in turn maps to

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-28 Thread oskar.carlstedt
Hi again! Good news! Take a look at this post on another forum http://forums.oracle.com/forums/thread.jspa?threadID=244914 //Oskar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058577#4058577 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-28 Thread ashusri000
Hi , thanks for the response but I had already been to this page with this exception and if you take a look at the code that is given there then you will notice that they have used a variable by the name mySession which they have provided no reference for as how did they implemented or

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi! It seems like JBoss can't find your datasource. It also looks like you are using toplink, are you? The example bellow is for the normal JBoss EJB3 (on top of Hibernate). Anyway, the configuration shall still be the same (please correct me if I'm wrong) except some of the properties in

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Sorry, now thing got messed up here. We take the examples once again. Look at the JNDI-names. These got messed in the previous post. //Oskar persistence.xml | persistence xmlns=http://java.sun.com/xml/ns/persistence; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread ashusri000
Hi oskar.carlstedt, First of all thanks a lot for your reply . Yes , I am using toplink here and I have already got the clue for ds.xml file but I want to where I should be putting this ds.xml file : 1.Should I pack it in the ear file along with the persistence.xml file

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread ashusri000
TO further add to the things I had already put the ds.xml file in the deploy directory but it when I go to access the entity it throws up this error : Internal Exception: javax.naming.InvalidNameException: Not a compound name: my-ejb-test 16:05:48,312 ERROR [STDERR] at

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi! The datasource file has its own deployment, so this file shall be put directly in the deploy folder. When doing this you'll see JBoss deploying the ds file. After the deloyment (takes a second or two) you can find the deployed datasource in the jmx-console

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread fhh
Why are you using TopLink? Regards Felix View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058214#4058214 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058214 ___ jboss-user

[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread ashusri000
Hi ! I am able to get the datasource being properly deployed and able to see it at the server console also. There is no error so far with this part . But when I go for deployment of the entity bean then it shows an error that this jndi name is not a compound name and then the call to