• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB deployment in jboss

 
Roshnara Rose
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

I'm just started to work in EJB 2 days back. I'm using jboss server. I'm trying with examples only. I can able to deploy an EJB by deploying jar in server/default/deploy and accessing the bean from command prompt.

I need to know how i can access an EJB from a servlet. Where i need to put servlets and jsps in jboss.

And also i want to access mySql from the EJB. How can i do that? By default it is accessing Postgrel DB. where it is located?

Hope you people can help me to clarify these bluffs...
 
Rajesh K. Ilango
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using MySQL from JBoss.
This requires creating datasource pointing to your MySQL Database.
You can find sample datasource descriptors at <JBOSS_HOME>/doc/example/jcs.


For accessing Beans from JSP and servlet, copy the code that you have written in the classes that you used for accessing from command prompt in servlet or JSP(as scriptlet).
 
Rajesh K. Ilango
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link should help.
http://docs.jboss.org/jbossas/getting_started/v4/html/db.html#d0e2029
 
Roshnara Rose
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajesh,

I need to use jboss as application server. And in jboss where i can put the jsp and servlet. The EJB jar i can put in server/default/depoly rt. But i need to invoke the EJB from the servlet. How it is possible.

Thanks,
Rose
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!