-
1. Re: I just want to get started
juhalindfors May 5, 2003 1:13 PM (in response to jonathansinclair)Just pick any EJB book and create your archive and drop it into the deploy directory of JBoss. This will work as is. RMH 3rd edition comes with a JBoss specific workbook.
-
2. Further inquiries
jonathansinclair May 6, 2003 1:57 AM (in response to jonathansinclair)Is jBoss a purly EJB based system? I want to creat a business transaction that will take the data from one system process it, convert it and then output it into another system. Is this possible in Jboss. Is this possible with EJB's?
-
3. Re: Further inquiries
juhalindfors May 6, 2003 7:12 AM (in response to jonathansinclair)> Is jBoss a purly EJB based system?
No, it's a generic Java middleware platform.
> I want to creat a
> business transaction that will take the data from one
> system process it, convert it and then output it into
> another system. Is this possible in Jboss.
Yes. Don't have to even use EJBs to do it if you don't want to....
> Is this possible with EJB's?
... or if you do then stateless session is your best bet to go here. -
4. Re: I just want to get started
jonathansinclair May 7, 2003 2:55 AM (in response to jonathansinclair)> I want to create a
> business transaction that will take the data from one
> system process it, convert it and then output it into
> another system. Is this possible in Jboss.
Yes. !!!
Any pointers on how I can do this? Web-links? Tutorials? Examples?
I am coming from another middleware environment and trying to make the jump into jBoss is proving hard work at the moment! -
5. Re: I just want to get started
juhalindfors May 7, 2003 6:32 AM (in response to jonathansinclair)A good J2EE tutorial should get you started. I'm not sure about your exact requirements; reading - processing - inserting is a bit vague.
-
6. Re: I just want to get started
jonathansinclair May 7, 2003 9:08 AM (in response to jonathansinclair)Further explanation.
I want to read in a file from an SAP system IDOC format map some of the fields from the IDOC into an XML format and then output this data to an Oracle system.
Can i still just use a J2EE example for this? Involving beans? -
7. Re: I just want to get started
juhalindfors May 7, 2003 10:33 AM (in response to jonathansinclair)Easiest way is if you find a JCA (Java Connector Architecture) adapter for SAP (so you get direct security and transaction support at the J2EE level) to read the data, transform it and then either do JDBC directly to your Oracle DB with the insert, or if you plan on modifying the data later, write an entity bean that maps to Oracle.
So you do the application logic in a stateless session, set the transaction attribute in an XML descriptor for the session and you're done. Both the JCA adaptor and the entity will enroll into the same tx, no programming required.
If you don't have a JCA adaptor you need to find another way to connect to SAP (sockets?) and manage the transactions yourself in the code. You can still do this from a session bean (although strictly speaking the EJB spec prohibits I/O from within session bean implementation).
HTH -
8. Re: I just want to get started
jonathansinclair May 8, 2003 2:26 AM (in response to jonathansinclair)Thanks for your help. You have given me a good starting point. I am now feeling better about my leap into the jBoss world!
-
9. Re: I just want to get started
boniface May 16, 2003 4:29 AM (in response to jonathansinclair)Try this link too
It's good for getting started
http://www.roseindia.net/jboss/ -
10. Re: I just want to get started
magamaga Jun 9, 2003 9:21 AM (in response to jonathansinclair)Thanks Boniface
THIS TUTORIAL WORKS IN REAL WORLD !!!!!
My Setup:
win2k
ant1.5.2
jdk1.4.1_02
jboss-3.2.2RC1_tomcat-4.1.24
Try it folks !!! -
11. Re: I just want to get started
74greg Aug 19, 2003 4:17 AM (in response to jonathansinclair)I agree, this tutorial is excellent for a JBoss newbie.
I didn't have any trouble with the first example ("10 minutes guide to Ant")
I'm now working on the 2nd tutorial ("building web application with Ant and deploying on JBoss 3") to learn servlets and JSP on JBoss;
it's almost working, but i still have this pb when I run the example2:
After typping:
C:\anttest\example2>ant
I've got this message:
Buildfile: build.xml
init:
build:
[javac] Compiling 1 source file to C:\anttest\example2\build\src
[javac] C:\anttest\example2\src\HelloWorld.java:9: package javax.servlet does not exist
---------------------------------------------
My Setup:
winNT
ant1.5.4
j2sdk1.4.2
jboss-3.2.1_tomcat-4.1.24
---------------------------------------------
I'm sure it's a stupid question with a simple solution, but If anybody can helps me... -
12. Re: I just want to get started
badboy Aug 19, 2003 5:33 AM (in response to jonathansinclair)I think you did not put HelloWorld.java in folder /src/javax/servlet
and HelloWorld.java have a package
you may move package line or put this file in current folder. -
13. Re: I just want to get started
74greg Aug 19, 2003 7:55 AM (in response to jonathansinclair)Thanks BadBoy.
Actually I've found the pb.
I knew it has something to do with classpath declaration.
I just add this line to my classpath:
D:\j2sdkee1.3.1\lib\j2ee.jar
I didn't know the javax was in j2ee. -
14. Re: I just want to get started
cluelesssi Sep 10, 2003 9:24 AM (in response to jonathansinclair)I got the second example to build but when I put the EAR file in my JBoss deploy dir, I can see the jsp page but the servlet returns an error.
-----------
message /example2/servlet/HelloWorld
description The requested resource (/example2/servlet/HelloWorld) is not available.
--------------
Also a non-related problem is http://localhost:8080/ does not give me a management page.
Can any help?