I want write 2 portlets that one of them work with database and theother work with web service .please help me to write connection withthem !
u should familar with Java SpecificationRequest(JSR168)...with this spec. u can write u'r portlet's...for connection to database also u can use from jdbc orORM Tools...
you have a portlet repository, hearhttp://labs.jboss.com/portal/index.html?ctrl:id=page.default.downloads&project=portletswap&category=.portletsthey can be deployed on the jboss portal, you can check the src, ithink they have a webservice portlet thair to.for database connection you can use connection poling that areprovided from the application server.