J2EE application = EJB's + JDBC [message #132263] |
Fri, 12 August 2005 11:30 |
Eclipse User |
|
|
|
Originally posted by: claudia_rego.hotmail.com
Hello!!
I followed the WTP tutorial for building a simple EJB application. Now i
need more :D
I'm using a MS SQL Server Database. I will develop a J2EE application:
user opens the browser and asks for a diary report. The fields in these
report are filled with values stored in the DB.
I thought use JSP's+ servlets for Presentation Logic and EJB's for
Business Logic.
I'm using Eclipse3.1+WTP0.7+JBoss4.02.+XDoclet1.2.3.
How many beans I need? What type (session stateless??)??
The connection to DB with JBDC is made inside a bean?
thanks,
Claudia from Pt
PS - Any tutorial??
|
|
|
Re: J2EE application = EJB's + JDBC [message #132316 is a reply to message #132263] |
Fri, 12 August 2005 12:59 |
Eclipse User |
|
|
|
Originally posted by: jeff.duska_removethis.noaa.gov
Claudia:
It appears that you need more information on Java Enterprise application
development. I would suggest stopping at a local bookstore and looking
in the computer section. There are a number texts on J2EE development. I
recommend that you look at the Head First series. If you not familar
with J2EE development, I'm wondering why you need to create such a
complex solution.
HTH,
Jeff
Claudia wrote:
> Hello!!
> I followed the WTP tutorial for building a simple EJB application. Now i
> need more :D
> I'm using a MS SQL Server Database. I will develop a J2EE application:
> user opens the browser and asks for a diary report. The fields in these
> report are filled with values stored in the DB. I thought use JSP's+
> servlets for Presentation Logic and EJB's for Business Logic. I'm using
> Eclipse3.1+WTP0.7+JBoss4.02.+XDoclet1.2.3. How many beans I need? What
> type (session stateless??)?? The connection to DB with JBDC is made
> inside a bean?
> thanks, Claudia from Pt
> PS - Any tutorial??
>
|
|
|
Re: J2EE application = EJB's + JDBC [message #132342 is a reply to message #132316] |
Fri, 12 August 2005 13:38 |
Eclipse User |
|
|
|
Originally posted by: claudia_rego.hotmail.com
BookStores in Portugal are very poor in those kind of books :(
All my information is from Internet. (Mastering EJB's, J2EE Tutorial, etc,
etc)
Do you thing that is a complex solution? I would like some simpler!!!
I have very little experience in development, so any help is welcome.
Thanks,
Cláudia
|
|
|
Re: J2EE application = EJB's + JDBC [message #132512 is a reply to message #132342] |
Fri, 12 August 2005 22:10 |
Eclipse User |
|
|
|
Originally posted by: thisisnot.mymail.com
Hi Claudia,
I'm sure that all comments from newcomers to the J2EE platform using the
WTP are appreciated but there are many other newsgroups and books from
which you might learn more and better on how to develop j2ee apps. That
said, any idea or something connected to WTP itself would be good to put
here, any bug that you encounter in it it's good to report it on the
Bugzilla, any other stuff should not go to this group. That said we
appreciate you posts :)
Claudia wrote:
> BookStores in Portugal are very poor in those kind of books :(
> All my information is from Internet. (Mastering EJB's, J2EE Tutorial,
> etc, etc)
>
> Do you thing that is a complex solution? I would like some simpler!!!
> I have very little experience in development, so any help is welcome.
> Thanks, Cláudia
>
|
|
|
Re: J2EE application = EJB's + JDBC [message #133067 is a reply to message #132512] |
Tue, 16 August 2005 19:51 |
Eclipse User |
|
|
|
Originally posted by: g.ewald.arcor.de
Hi Claudia,
propably try to find out an own example. Use the others (J2EE Tutorial,
Mastering EJB´s, etc.) as some kind of help.
For myself I always write an address-management application to go deeper
into a new technology (I´ve have got many of address apps :-) ). For
example you could write a little address-application with jsp´s (or a
standalone client), a stateless sessionbean and an entitybean for a
person - for the design follow the facade-pattern (like the
roster-application in Sun´s j2ee-tutorial). This is quit simple and
leads you even to some important things of j2ee.
best regards
Gregor Ewald
Srgjan Srepfler schrieb am 13.08.2005 00:10 folgendes:
> Hi Claudia,
> I'm sure that all comments from newcomers to the J2EE platform using the
> WTP are appreciated but there are many other newsgroups and books from
> which you might learn more and better on how to develop j2ee apps. That
> said, any idea or something connected to WTP itself would be good to put
> here, any bug that you encounter in it it's good to report it on the
> Bugzilla, any other stuff should not go to this group. That said we
> appreciate you posts :)
>
> Claudia wrote:
>
>> BookStores in Portugal are very poor in those kind of books :(
>> All my information is from Internet. (Mastering EJB's, J2EE Tutorial,
>> etc, etc)
>>
>> Do you thing that is a complex solution? I would like some simpler!!!
>> I have very little experience in development, so any help is welcome.
>> Thanks, Cláudia
>>
|
|
|
J2EE application = EJB's [message #139207 is a reply to message #132263] |
Fri, 16 September 2005 15:30 |
Eclipse User |
|
|
|
Originally posted by: mounirh323.hotmail.com
hello
please i have a problem with Ejb cmp
i dont know where is the problem
can u help me?
************************************************************ ******************************************************
this is my clas who i want execute my Ejbcmp
public class main
{
public void afficherAgt()
{
try
{
//*InitialContext context = new InitialContext();
InitialContext ctx = new InitialContext(p);
System.out.println("conetxt initialisé");
AgtLocalHome agtLocalHome = (AgtLocalHome)ctx.lookup("java:comp/env/ejb/Agt");
System.out.println("EJB Agt Localisé");
Collection colAgt = (Collection)agtLocalHome.findAllAgt();
System.out.println("Collection d agents retournée");
Iterator iter = colAgt.iterator();
System.out.println("les noms des agents sont les suivants");
AgtLocal agtLocal = null;
while(iter.hasNext())
{
agtLocal = (AgtLocal)iter.next();
System.out.println(agtLocal.getNom());
}}
catch(Exception e)
{
e.printStackTrace();
}
public static void main (string []arg)
Main main=new Mainclass ()
mainclass.afficherAgt()
*******************************************
******************************************
after that i see this error
please help me !!
**************************************************
conetxt initialisé
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManag er.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext .java:255)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialCo ntext.java:292)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at personnel.Main.afficherAgt(Main.java:67)
at personnel.Main2.main(Main2.java:21)
|
|
|
|
Re: J2EE application = EJB's [message #139338 is a reply to message #139249] |
Sun, 18 September 2005 18:45 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
You're running the client, and it doesn't know which JNDI server to contact. You need to pass -Djava.naming. factory.initial= and -Djava.naming.provider.url= on the command line (or in the VM parameters) when the client starts up.
The values for these fields are appserver dependent, so you'll have to consult your server for more information. For example, connecting to a websphere instance, you'd use:
java -Djava.naming.factory.initial=com.ibm.Websphere.naming.WsnIn itialContextFactory -Djava.naming.provider.url=corbaloc:localhost:2809 MyClient
That said, this forum isn't really the right place to be asking those sort of J2EE questions; you might prefer to post to other J2EE related forums such as http://forum.java.sun.com/index.jspa
|
|
|
Powered by
FUDForum. Page generated in 0.03577 seconds