ejb 2 « ejb « Java Enterprise Q&A





1. Startup bean not called    stackoverflow.com

I created a Java Web Application Project in NetBeans, and created a startup bean in it:

package malibu.util;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;

@Stateless
@LocalBean
@javax.ejb.Startup
public class Startup {
    @EJB
    ...

2. Invoke EJB3 by using reflection    stackoverflow.com

In EJB3, can we invoke its' method using java reflection? If not, can we using Spring to invoke EJB3 service method by passing service name, method name and approriate parameters???

3. Help in Learning Advanced JAVA?    stackoverflow.com

Currently am working on core java. I mean am working with normal java with some JDBC. I would like to learn more tech's on java and i learnt servlets and JSP ...

4. Is there a website or resource which has complete comparions of EJBs versions    stackoverflow.com

I am looking for a website/blog or a resource online which lists the comparison of all the versions of EJB till date. For example, from EJB 2.0 to EJB 3.1 and ...

5. SVN MyEclipse Issue    stackoverflow.com

I am facing a really really wierd problem with myeclipse! I have installed Myeclipse 8.6.1 version.Wanted svn plugin and hence installed subclipse.On installing subclipse, and on checking out the ejb project from ...

6. Ejb consumption in JDK1.4    stackoverflow.com

As a postlude to Consuming an EJB question. I have created an ejb on JBOSS AS 6.0 and am consuming it in a java client using the following code.

private ServiceLocator(String ...

7. EJB - Can you use a bean within a bean    stackoverflow.com

For example, can I do the following

@Stateless
@LocalBean
public class MyBean extends AbstractFacade<MyBeanEntity>
{   @PersistenceContext(UnitName='myPU")
    private EntityManager em;

    @EJB
    private MyBean2 bean2;
  ...

8. Java, EJB framework, RBAC    stackoverflow.com

Can any body give me idea how to do RBAC with the help of EJB framework? I am new in Java, so I need details description about EJB and RBAC.

9. Graniteds - ejb.Tide - Identity.hasRole() function - invalid arguments    stackoverflow.com

I have this block of actionscript code which is executed when a login is appempted. I an trying to reload a set of roles for a the user. I've added a ...





10. EJB 3 Static reference or Runtime lookup?    stackoverflow.com

I am calling an EJB from a POJO making a JNDI lookup.I want to know what is a better way to make the lookup and what are the implications of each ...

11. 2 WebApps sharing an EJB    stackoverflow.com

i am using Netbeans IDE and Glassfish server and i am new to EJB technology.I am having a little promblem though...Here is the thing: I have one EJB injected in a servlet ...

12. Class name of an EJB    stackoverflow.com

I have some code along the lines of this:

@EJB
protected SomeService service;

// Somewhere in a method
service.getClass().getSimpleName();
What I was looking for was the name of the EJB class, which in this case should ...

13. What is local/remote and no-interface view in Ejb?    stackoverflow.com

I am trying to understand what the purpose and why we need the different client views in EJB. Could someone try to explain?

14. The proxy object in EJB    stackoverflow.com

I am reading the Enterprise JavaBeans 3.1 book and I wonder if I have understood the concept of EJB proxy object correctly. I now know that it follows the proxy pattern ...

15. How to start a messageDrivenBean    stackoverflow.com

I have an web-application and inside the server-part I created a MessageDrivenBean in order to receive messages via JMS.

@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue =  javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = ...

16. What is the EJB 3.0 version of method ejbCreate    stackoverflow.com

I would like to migrate some old EJB 2.1 code to EJB 3.0, but there is some handling of configuration errors in the ejbCreate method. Is there an EJB 3 version ...





17. How to structure the content of EJBs    stackoverflow.com

I am making a simple CMS just for learning purposes and I have a question how I would organize it. I have an administration section where you can add new pages, ...

18. Cannot instantiate the type List    stackoverflow.com

I have the following code:

List<Produc> produc = new List<Product>();
The error:
Cannot instantiate the type List<Product>
Product is an Entity in my EJB project. Why I'm getting this error? Thanks.

19. I want an route to learn EJB in easiest way?    stackoverflow.com

Migrating from PHP to EJB , I have previous experience of PHP , C++ , and plane concept of java. But as i am reading EJB tutorials,I am not able to understand ...

20. Class variable in EJB 3 is thread safe?    stackoverflow.com

In servlet, because it's singleton except implement SingleThreadModel. Reference this article https://www.fortify.com/vulncat/en/vulncat/java/singleton_member_field_race_condition.html But in EJB 3, I cannot find a similar document. And because container will create a pool to ...

21. EJBs and Hot Sparing    stackoverflow.com

Im trying to implement a hot sparing method for availability, I have it in mind as follows:

  1. The client sends 3 identical requests, one for each server (we have 3, actually virtual ...

22. What's the life before EJB?    stackoverflow.com

I am reading a book on EJB. It list one advantage over the older techniques of EJB is that it free programmers from one specific application server vendor and its properietary ...

23. Finding whether dns caching working or not in EJB calls    stackoverflow.com

Is there way I can find out whether DNS caching is being done in client application side or not. The issue is that there was a fail-over of the servers but ...

24. Whats the difference between a EJB object and implementation bean?    stackoverflow.com

In this book Enterprise JavaBeans 3.1 they talk about EJB objects and implementation objects. I am referring to what I read about stateless session beans:

Once an instance ...

25. Return a list of objects when using JAX-RS    stackoverflow.com

How can I return a list of Question objects in XML or JSON?

@Path("all")
@GET
public List<Question> getAllQuestions() {
    return questionDAO.getAllQuestions();
}
I get this exception:
SEVERE: Mapped exception to response: 500 ...

26. EMF implementation works when called from EJB, but not when calling EJB from WAR    stackoverflow.com

This problem is somewhat complicated and I'm in a little over my head. I will try to describe it as briefly as possible. I have a J2EE application which runs on Glassfish ...

27. How to share an instance between multiple applications (web or ejb) running in the same JVM?    stackoverflow.com

I have to design a way to be able to share the same object between multiple applications. All applications will be on same JVM. They can be different war sides or ...

28. package javax.ejb does not exist    stackoverflow.com

I have opened a project in netbeans to view the project but there is a same error in most of the files. It says that "package javax.ejb does not exist". This ...

29. Pause the execution of a process for a while in ejb    stackoverflow.com

I think I may not be the first one with this problem. Sometimes, the user submits a bunch of data to the server, and these data is going to be displayed in ...

30. Spanning user information across multiple EJBs    stackoverflow.com

With javax.security.Principal you can retrieve the user information at any point by injecting the EJBContext with @Resource. What I am trying to do is add extra information which would be specific to ...

31. How to detect what class is used in proxy?    stackoverflow.com

For example I have proxy that is proxing interface CashManagment, toString of this proxy is somepackage.CashManagment:Stateless. I would like to know what real classes is being used by this proxy. I think ...

32. ejb classes    bytes.com

Hi, I'm in the process of building my project and this error keeps coming up. CHKJ2802E: class com.dwl.tcrm.businessServices.datatable.Interactio nBean, or one of its supertypes, cannot be reflected. Check the classpath. ...

33. javax.ejb.EJBException    bytes.com

100+ P: 563 oll3i re: javax.ejb.EJBException i changed some things in PhoneBean now it doesnt throw an exception but when i search the records it doesnt display anything what i get ...

34. EJB usage in a web system    bytes.com

Hi, I'm a working on a web system for my final year project and I'm using SpringMVC and Hibernate for this project. Since it is my final year project, for my ...

35. EJB    coderanch.com

36. Visual basic & EJB Connectivity    coderanch.com

37. ejb    coderanch.com

38. Proxy for EJB calls    coderanch.com

Hello All, I have a situation wherein I have one desktop common between two networks. I want to make EJB calls across these networks. One of the ways of doing so would be to have some kind of EJB Proxy(like we have HTTP proxy). I found a product called JProxy, which should cater to the need. But don't know credentials of ...

39. How to upload a file using IO in EJB    coderanch.com

40. ejb    coderanch.com

41. EJB and .NET    coderanch.com

42. Why doesn`t my @PersistenceContext & @EJB work???    coderanch.com

Hi Guys, i`m having a bit of a hard day, getting my annotations to work. I`m using glassfish b48. My EJB3.0 entity`s deploy fine, including a stateless session bean that is accessing these entity beans, i deploy this in a seperate jar. Then i have a webservice (jax-ws 2.0) that access the session bean and calls the methods on it. (seperate ...

43. EJB example "quickstart"! JB4+IAS4.5    coderanch.com

I just started to programming in EJB. I setted a Java Server by using IAS4.5. For the testing, I followed the example "quickstart" instruction and configed development env. However it didn't come out the right output when I finish my first EJB and compile successed. The exception I got is showing below, [windows error message] Program Error: java2iiop.exe has generated errors ...

44. ejb    coderanch.com

45. Look up code for EJB    coderanch.com

46. EJBs over internal firewalls    coderanch.com

We need to run a EJB over an internal firewall. We do NOT have a need to run across the EJB over the public internet. We understand that there are problems with IIOP (and RMI?) over the public internet, we believe that this is a different issue. We will have two Application servers on either side of a firewall. One will ...

47. How upload file using EJBs????    coderanch.com

48. EJB    coderanch.com

49. ejb    coderanch.com

50. EJB Handle from HttpSession    coderanch.com

I have searched around and haven't found any good documented code on how to set and then retrieve EJB handles through the HttpSession. Most of the stuff I have read so far is more discussions between if people should be using HttpSession and when to use that compared to using a SFSB. We have already decided on the design of our ...

51. Creating an EJB from Active Directory    coderanch.com

I need to pass parameters from Active Directory to Websphere. I was told to create an EJB from Active Directory to hold this info. From a form based login, I need to pass information that was not entered in the login to Websphere. In the login, the only information that will be passed is Userid. I also need to include other ...

52. how to call ejb in j2se..    coderanch.com

Well, I don't know much about EJB, but aren't they just classes that follow some specific conventions? As classes you can create EJBs using the new keyword. Perhaps this is a bit simplistic since I'm not entirely sure of the context where you will use this. After a bit more research, it looks like you can also use RMI to access ...

53. why ejb doesnt run in webserver    coderanch.com

To run servlets (and JSPs, which are compiled into servlets), you need a servlet container. A plain webserver is not enough. Tomcat is an example of a servlet container. To run EJBs, you need an EJB container. The EJB container provides the environment in which you can deploy EJBs and controls the lifecycle of the EJBs. Tomcat does not include an ...

54. Java 6 support for EJB 2.0    coderanch.com

Neither Java 1.4 nor Java 6 "have" EJB of any version. Those are JSE versions, while EJB is part of JEE. A Java 6 JVM can certainly run EJB 2 code, as long as the JEE server being used supports it. In general, JVMs are backwards compatible - whatever Java 1.4 can run, so can Java 5, and -by extension- Java ...

55. Ejb,J2ee    coderanch.com

56. loose class and EJB difference    coderanch.com

Well Nelson if u use a simple class in ur jsp by using , u would be using it as so called server side java Beans. Originally posted by Nelson Nadal: If a loose class is called from JSP or servlets is that consider as Java Beans? What is the difference of it from EJB? in what aspect? Is it the ...

57. package javax.ejb does not exist...please help!    coderanch.com

hello all, I am trying to compile my first EJB application but the compiler cannot find the javax.ejb package. I already have J2SE SDK installed and configured...it works fine. I suspect that this error is telling me that my CLASSPATH is not set properly but after lots of tweaking I can't figure out how to set it properly. thanks in advance...Tink ...

58. Help with EJB's    coderanch.com

59. What is difference between JavaClass and Beans and EJB?What are pros and cons ofthem?    coderanch.com

I think we're looking at three things: Java classes, Java Beans and Enterprise Java Beans. Right? All of these are Java classes. That's the only unit of compilation we have so all java code is in a class of some kind. Java Beans specify a few special things that the class must have: A no-args constructor and getters and setters that ...

60. ejb path    coderanch.com

Originally posted by Shane Warne: Hi Download JDK from Sun site and double click on the icon and it takes you through.Set classpath after that (optional,but you will have to give the path of the bin directory always otherwise) I did not get why you used EJB in subject line,perhaps in error Shane

61. The type javax.ejb.CreateException cannot be resolved    coderanch.com

Hi, when i try to compile the program,i found the error in line number 26.The error is "The type javax.ejb.CreateException cannot be resolved. It is indirectly referenced from required .class files" package com.bj.web; import com.bj.ejb.BillEJBContext; import com.bj.security.Crypto; import com.bj.security.CryptoHome; import java.io.PrintStream; import javax.naming.Context; import javax.rmi.PortableRemoteObject; import javax.ejb.*; public class CryptoClient { private CryptoHome home; private Crypto remote; private BillEJBContext bj; public ...

62. Need Help with figuring out the sequence to install EJB and WAR patches    coderanch.com

Hi I have about 5 software patches, let's call them. These patches represent a number of war and ejb files. What it is (I have posted on the EJB group but nobody ever responded, that's why I am here) is an application on GlassFish 2.1 bundled with NetBeans 6.7.1 with about a dozen or so WAR and EJB files that were ...

63. EJBs    dbforums.com

Hi, Is it possible to make a direct database connection from inside a CM bean? I have a bean that registers customers and stores their details in a database (Oracle 9i). The bean handles all the database access. I now want to enhance this bean and encrypt the credit card numbers using 3des and a key stored in the database. Can ...

64. Looking for a private tutor for EJB    go4expert.com

I need a private teacher for EJB. I am a cobol programmer with extensive experience in Cobol, CICS and DB2 and I want to switch to Java. I know Java well enough to write a simple application. I have some general knowledge about EJB. My IDE is IBM Rational Application Developer and Websphere is my server. My plan is to write ...

65. Quick scan of EJB3.0 Early draft    go4expert.com

The following was posted by Santosh K Panda on July 05, 2004 @ 10:01 AM in response to Message #128078 1 replies in this thread : Thought of sharing with you all ... " I took glimpse of the EJB3.0 specification. I always disliked EJB because it had got its own 1) Complex learning curve. 2) OOP-killer,can't use much of OOP ...

66. Cart of Purchase    java-forums.org

67. setRollbackOnly problem    java-forums.org

68. Accounts of users    java-forums.org

69. EJB, classes Model    java-forums.org

70. Why to Use J2EE and Option for this.    java-forums.org

Hi J2ee All, Please help me I have to prepare doc on j2ee? Why to use J2EE and option for this other's like J2ME,J2SE. Why to choose J2ee? I prepared like this below reg J2EE. Why to use/opt for this:- J2ee applications running on different operating systems and hardware, and helps to illustrate that the performance improvements are broadly applicable to ...

71. Web calendar    java-forums.org

72. Web Search    java-forums.org

73. javax.net.ssl.SSLHandshakeException:    java-forums.org

75. how to import a ejb bean in java file    java-forums.org

Dear Sir/Madam, I am having a java bean file named : CMSAccountPoolingEJBBean. I want to import this file in another java file. How do i write that? options are : 1. CMSAccountPooling 2. CMSAccountPoolingEJB 3. CMSAccountPoolingEJBBean My basic question is : Is it necessary to write 'EJB' or 'EJBBean' at the end in import? This is my first post. Kindly forgive ...

76. Virtual Machine and multicore system    java-forums.org

Hello I am posting this thread under Enterprise Java Beans because i did not find any forum for virtual machine or deployment related problems. I have build application for web deploy under tomcat linux os 4 core machine and 8 GB RAM 64 bit.I have configure 6 GB RAM for Tomcat by providing virtual machine argument in catlina.sh . i looked ...

77. How to include a J2EE-App into a Portal    java-forums.org

79. Apache Tapestry Creator to Speak on Clojure, Tapestry 5    java-forums.org

Apache Tapestry Creator to Speak on Clojure, Tapestry 5 Bangalore, December 10, 2008: If you are a Java developer building web-based applications and tired of the countless frameworks that promise you a slick UI fast but fail to live up to their promise, then switch to Apache Tapestry to get more functionality with less code. The creator of Tapestry, Howard Lewis ...

80. Difference between Javabeans and EJB    java-forums.org

81. Kaazing Founder Jonas Jacobi to speak on HTML 5, Comet, WebSockets, Future of the Web    java-forums.org

Kaazing Founder Jonas Jacobi to speak on HTML 5, Comet, WebSockets, Future of the Web Bangalore, December 10, 2008: Web applications have traditionally been seen as second tier citizens in our network infrastructure, not capable of fully participating in the back-end message infrastructure due to its stateless architecture. The founder of Kaazing, Jonas Jacobi, is coming this summer to India's biggest ...

82. Doubt    java-forums.org

83. Can we make Java Report just by Drag and Drop?    java-forums.org

Many Java reporting tools, especially those have some BI characteristic, often claim to end users that their products are simple to use. These reporting tool often promise that they can make a report just by drag and drop, and even allow end users to make various statistical reports follow their own inclinations. Has report development become so easily?!:confused: The fact is ...

84. How to use ejb in our project    java-forums.org

85. Properties inspector    java-forums.org

I recommend this: first I would define the cells (or the visibles/editable properties of the cells) as javabean properties. You can find a lot of information about java bean, but I can explain in a few words: javabean is a java class where their attributes are used as a properties (information) and each attribute or properties must be defined by two ...

86. Help with request.getParameter()    java-forums.org

87. javax.naming.NameNotFoundException: bean not bound    java-forums.org

I am trying to build an EE project that has a EJB module and a web module. I am using servlet as my client to call EJB. here is my code: public class WebClient extends HttpServlet { private Context ctx; @EJB HelloWorld bean ; public void doGet(HttpServletRequest request, HttpServletResponse response)throws IOException, ServletException { response.setContentType("text/html;charset=ISO-8859-1"); PrintWriter out = response.getWriter(); try { if ...

88. Suggested IDE for EJB 2.1 development    java-forums.org

Hi, I need to learn EJB for the 2.1 specification, and I am looking for one of those IDEs that have everything integrated and generate code, so I can read the help/tutorials included, make the examples and start from there. But all the IDEs I have downloaded generate code according EJB 3.0 specification (for example: Weblogic Workshop 10.3) and they don't ...

89. Java Next Button for displaying next row    java-forums.org

Java Code: private void displayCurrentRow() { //creating variable that will get colom values String initials; String nameDisp; String surname; String email; String company; String telephone; String fax; String physical_add; String street_name; String surburb; String city; String code; String postal_add; String post_str; String post_surb; String post_city; String post_code; String position; int company_id; int client_id; name1=jTextField45.getText(); if(!"".equals(this.jTextField45.getText())) { jTextField45.setText(""); //Clear the textField after ...

90. MultiThreadedHttpConnectionManager in EJB    java-forums.org

91. Issues Login using JAAS    java-forums.org

Issues Login using JAAS Hi, I am having an application with implements JSF with EJB3.0 and Shale as the controller. I am using Jboss 4.2.3 to implement JAAS feature. I have the required configuration like login-config.xml, jboss-web.xml and web.xml. I am using org.jboss.security.auth.spi.DatabaseServerLoginMod ule for authentication. WhenI try to login using login.jsf, the server log shows that the correct ...

92. how do i get input from barcode reader?    java-forums.org

i have developed an inventory system, i used jsp to display to the user, servlets to control and PostgreSQL for the database.., now i want to add barcode reader to input data from the product, the problems are: 1. where do i connect the barcode reader into my PC, which port, how much would it cost in USD? 2. how do ...

93. Multiple Process Creation in EJB3.0    java-forums.org

Hi all, I am working in Jboss 5.0.1, we are developing banking products... we are using EJB3.0 Stateless and Stateful session bean, we have lots of perfomance issue. we have plan to create multiple processor, it should be configurable, it's depends upon the memory size. So each processor, we will take one transaction request at a time can anyone give some ...

95. Classpath    java-forums.org

I wnt 2 know hw 2 set a classpath...... For running a text 2 speech convertor program, i followed d foll steps: 1)i ws needed 2 include freetts.jar & jsapi.jar in classpath, so i executd foll instruction on command prompt c:>set classpath=c:\pathwhere2filesarestored 2)next i executd d program c:>javac program.java nw it is compiling but while running d code it shows exception ...

97. reading values from config file    java-forums.org

98. Tables In Ejb3    java-forums.org

Hello I am working with EJB3 and I have the next doubt: I have in my dbase 3 tables with the same structure (Mov2005, Mov2006 and Mov2007) and the records be inserted in these depending of the year in the date of the movement. they all have the same structure, the ideal thing would be create the only entity that administers ...

99. java.lang.ExceptionInInitializerError    java-forums.org

08-03-2009 08:23 PM #1 liltitus27 Member Join Date Aug 2009 Posts 4 Rep Power 0 java.lang.ExceptionInInitializerError Alright guys, I got a tough one here. I'm trying to start up my server (JBoss 4.0) with a project attached to it. But, it won't - it gets to the deployment part, and blows up. Here's the stack trace from my log ...

100. not able to call the ejb    java-forums.org

Hi !! I am fairly new to EJB and I am getting a problem in calling the ejb through dependency injection The code is ( in pollclient class) try { // Get the context context = new InitialContext(); // Lookup the bean using its JNDI name remoteBean = (VotingRemote) context.lookup("Voting"); String vote = (String) candidateList.getSelectedValue(); } catch (Exception e) { System.out.println("Could ...