ejb 1 « EJB « JSP-Servlet Q&A





1. Java EE suitablity for a social network using Cassandra datastore?    stackoverflow.com

We are in the process of making some important technology decisions for a social networking application. We're planning to have Cassandra(a NoSQL database to support efficient data storage). We would be using ...

2. How does the following JSP code works?    stackoverflow.com

<jsp:useBean id="addBean" scope="request" class="org.mypackage.products.add_product6_Variables" />
    <% addBean.initialize(); %>
    <jsp:setProperty name="addBean" property="*" />
    <jsp:useBean id="validateBean" scope="request" class="org.mypackage.products.form_validator" />
    <%
  ...

3. EJB, yes or no?    stackoverflow.com

I am developing a simple web application in JSP, which has an access to a MySQL database. I am using Hibernate libraries to connect to and use the database. So, my ...

4. JSP connect to EJB    seamframework.org

5. accesing ejb's from jsp    coderanch.com

6. EJB    coderanch.com

7. EJB reference not bound in JSP    coderanch.com

8. jsp/ejb connection complications, please help    coderanch.com

Hey, I deployed an EJB on a weblogic 5.1 server. Then I try to call it using JSP with no success. I have been trying for about 9 hours, any help will be greatly appreciated. The EJB is generated using webgain visualcafe's EJB wizard and it is then deployed to weblogic server using a series of sh scripts. The EJB has ...

9. x JSP's use one EJB ?????    coderanch.com





10. JSP to EJB    coderanch.com

11. Regarding JSP-EJB Communication    coderanch.com

13. EJB to JSP communication    coderanch.com

14. JSP and EJB    coderanch.com

15. package javax.ejb.*; does not exist    coderanch.com

I am new here and right now facing the problem of non-existing javax.ejb.*; I am using the HF to study the ejb. On the Chapter 1 everything went fine including compiling bean, the two interface classes, which means that the classpath(C:\Sun\J2EE\lib\j2ee.jar) is set correctly, the javax.ejb found. But...the AdviceClient fails the compilation with the "package javax.ejb does not exist" error. Can ...

16. Running the headfirst ejb 1st chapter    coderanch.com

Hi Singhi, This is the situation: C:\projects\advice> java -cp .;c:\Sun\AppServer\lib\j2ee.jar; AdviceAppClient.jar AdviceClient Both AdviceAppClient.jar and AdviceClient.class &.java are in C:\projects\advice Still that error: NoClassDefFoundError:AdviceClient is coming I hope you dont have a space between c:\Sun\AppServer\lib\j2ee.jar; and AdviceAppClient.jar. I guess not, otherwise youll get an error message about not being able to find the AdviceAppClient/jar class. One piece of advice I can ...





17. EJB Information    coderanch.com

18. enums in ejb queries    coderanch.com

19. Advantages of EJB compare to JDBC    coderanch.com

20. Problem in running ejb sample program    coderanch.com

21. A beginner problem in Ejb...    coderanch.com

22. converting standalone java app into EJB    coderanch.com

23. EJB THin layer    coderanch.com

24. Can I use ScriptEngineManager in EJB?    coderanch.com

25. Executing an EJB on a separate thread    coderanch.com

First, let be clear that I want to execute an EJB on a separate thread, not perform threading within an EJB as I know that violates the spec. I have a web page that makes a number of relatively expensive EJB calls. Each page requires from 2 to ? calls, each typically from 3 to 7 seconds each. As you can ...

26. unresolved ejb-link    coderanch.com

27. Accessing EJB    coderanch.com

28. Setting Cron Expression in EJB    coderanch.com

Hi I need to set the cron expression to run a method present in a Stateless bean for every 5 min. Before i used servlet form there I called. Now I need to do without using the servlet only ejb is there .There is no front end.It s a seperate process. So, can you please help me in how to set ...

29. Am I need to learn EJB ?    coderanch.com

30. New to EJB    coderanch.com

32. EJB - worth learning?    coderanch.com

33. Problem in running my first EJB program    coderanch.com

34. access ejb from outside container    coderanch.com

Hi all, Is it possible to access a stateless session bean or any other bean type from outside the EJB container? I tried to do a look-up of a deployed ejb in Weblogic from a standalone Java program and had some problems, below is the stack trace of exception: Exception in thread "main" java.lang.ClassCastException: Cannot narrow remote object weblogic.rmi.internal.BasicRemoteRef - hostID: ...

35. ejb from jsp    coderanch.com

36. Development Environment for JSP/JavaBeans/EJB    coderanch.com

I should coco (I've been evaluating WebGain Studio for two months now). If you're looking at comparing the a text editor and the SDK with WebGain Studio I think you'll find that WebGain Studio will be much more productive. An IDE which includes features such as StructureBuilder (tying your UML to your build) and integrated debugging of EJBs using WebLogic from ...

38. JSP and EJB    coderanch.com

39. JSP+EJB Project Ideas    coderanch.com

40. JSP to EJB    coderanch.com

41. JSP & EJB compatibility    coderanch.com

42. JSP and EJB    coderanch.com

43. Accessing an EJB through a JSP    coderanch.com

Hello Every one Can you help in geven below Topic. I deployed an EJB in WebLogic5.1 and Configured the property file of the weblogic to support JSP and I created a JSP file and plased it in the dir c:\weblogic\myserver\public_html. then I can access it from the localhost:7001\myjsp.jsp. But if i want to use that EJB i deployed in a JSP, ...

44. EJB and JSP    coderanch.com

45. JSP and EJB    coderanch.com

Honestly, i'd say that JSP and EJB do not go hand in hand. EJB are an extremely heavy-weight object, that can very much drag down the performance of anything that uses them. If you read some white papers from Sun, from even a year ago.. they would say things like "think of EJB's as a row in a table.". Now, a ...

46. Need of Job in USA/UK in Java/EJB/JSP    coderanch.com

47. Pass JSP input variables to an EJB.    coderanch.com

48. EJB's VS JSP's    coderanch.com

49. ejb one-to-many unidirectional ques    coderanch.com

Hi, Looking at the example in Oreilly ejb3.0 book, a customer can have a collection of phones. So lets take the implementation where the phone table includes a foreign key to the customer cable (no join table here). My question is, when I want to save a customer (which has collection of phone objects in it), is just doing manager.persist(customer) sufficient ...

50. why all classes are interfaces in EJB?    coderanch.com

52. SOA in EJB Model    coderanch.com

53. Ejb Beginner    coderanch.com

One more reason which I could see here . Enterprise Beans are not remote objects. Client and Enterprise beans do not share same heap and hence clients can not communicate directly to enterprise beans. So we have remote and home interfaces to safe guard enterpise beans from any direct interaction. As per Head First EJB, remote interface is like a body ...

54. simple EJB question    coderanch.com

55. Accessing a java class in a web application through EJB    coderanch.com

Most "web" applications are designed to respond to human interaction via web browser. You are attempting to call a set of objects (concrete observers) that have their class files stored in multiple web applications. Are all of the web applications deployed on the same machine as the EJB module? Describe the requirement(s) associated with what you are attempting to do. It ...

56. EJB Application with two data sources    coderanch.com

57. Problem with EJB Mapping    coderanch.com

58. How to run EJB?    coderanch.com

Hi guys I am preparing for SCBCD 5.0. I have coded many examples on EJB but I am unable to run them. I have tried many server(J2EE Application Server). But still no luck Even I could not run the example given in Head First EJB book. I have heard about many servers like.. 1-Weblogic 2-JBoss 3-OpenEJB I coded with notepad and ...

60. duplicate nick name as ejb references    coderanch.com

61. EJB usage in Job portal    coderanch.com

62. Using Data Objects(DTO) in EJB    coderanch.com

Hi, I created a EAR file which has one ejb JAR file and a WAR file. I have created a data object in web application (WAR file) which my servlet uses to pass the data to my ejb. Then my ejb gets all the information from the data object and does some business logic. When i deployed my EAR file the ...

63. ejb and properties    coderanch.com

John, The first thing you should do is write a simple, standalone Java program that loads file-based properties with the java.util.ResourceBundle class. Once you have this working correctly, then you should incorprate this code in your business object(s) (Session EJB). Then you must make sure that you are placing the properties file in a location where it (a) can be read ...

64. Needed an explanation about ejb...    coderanch.com

65. Caching objects in EJB and threading    coderanch.com

What's a correct way to maintain a cache of objects queried from the database and make it available to remote clients through a SLSB? Seems like it is very difficult to achieve this without violating EJB rules against managing threads and static variables (or by using singleton). In order to have objects shared by threads, they have to be stored in ...

66. help needed on ejb query    coderanch.com

67. Help needed on ejb query    coderanch.com

68. basic questions on EJB    coderanch.com

69. ejb fetchtype    coderanch.com

71. coding ejb    coderanch.com

72. Hello World with EJB    coderanch.com

Reza, it is nice to meet you. I already bought your EJB 3 book. Your book is very good, but I couldn't run any example in the book. The books use Derby as the database server. The sample code only provides the SQL script but doesn't tell the username and password for the database. Can you tell me ? Thanks Jeffry ...

73. Doubt on EJB home    coderanch.com

The purpose of the home object is to create the bean object in the container. The purpose of the interface object is to allow client objects to call the methods of the bean object (in the container.) If you remove the call to the home object and never create the bean in the container, then you will not be able to ...

74. EJB - A Component Architecture    coderanch.com

75. Number of EJB Home Instances    coderanch.com

76. Need Help Ranchers..EJB questions?    coderanch.com

77. need of EJB    coderanch.com

Vinoth, The first chapter of any decent EJB reference should answer this question for you. The first chapter of EJB 3 in Action certainly does. In short, EJB provides a number of component services geared towards the Java EE business/service tier including resource injection, transactions, security, persistence, remoting, web-services, interceptors, scheduling, state management, pooling, thread-safety, component registry, etc. Arguably, EJB 3 ...

78. simple EJB Query ?    coderanch.com

80. Threads in EJB ??    coderanch.com

public class MyManagedBean() { @EJB private MyEJBLocal myEJB; @PersistenceContext private EntityManager em; public class MyThread extends Thread { @PersistenceContext private EntityManager em1; @Override public void run() { try { MyEntity myEntity = new MyEntity (); myEntity.setID(1); myEntity.setName("helloThread"); em1.persist(myEntity); em.flush(); }catch (Exception e) {} } public void saveInAnotherThread() { MyThread t = new MyThread(); t.start(); }

81. New to EJB    coderanch.com

82. EJB outdated?    coderanch.com

LOL - amen for the desire to steer clear of flame wars :-) I would ask the folks that you are talking to why they believe EJB is outdated. In essense, EJB provides a number of services geared towards Java server-side business component development - transactions, persistence, dependency injection, component registry, lookup, remoting, web services, interceptors, scheduling, security, messaging, etc. I ...

83. new to ejb    coderanch.com

85. EJB newbie question    coderanch.com

I've had a bit of experience of EJB 2.1 in the past - using it rather than coding stuff up myself from scratch. Anyway, I was wondering whether I should go ahead and get training in EJB 3.0, or should I go along the track of training myself up Spring / Hibernate. Looking on the jobs market, there seems to be ...

86. server side validation using EJB    coderanch.com

88. Backup data-source in EJB    coderanch.com

89. EJB, JSPs and JDBCs    coderanch.com

91. EJB - Work with multiple persistence units    coderanch.com

Today, i make some tests: i work with Netbeans, GlassFish, Derby persistence.xml oracle.toplink.essentials.PersistenceProvider jdbc/CaddyFoxWarehouseDS false my entity bean: @Entity @Table(name="t_caddyfoxuser") public class CaddyfoxUser implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; protected String ...

92. The Life without EJB    coderanch.com

93. can't import javax.ejb.*;    coderanch.com

Thanks for replying , I want to use sun application server through netbeans. Which is also a big problem as after the plugins are installed it asks for the installation directory which I don't know. I had installed the RI mentioned in the Book but now its also not running and complains that Path was not found.

94. When to use     coderanch.com

Eshwar, EJB lookups are stored in the JNDI. You may not want your application to know the actual JNDI path. Especially since you could have two applications that use the same path. Using a reference provides a level of indirection so you don't have to change your code if the JNDI changes.

95. EJB classpath issues    coderanch.com

96. Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB    coderanch.com

Hi Hareendran, Thank you very much for your reply. Please find below, the output of your command. It wasn't successful. D:\HFCode\HFEcode\projects\advice>java -classpath AdviceAppClient.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;. AdviceClient May 18, 2009 11:42:01 AM com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase readGIOPHeader WARNING: "IOP00710220: (INTERNAL) Error in GIOP magic" org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 220 completed: Maybe at com.sun.corba.se.impl.logging.ORBUtilSystemException.giopMagicError(Unknown Source) at com.sun.corba.se.impl.logging.ORBUtilSystemException.giopMagicError(Unknown Source) at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPHeader(Unknown Source) at com.sun.corba.se.impl.transport.CorbaContactInfoBase.createMessageMediator(Unknown Source) at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readBits(Unknown Source) ...

97. How to log within EJB?    coderanch.com

98. Discussion: Multi-Threading & EJB    coderanch.com

100. EJB Packaging classloader..    coderanch.com