• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB deployment in jboss

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic