Re: EJB in tomcat

2004-11-29 Thread Peter Mengell
RTFM

On Monday 29 November 2004 09:30, [EMAIL PROTECTED] wrote:
 Can EJB's be  deployed in tomcat ??


 Birendar Singh Waldiya


 DISCLAIMER: The information contained in this message is intended only and
 solely for the addressed individual or entity indicated in this message and
 for the exclusive use of the said addressed individual or entity indicated
 in this message (or responsible for delivery of the message to such person)
 and may contain legally privileged and confidential information belonging
 to Tata Consultancy Services Limited. It must not be printed, read, copied,
 disclosed, forwarded, distributed or used (in whatsoever manner) by any
 person other than the addressee. Unauthorized use, disclosure or copying is
 strictly prohibited and may constitute unlawful act and can possibly
 attract legal action, civil and/or criminal. The contents of this message
 need not necessarily reflect or endorse the views of Tata Consultancy
 Services limited on any subject matter. Any action taken or omitted to be
 taken based on this message is entirely at your risk and neither the
 originator of this message nor Tata Consultancy Services Limited takes any
 responsibility or liability towards the same. Opinions, conclusions and any
 other information contained in this message that do not relate to the
 official business of Tata Consultancy Services limited shall be understood
 as neither given nor endorsed by Tata Consultancy Services Limited or any
 affiliate of Tata Consultancy Services Limited. If you have received this
 message in error,  you should destroy this message and may please notify
 the sender by e-mail. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: EJB in tomcat

2004-11-29 Thread Mark Thomas
 Can EJB's be  deployed in tomcat ??

No. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: EJB in tomcat

2004-11-29 Thread Phillip Qin
EJB needs EJB container. Tomcat is a servlet/jsp container. However, you can
find enterprice beans through naming lookup.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: November 29, 2004 2:55 PM
To: 'Tomcat Users List'
Subject: RE: EJB in tomcat 


 Can EJB's be  deployed in tomcat ??

No. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:41ab7ede154252114736115!


RE: EJB in tomcat

2003-09-09 Thread Jeremy Whitlock
Anson,
The one I've used for over a year and a half is OpenEJB.  It's
an EJB container and is 100% pluggable into Tomcat.  Here is the url:

http://openejb.sourceforge.net

If you need any help, let me know.  Thanks, Jeremy

-Original Message-
From: zeallousbigpond.net.au [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 08, 2003 6:17 PM
To: [EMAIL PROTECTED]
Subject: EJB in tomcat

hi,

 I would like to ask, can Tomcat work with Enterprise 
Javabeans? 'cause I read from the Java site...it says that we need a 
BEA server? Is it necessary? Or tomcat it self already has those 
libraries.

Anson
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EJB in tomcat

2003-09-08 Thread Filip Hanik
there are plenty of open source EJB containers, Tomcat is not one of them.

www.jboss.org has been a popular choice

Filip

- Original Message - 
From: zeallousbigpond.net.au [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 08, 2003 5:17 PM
Subject: EJB in tomcat


hi,

 I would like to ask, can Tomcat work with Enterprise 
Javabeans? 'cause I read from the Java site...it says that we need a 
BEA server? Is it necessary? Or tomcat it self already has those 
libraries.

Anson
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EJB in tomcat

2003-09-08 Thread Marco Tedone
Well, Tomcat needs to 'colloquiate' with an application server (where EJBs
are deployed). The answer is yes, it's possible; all your application needs
to do is to establish a context with an application server and then it can
use the component deployed on application server generally using a lookup.

Here follow a snippet from a code:

InitialContext context = null;
//getJbossContext() sets up the correct property file and returns a context
initialized to that property file
context = getJbossContext();
Object node = context.lookup(sessionName);
PeopleDbManagerHome home =
(PeopleDbManagerHome)PortableRemoteObject.narrow(node,
PeopleDbManagerHome.class);
bean = home.create();
} catch (RemoteException e) {
printRemoteExceptionMessage();
return null;
}
Hope it will help,

Marco

- Original Message - 
From: zeallousbigpond.net.au [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 1:17 AM
Subject: EJB in tomcat


 hi,

  I would like to ask, can Tomcat work with Enterprise
 Javabeans? 'cause I read from the Java site...it says that we need a
 BEA server? Is it necessary? Or tomcat it self already has those
 libraries.

 Anson



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EJB from Tomcat

2003-02-13 Thread Andy Richards
Is this easier than using the jboss tomcat bundle?

i will read the article when i get a chance

andy

On Thu, 2003-02-13 at 14:54, David Blevins wrote:
 All,
 
 I wrote some time ago about the Tomcat/OpenEJB integration, which allows
 Tomcat users to start using EJBs from Tomcat without having to ditch
 your Tomcat installation and configuration.  Just like Tomcat is
 typically plugged into other app servers, OpenEJB is a plug-in for
 Tomcat.  Plugging it in isn't any harder than setting up a JDBC driver.
 
 Here is the article:
 http://www.onjava.com/pub/a/onjava/2003/02/12/ejb_tomcat.html
 
 Regards,
 David Blevins
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: EJB from Tomcat

2003-02-13 Thread David Blevins
Having never used the jboss tomcat bundle, I wouldn't be able to say. It
is very different though.

One thing different about this integration is that it isn't a bundle,
it's the ability to add EJB functionality into any Tomcat version you
want via a plug-in.  Which means you don't have to convince anyone to
switch platforms, etc.  You can just plug in OpenEJB and try it out for
a while, if you don't like it, just unplug it.  No harm done.

-David

 -Original Message-
 From: Andy Richards [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 9:05 AM
 To: Tomcat Users List
 Subject: Re: EJB from Tomcat
 
 
 Is this easier than using the jboss tomcat bundle?
 
 i will read the article when i get a chance
 
 andy
 
 On Thu, 2003-02-13 at 14:54, David Blevins wrote:
  All,
  
  I wrote some time ago about the Tomcat/OpenEJB integration, which 
  allows Tomcat users to start using EJBs from Tomcat without
 having to
  ditch your Tomcat installation and configuration.  Just
 like Tomcat is
  typically plugged into other app servers, OpenEJB is a plug-in for 
  Tomcat.  Plugging it in isn't any harder than setting up a JDBC 
  driver.
  
  Here is the article: 
  http://www.onjava.com/pub/a/onjava/2003/02/12/ejb_tomcat.html
  
  Regards,
  David Blevins
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: EJB from Tomcat

2003-02-13 Thread Will Hartung
 From: David Blevins [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 6:54 AM
 Subject: EJB from Tomcat


 All,

 I wrote some time ago about the Tomcat/OpenEJB integration, which allows
 Tomcat users to start using EJBs from Tomcat without having to ditch
 your Tomcat installation and configuration.  Just like Tomcat is
 typically plugged into other app servers, OpenEJB is a plug-in for
 Tomcat.  Plugging it in isn't any harder than setting up a JDBC driver.

This was confusing, but I see now.

I was confused because we use Tomcat everyday to talk to our EJB server.

THIS is simply Yet Another EJB server, not some magic interface to connect
Tomcat to an arbitrary EJB server.

The connectivity from Tomcat to the EJB side is pretty straightforward,
portable and should work if/when we try to connect to another app server.
(Plus we've refactored everything so we should only have to change one file
to handle any of the glue details).

But, thanx for the article anyways!

Regards,

Will Hartung
([EMAIL PROTECTED])




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: EJB from Tomcat

2003-02-13 Thread David Blevins
Right, this is an EJB container that is usable in Tomcat.  The
particularly neat thing is that the EJB container can run embedded
*inside* the same VM as Tomcat.  You can even configure OpenEJB to not
marshal calls to EJBs, basically treating your remote interfaces as EJB
2.0 Local interfaces.

In the end you get a single server that can run both servlets/jsp/ejb
together in the same VM with local optimizations.

-David

 -Original Message-
 From: Will Hartung [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 13, 2003 11:33 AM
 To: Tomcat Users List
 Subject: Re: EJB from Tomcat
 
 
  From: David Blevins [EMAIL PROTECTED]
  Sent: Thursday, February 13, 2003 6:54 AM
  Subject: EJB from Tomcat
 
 
  All,
 
  I wrote some time ago about the Tomcat/OpenEJB integration, which 
  allows Tomcat users to start using EJBs from Tomcat without 
 having to 
  ditch your Tomcat installation and configuration.  Just 
 like Tomcat is 
  typically plugged into other app servers, OpenEJB is a plug-in for 
  Tomcat.  Plugging it in isn't any harder than setting up a JDBC 
  driver.
 
 This was confusing, but I see now.
 
 I was confused because we use Tomcat everyday to talk to our 
 EJB server.
 
 THIS is simply Yet Another EJB server, not some magic 
 interface to connect Tomcat to an arbitrary EJB server.
 
 The connectivity from Tomcat to the EJB side is pretty 
 straightforward, portable and should work if/when we try to 
 connect to another app server. (Plus we've refactored 
 everything so we should only have to change one file to 
 handle any of the glue details).
 
 But, thanx for the article anyways!
 
 Regards,
 
 Will Hartung
 ([EMAIL PROTECTED])
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: pulling my hair out re: EJB in tomcat

2001-10-01 Thread mlamb


On Fri, 28 Sep 2001 [EMAIL PROTECTED] wrote:

 Now I just keep getting the java.lang.ClassCastException:
 javax.naming.NameClassPair on the sample's line:

   Object ref  = jndiContext.lookup(interest/Interest);

are you actually getting the classcast there?  or on a subsequent line
where its something like

  InterestHome iHome = (InterestHome) ref;

?  Does doing a

  InterestHome iHome = (InterestHome) PortableRemoteObject.narrow(
  jndiContext.lookup(interest/Interest),
  InterestHome.class);


Unfortunately, it's definitely happening during the lookup.  If the lookup
were to succeed, it would continue t0:
 InterestHome home = (InterestHome)
PortableRemoteObject.narrow(ref, InterestHome.class);
But it's not getting there.

- Marty