I am trying to connect JBoss 2.4.3 to oracle to use oracle to persist my BMP beans. I have tried following the method in the free docs. That did not seem to work at all.
I have also tried edited the jboss.jcml file as stated in an article on here. This leads to me seeing the oracle datasource in the web interface as
MBean Name: DefaultDomain:service=XADataSource,name=OracleGuide
However in my EJB when I do
Context initial = new InitialContext();
DataSource dataSource = (DataSource)initial.lookup("java:/OracleGuide");
I get a name not found exception.
What am I doing wrong? Should I be using a different path or are there other configuration settings I should be using?
Thanks
I fixed it now. I had not set up the naming correctly.