• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2EE Application- Where to Start?  RSS feed

 
Michael Malley
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I'm going to start off saying that I'm completely new to J2EE. I've never used it. However I did major in Computer Science and I'm pretty good with J2SE.

A little background:
I was tasked with creating an application that could take an Excel file, search for data within a table by getting the row given by a certain cell value in that row, then transferring a few values from the cells in that row into a Word document table. Basically I would like the user to be able to select the excel file they'll be using, and select the word file they want to transfer the data to by inputting a reqID # in the prompt, then submitting, and voila, the word document is populated. This is for transferring open job positions in the Excel file to a resume template in a Word file, so the format of excel files may change with different customers that submit the reqs- so I need to be able to modularly build the program and add logic for different input files when we get new customers.

My boss wants me to do this project with J2EE. I've been trying to read up on J2EE and how it works (different application layers, enterprise beans, client applications, applets, etc.) but I really can't seem to get a good grasp of where to begin with one of these applications. Additionally, a few questions arise: do I need to make a web-application if I use J2EE (I simply can't think of a need for a web-based app for doing this project)? And how would I organize such a program into the new multitiered application design specs for J2EE (I don't even have a persistent data layer- no need)? What's a good jumping off point- how can I even begin one of these projects in J2EE (I mean this with sincerity, as it doesn't seem that I can simply open up a file in NetBeans, code a few variables and methods into Main() and just hit compile)?

Any help and suggestions are greatly appreciated, and I do apologize if I seem like I'm asking too many questions. I'm willing to do the work (this is my job) but I don't want to start in the wrong direction, and I haven't been able to read any tutorials that have given me the examples and overview that I need.

 
Michael Malley
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to reply to the previous post to provide a more focused question, as I have been reading and found out how I'd like to structure my program. However, this is probably more suited for the EJB and other Java EE technologies forum, so if any mods can move the thread, I'd appreciate it, but until now I'll continue to ask the following question.

I've decided that I will use a combination of stateless and stateful session beans to provide the modularity for my program from a business logic perspective, and the GUI will be handled in the Client App.

Now, my problem. in NetBeans, I'm finding out that I can't add a regular Java application client to the project (the cup of java icon). It has to be a Java EE client app (the java cup with a bean next to it icon). But when I try to run my client app with a stateful session bean @local, I'm having issues.

So, I have an entity bean called ProgLogicBeanLocal.java (interface) and the corresponding ProgLogicBean.java. The interface has the method getHello() and the class file has that method implemented.
In my client (The Java EE App file that is a small coffee cup with a bean next to it icon), "TemplateFillerClient" I have Main and GUI class files. GUI doesn't do anything yet, and Main simply has:



I have my library for the application set up with the ProgLogic.jar already included.

I get the bellow error when I attempt to run TemplateFillerClient:



This is only the first part of my problem. The second part is that when I don't attempt to call getHello(), and I simply add my empty application client (and the session bean) to a Java EE project (the grey triangle icon) and run the project, I get the bellow errors:



I've searched tirelessly to find solutions to either of these problems, while also trying to gain a better understanding of what the problem might be. Help would be greatly appreciated. And an explanation would be worth the world to me
 
Paul Clapham
Sheriff
Posts: 22819
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Malley wrote:My boss wants me to do this project with J2EE.


You already seem to have identified the main problem with that idea, which is that the application isn't really suited to be a web application, and Java EE does pretty much force you into writing client-server applications which run over the network.

The other main problem with the idea is the "Java" half. Since your application is going to be messing about with Microsoft Office documents, you'd be better off choosing a platform which works well with those documents. Even though people have spent a lot of time writing Java interfaces to MS Office documents, the result is still clumsy compared to Microsoft's proprietary interfaces.
 
Michael Malley
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul, while I agree with your assessment (I had already gone ahead and coded the project using VB- really simple), I need to do it this way, simply because that's the req. While I understand that it will be a silly approach to do a web application for coding this project, I'll try to worry more about the logic of the code when I get there. Right now, even if I am able to convince my boss that it would be better to do this in other ways, it's very unsettling that I can't even get an empty project in J2EE to run. If anything, I need to at least start the project to get to a point where I can prove that it won't work out well.
 
Michael Malley
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to piece something together that wasn't actually a web app but I used beans to do it anyway. I'm marking this as resolved.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Please stop calling it "J2EE". This is the old name, it has been called "Java EE" for years now (since Java EE version 5) - J2EE is dead.
 
Michael Malley
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper de Jong wrote:Welcome to the Ranch!

Please stop calling it "J2EE". This is the old name, it has been called "Java EE" for years now (since Java EE version 5) - J2EE is dead.


Good to know- thank you. Java EE it is!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!