service « EJB « JSP-Servlet Q&A





1. jboss + metro + ejb3= java.lang.NoClassDefFoundError: Ljavax/servlet/http/HttpServletRequest    stackoverflow.com

I am using jboss 4.2.3 with metro. I deploy an EJB 3.0 web service without error but when I try to call its wsdl it throws me: java.lang.NoClassDefFoundError: Ljavax/servlet/http/HttpServletRequest What is happening? I ...

2. Service-Endpoint Servlets, or directly EJB ?    coderanch.com

Hi, our mission is to design a classic web/servletcontainer + ejbserver + database application. In order to provide maximum future flexiblity for support of multiple client types, maximum interoperability, I chose to represent all services provided on the EJB container as web services. The "normal" way to do this, is by publishing th web services backed by the ejbs at servlet-container ...

3. calling an ejb from web(servlets/jsp/webservices)    coderanch.com

Hi , I am getting error when a server side(Webservices / serlvets/jsp) program try to call an EJB. I created a Test.jws (webservices) which is running in the Tomcat. then I created a EJB(Test.jar) bean which is running in sun one application server. I created a client program Test, It tries to communicate with Test.jws. It does. When the Test.jws is ...

4. Timer Services in EJb 3.0    coderanch.com

hi i am sending here the code by which i am creating the Timer and The Function Which i am calling By the Timer. //function to create timer public void createSheduleMaintenance() throws PisException,Exception {TimerService timer=ejbContext.getTimerService(); Calendar now=Calendar.getInstance(); timer.createTimer(now.getTimeInMillis()+1*60*1000, 24*60*60*1000,"hi"); } // method to execute after time expires @Timeout public void monitorearing(Timer timer) { // my Code to perform some Operation } ...

5. pros and cons of web service and EJB    coderanch.com

7. ejb3 timer services questions    coderanch.com

8. Implementing the EJB3 Web Service    coderanch.com

9. EJB3.0 Web Service RMI problem    coderanch.com





11. web service - EJB or servlet based?    coderanch.com

Hello, When designing a web service, which is better servlet-based or EJB-based? At this time, I have one insert which will be handled by a page-lock by the database. This means I have no transaction management in my web service method. The clients will be within our firewall, but may or may not be java J2EE clients. Because these clients are ...

13. EJB Timer Services Query    coderanch.com

14. Caller principle lost when Service EJB calls dao EJB using @RunAs    coderanch.com

Hi Reza, Thanks for your help. I would have though this method was still 'one way' so so speak -it's just I need the Principal set by JAAS to be retained, instead of changing the principal when 'RunAs' changes the role? I've posted the question on the jboss forums too, but no real answers are coming back unfortunately. How do you ...





17. EJB3 Timer service with non-serializable data    coderanch.com

So, upgrading and trying to replace quartz with the ejb3 timer service. Worked just fine for some cases, but the issue now is one of the jobs requires a reference to the request/response (used by a backend service to generate dynamic html emails). These objects are not serializable (so using info on the timer object is out). Looked into stateful beans, ...

18. Implicit and Explicit Services from EJB    coderanch.com

21. EJB Execution jumps to jsp page and gives Servlet.service() for servlet jsp threw exception    coderanch.com

Hi All, I am getting an Exception when im running my application: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException My Code is as follows: EJB Code: System.out.println("INFO: Executing ReportsEJB "); System.out .println("INFO:************* Executing EJB ********************** "); Session session = HibernateUtil.getSessionFactory().openSession(); Transaction t = session.beginTransaction() ; System.out.println("DEBUG : Session retrieved"); String sqlQuery1 = "select DATA_ID, avg(value)from Power p where LAST_UPDATED_ON between :fromDate ...

23. Can't figure out how EJb 2.1 SLSB method is exposed as web-service    coderanch.com

Hi, I have an EJB2.1 Stateless Session bean with one of it's methods being called by a web-service.The thing that is bugging me is that I checked the ejb-jar.xml and didn't see any other interface declarations except 'Remote' and 'Local'.Shouldn't one have like 'Web Service' or something like the EJB3 web service annotation? Or maybe I'm really confused and it's calling ...

24. Error while calling webservice client from EJB3 SLB Local interface.    coderanch.com

Hi, I am using JBoss 4.3 with Eclipse. I created a webservice client. And when I call it from a local interface, I am getting the following error: javax.ejb.EJBTransactionRolledbackException: org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl cannot be cast to javax.xml.ws.spi.ServiceDelegate21 at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87) at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:94) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:70) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) ...

25. Using EJB exposed as a service on SSL    coderanch.com

26. @Timeout and the EJB3 Timer Service    coderanch.com

28. EJB3.0 + web services    coderanch.com

30. EJB Timer service    coderanch.com

31. SOA/Web Services & Cloud Computing VS EJB 3.1    coderanch.com

Daniel, I think it depends on what you are looking for. That is, there are numerous competing technologies but each has a unique set of advantages and disadvantages depending sometimes on the perspective of the developer. Sometimes it is not what cannot be achieved, but how well or how easily is it achieved. I think the answer depends on the specific ...

32. @EJB in WebService Implementation class    coderanch.com