Re: Forwarding *.jsp from Apache to Orion

2002-03-19 Thread Daniel López

Hi Manish,

What we do in Apache, is a combination of mod_rewrite and mod_proxy, as
the latter is just able to proxy "directories" on its own.
Something like that:

...
RewriteEngine on
RewriteRule ^(.*)\.jsp$ /proxy_orion_server/$1.jsp [P]
...
ProxyRequests On
ProxyPass/proxy_orion_server/ http://www.orion.host:8080/
ProxyPassReverse /proxy_orion_server/ http://www.orion.host:8080/
...

I hope it helps,
D.

"Manish M. Shah" wrote:
> 
> Hi guys,
> 
> We have to use Apache as our web server and Orion as the application
> server. As a result, I need to forward all *.jsp files from Apache to
> Orion. I know about the proxy setup in Apache. I also know about
> forwarding *.html/*.jpg/etc files from Orion to Apache, but we need to
> forward from Apache to Orion. Has anyone had any luck or success with
> that?
> 
> Thanks.
> 
> Manish




Re: RMI client accessing JMS Topic

2002-03-19 Thread Vidur Dhanda

Hello Kesav,

Thanks for your reply.  It seems to me that the problem occurs when the client
is not a J2EE application client.  Hence, the application-client.xml is not
available.  Did you modify the JMSChat example to not use the java:comp/env
namespace?  I believe a RMI client will not have access to the java:comp/env
namespace.

Regards,
Vidur

Kesav Kumar wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Yes you can use RMIInitialContextFactory to get the connection factory.  I
> just modified the JMSChat program in the demo to use RMIInitialContext and I
> am able to get the factory and topic.
>
> Are you running this client program from different machine from where the
> server is running?
> I tested running the jmsclient on the same machine where the orion is
> running.  I hope there nothing difference in running locally and running on
> different machine.   Post your code along with jndi.properties it may help
> in further debugging.
>
> - -kesav kumar
>
> - - Original Message -
> From: "Vidur Dhanda" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 19, 2002 8:19 AM
> Subject: RMI client accessing JMS Topic
>
> > Hello,
> >
> > Is it possible for a RMI client
> > (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS
> > TopicConnectionFactory?  In my code, an ApplicationClient can access the
> > TopicConnectionFactory using the java:comp/env/jms context but an RMI
> > client hangs when it tries to access the same TopicConnectionFactory
> > through the jms/ context.
> >
> > In jms.xml, there is an entry for the TopicConnectionFactory as:
> > 
> > and the client code hangs on the call:
> > context.lookup("jms/notificationFactory") at RMIContext.lookup () [line
> > 92].
> >
> > The context is the same context that is used for correctly accessing
> > other resources such as looking up EJBs.
> >
> > Thanks,
> > Vidur
> >
> >
> > --
> > Vidur Dhanda
> > Epistemic Corporation
> > tel: 617/566-1252
> > fax: 509/693-1248
> > cell: 617/821-7115
> > ICQ: 129193878
> > [EMAIL PROTECTED]
> > www.epistemic.com
> >
> >
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use 
>
> iQA/AwUBPJgV/wFy+fQ1CDihEQJ2egCfbl/2D3Tl3Dw0DVOvlSCu57Prw+gAoJIB
> SBn6CF71MoE/Lyf4acDp75hn
> =TB/t
> -END PGP SIGNATURE-

--
Vidur Dhanda
Epistemic Corporation
tel: 617/566-1252
fax: 509/693-1248
cell: 617/821-7115
ICQ: 129193878
[EMAIL PROTECTED]
www.epistemic.com






Trying to get opensymphony transform tags to work with Orion 1.5.4

2002-03-19 Thread Jarrod Roberson

anyone use these custom tags, I am trying to get this installed and can not 
remember how I did it last time on 1.5.2?





Re: RMI client accessing JMS Topic

2002-03-19 Thread Kesav Kumar

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yes you can use RMIInitialContextFactory to get the connection factory.  I
just modified the JMSChat program in the demo to use RMIInitialContext and I
am able to get the factory and topic.

Are you running this client program from different machine from where the
server is running?
I tested running the jmsclient on the same machine where the orion is
running.  I hope there nothing difference in running locally and running on
different machine.   Post your code along with jndi.properties it may help
in further debugging.

- -kesav kumar

- - Original Message -
From: "Vidur Dhanda" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 8:19 AM
Subject: RMI client accessing JMS Topic


> Hello,
>
> Is it possible for a RMI client
> (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS
> TopicConnectionFactory?  In my code, an ApplicationClient can access the
> TopicConnectionFactory using the java:comp/env/jms context but an RMI
> client hangs when it tries to access the same TopicConnectionFactory
> through the jms/ context.
>
> In jms.xml, there is an entry for the TopicConnectionFactory as:
> 
> and the client code hangs on the call:
> context.lookup("jms/notificationFactory") at RMIContext.lookup () [line
> 92].
>
> The context is the same context that is used for correctly accessing
> other resources such as looking up EJBs.
>
> Thanks,
> Vidur
>
>
> --
> Vidur Dhanda
> Epistemic Corporation
> tel: 617/566-1252
> fax: 509/693-1248
> cell: 617/821-7115
> ICQ: 129193878
> [EMAIL PROTECTED]
> www.epistemic.com
>
>
-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use 

iQA/AwUBPJgV/wFy+fQ1CDihEQJ2egCfbl/2D3Tl3Dw0DVOvlSCu57Prw+gAoJIB
SBn6CF71MoE/Lyf4acDp75hn
=TB/t
-END PGP SIGNATURE-





RE: Concurrent calls to Session bean methods

2002-03-19 Thread The elephantwalker

Vani,

You can use the petstore trick. Use a facade class which sychronizes each
call to your session bean. That should do the trick.

This is a _famous_ problem with session beans.

regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Vani H.S.
Sent: Wednesday, March 20, 2002 12:04 AM
To: Orion-Interest
Subject: Concurrent calls to Session bean methods


Hello All,

  I have been trying to deploy an application consisting of session beans
and mdbs onto orion1.5.4.
  But I seem to run into deadlocks, because my session bean gets called
concurrently. Please can anybody can tell me if there is a setting to allow
concurrent calls so that, when a session bean method is called at one time,
the EJB container blocks the concurrent method call and allows it to proceed
when the previous call has completed?
  If not, how should this problem of concurrent calls be handled in orion?
  Please help.
Thanks,
Vani





The allow-concurrent-calls element specifies whether a stateful session bean
instance allows concurrent method calls. By default, allows-concurrent-calls
is false. However, when this value is set to true, the EJB container blocks
the concurrent method call and allows it to proceed when the previous call
has completed.





_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com






Re: RMI client accessing JMS Topic

2002-03-19 Thread Vidur Dhanda

Hi Peter,

The Orion console correctly shows jms/notificationFactory.  It is only when the
RMIContext.lookup happens that the client hangs.  I am beginning to suspect that
this is a bug.

Has anyone successfully used a TopicConnectionFactory via a RMIClient?

Vidur

"SAURUGGER,PETER (A-PaloAlto,ex2)" wrote:

> I found it useful to look at OrionServers console, under context; in
> general, it seems all objects get exposed under the root context with their
> full qualified pathname, in your case probably something like
> context.lookup("com.epistemic.notification.NotificationFactory") or whatever
> ...
>
> -Original Message-
> From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 8:19 AM
> To: Orion-Interest
> Subject: RMI client accessing JMS Topic
>
> Hello,
>
> Is it possible for a RMI client
> (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS
> TopicConnectionFactory?  In my code, an ApplicationClient can access the
> TopicConnectionFactory using the java:comp/env/jms context but an RMI
> client hangs when it tries to access the same TopicConnectionFactory
> through the jms/ context.
>
> In jms.xml, there is an entry for the TopicConnectionFactory as:
> 
> and the client code hangs on the call:
> context.lookup("jms/notificationFactory") at RMIContext.lookup () [line
> 92].
>
> The context is the same context that is used for correctly accessing
> other resources such as looking up EJBs.
>
> Thanks,
> Vidur
>
> --
> Vidur Dhanda
> Epistemic Corporation
> tel: 617/566-1252
> fax: 509/693-1248
> cell: 617/821-7115
> ICQ: 129193878
> [EMAIL PROTECTED]
> www.epistemic.com

--
Vidur Dhanda
Epistemic Corporation
tel: 617/566-1252
fax: 509/693-1248
cell: 617/821-7115
ICQ: 129193878
[EMAIL PROTECTED]
www.epistemic.com






RE: RMI client accessing JMS Topic

2002-03-19 Thread SAURUGGER,PETER (A-PaloAlto,ex2)

I found it useful to look at OrionServers console, under context; in
general, it seems all objects get exposed under the root context with their
full qualified pathname, in your case probably something like
context.lookup("com.epistemic.notification.NotificationFactory") or whatever
...

-Original Message-
From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 8:19 AM
To: Orion-Interest
Subject: RMI client accessing JMS Topic


Hello,

Is it possible for a RMI client
(com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS
TopicConnectionFactory?  In my code, an ApplicationClient can access the
TopicConnectionFactory using the java:comp/env/jms context but an RMI
client hangs when it tries to access the same TopicConnectionFactory
through the jms/ context.

In jms.xml, there is an entry for the TopicConnectionFactory as:

and the client code hangs on the call:
context.lookup("jms/notificationFactory") at RMIContext.lookup () [line
92].

The context is the same context that is used for correctly accessing
other resources such as looking up EJBs.

Thanks,
Vidur


--
Vidur Dhanda
Epistemic Corporation
tel: 617/566-1252
fax: 509/693-1248
cell: 617/821-7115
ICQ: 129193878
[EMAIL PROTECTED]
www.epistemic.com




Re: Soap with Axis ?

2002-03-19 Thread Eddie

Montebove,

Thanks for your response.

I understand what you mean, but you are going a bit too fast for me.
First you talk about a GLUE requirement. Where can I find more information
about this in the manual (I searched but haven't find it ... yet). Do you
mean implementing the Iservice interface ?
How do you invoke the EJB method ?: Using java reflection ?

Eddie


- Original Message -
From: "Montebove Luciano" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 3:19 PM
Subject: R: Soap with Axis ?


> Your facade class to EJB must:
> 1) implements an interface (GLUE requirement)
> 2) take a reference to an EJB (i.e. in the constructor)
> TestGlue tg;
> ...
> javax.naming.Context jndi = new InitialContext();
> Object obj = jndi.lookup("java:comp/env/ejb/TestGlue");
> TestGlueHome tgh = (TestGlueHome) javax.rmi.PortableRemoteObject.narrow(
> obj, TestGlueHome.class );
> tg = tgh.create();
> ...
> 3)call the EJB methods:
> 
> return tg.myMethod(myParam p);
> ...
>
> The updated link for Orion is
>
http://www.themindelectric.com/products/glue/docs/glue/guide/integrations/or
> ion/introduction.html
>
>
> Hope this Help
>
> Luciano
>
>
> -Messaggio originale-
> Da: Eddie [mailto:[EMAIL PROTECTED]]
> Inviato: martedì 19 marzo 2002 13.17
> A: Orion-Interest
> Oggetto: Re: Soap with Axis ?
>
>
> Montebove,
>
> How do you do the EJB facade thing you explain below ?
> Where can I see an example ?
> BTW: the second URl in you mail below doesn't work!
>
> Thanks for the response,
> Ed
>
> - Original Message -
> From: "Montebove Luciano" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 12, 2002 10:13 AM
> Subject: R: Soap with Axis ?
>
>
> > Why use an alpha-3 code (axis) when you can  have a fast production
> quality
> > soap implementation like GLUE for free?
> >
> > http://www.themindelectric.com/products/glue/glue.html
> >
> >
>
http://www.themindelectric.com/products/glue/releases/GLUE-2.0.1/docs/glue/g
> uide/hosting/orion.html
> >
> > Don't be confused from the fact that the standard edition (the only
free)
> > comes without EJB support. It means only that you can't expose
> > automatically, as a soap service, an EJB. But you can write a simple
Java
> > class that works as a facade for the EJB. As this class works inside the
> > GLUE servlet, you can use the standard syntax for lookup of EJBs you use
> in
> > servlets.
> >
> > Hope this help
> >
> > Luciano
> >
> > -Messaggio originale-
> > Da: Eddie [mailto:[EMAIL PROTECTED]]
> > Inviato: sabato 9 marzo 2002 20.05
> > A: Orion-Interest
> > Oggetto: Soap with Axis ?
> >
> >
> > Hellu,
> >
> > Does anyone has an example descriptor of a web service to connect a
client
> > to a EJB through SOAP (Axis of Apache) ?
> >
> > Most os the examples I find are not based on Ejb connections and on the
> > Atlassian site I saw a example for Apache Soap but I can't get it to
work
> > with Orion.
> >
> > Eddie
> >
> >
>
>
>




Forwarding *.jsp from Apache to Orion

2002-03-19 Thread Manish M. Shah

Hi guys,

We have to use Apache as our web server and Orion as the application
server. As a result, I need to forward all *.jsp files from Apache to
Orion. I know about the proxy setup in Apache. I also know about
forwarding *.html/*.jpg/etc files from Orion to Apache, but we need to
forward from Apache to Orion. Has anyone had any luck or success with
that?

Thanks.

Manish 





RMI client accessing JMS Topic

2002-03-19 Thread Vidur Dhanda

Hello,

Is it possible for a RMI client
(com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS
TopicConnectionFactory?  In my code, an ApplicationClient can access the
TopicConnectionFactory using the java:comp/env/jms context but an RMI
client hangs when it tries to access the same TopicConnectionFactory
through the jms/ context.

In jms.xml, there is an entry for the TopicConnectionFactory as:

and the client code hangs on the call:
context.lookup("jms/notificationFactory") at RMIContext.lookup () [line
92].

The context is the same context that is used for correctly accessing
other resources such as looking up EJBs.

Thanks,
Vidur


--
Vidur Dhanda
Epistemic Corporation
tel: 617/566-1252
fax: 509/693-1248
cell: 617/821-7115
ICQ: 129193878
[EMAIL PROTECTED]
www.epistemic.com




Re: Who starts an MDB's jms Connection?

2002-03-19 Thread Stephen Davidson

Dave Ford wrote:
> I am creating a JMS client that sends a message to an MDB. However, when I
> run it, it gives a QueueConnection not started exception, implying that the
> queue listener connection had never been started. Shouldn't this happen
> automatically with a message driven bean?
> 
> 
> Dave Ford
> Smart Soft - The Developer Training Company
> http://www.smart-soft.com
> 
> 
> 
> 

Maybe.
But you do need a "qcon.start()" in your init method in Orion.  Not in Jboss 3.0, 
however.

-Steve

-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208





Re: IDE

2002-03-19 Thread injobs


Please remove [EMAIL PROTECTED] or [EMAIL PROTECTED] from these
emails...



   

  "Sezhian G K (Contract)" 

  <[EMAIL PROTECTED]> To:   Orion-Interest 
<[EMAIL PROTECTED]>   
  Sent by: cc: 

  owner-orion-interest@orioSubject:  IDE   

  nserver.com  

   

   

  03/14/2002 10:55 AM  

  Please respond to

  Orion-Interest   

   

   





hi
all i am using intellij idea.
It completely superb.Its having a lot of
code generation,factoring capabilities.
Can i get information abt ur IDE plus

In intellij::
Has a best refactoring capability
1.The most best thing abt is while coding itself
half of the errors re highlighted
2.It has a quite good appearance-sliding windows
it doesn't occupy the working area
3.Go to reference and show quick javadoc are nice additional features


-ve features:
somewhat slow since it has been made in java
u have to run a inbuilt garbage collector may be once in 10 hrs


  -Original Message-
  From: "José Ant. Vargas Alvarado" [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 14, 2002 8:17 PM
  To: Orion-Interest
  Cc: "José Ant. Vargas A."
  Subject: Problems with com.evermind.server.http.TunnelServlet
  Importance: High

  Greetings.

  I read the solution for mapping some content from Orion to another
  web server like Apache, but I'm still having some problems trying to
  make it work.

  Right now I have an Apache web server with SSL support turned on (
  https://localhost/) and I have the Orion server in the same machine
  in port  (both in a Linux platform). Apache uses mod_proxy to
  send Java content to Orion like this:

  

  ProxyRequests On

  ProxyPass /servlet/ http://localhost:/servlet/
  ProxyPassReverse /servlet/ http://localhost:/servlet/

  ProxyPass /jsp/ http://localhost:/
  ProxyPassReverse /jsp/ http://localhost:/

  

  I need Apache to serve some special CGI and .html content; and some
  JSP and servlets need to "call back" to Apache to serve this content.
  So in global-web-application.xml ($ORION_HOME/config/) I turned on
  the tunneling servlet using the
  com.evermind.server.http.TunnelServlet as follows:

  ...
  
  tunnel

  com.evermind.server.http.TunnelServlet
  
  targetRoot
  https://localhost/
  
  
  ...
  
  tunnel
  /sp_*
  

  
  tunnel
  /pk_*
  

  
  tunnel
  /*.html
  
  ...

  ...but this is not working. I tried to request some page directly
  from Orion with http://localhost:/menu.html just as a simple test
  (this page is located in Apache document root, not in Orion), and got
  the following error:

  500 Internal Server Error
  java.net.ConnectException: Connection refused
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
  at
  java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:132)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:119)
  at java.net.Socket.(Socket.java:269)
  at java.net.Socket.(Socket.java:125)
  at com.evermind[Oracle9iAS (1.0.2.2) Containers for
  J2EE]

RE: RE: JNDI naming exception when running app on orion from JBuilder

2002-03-19 Thread [EMAIL PROTECTED]


try:

env.put(Context.PROVIDER_URL, "ormi://localhost/flexisale2");

instead of:

env.put(Context.PROVIDER_URL, "http://localhost/flexisale2";);

That should give you the correct provider. I still don't understand why you are 
needing to specify JNDI properties.  If you are running both your Servlet and your 
EJB's in the same instance of Orion specifying the Provider and Context factory should 
not be required.

I debug EJB's, JSP's (using development mode), and Servlets inside of JBuilder 5 
Enterprise without a problem.  I have never needed to create an application-client.xml 
file. You do need, however, to specify the ejb-ref in the web.xml file.


ejb/SPControllerHome
Session
uk.co.britannic.flexisale.server.spcontroller.SPControllerHome
uk.co.britannic.flexisale.server.spcontroller.SPController







Original Message:
-
From: DORAN, GRANT [EMAIL PROTECTED]
Date: Tue, 19 Mar 2002 10:39:13 -
To: [EMAIL PROTECTED]
Subject: RE: JNDI naming exception when running app on orion from JBuilder
  


Thanks,

I am using JBuilder 6 Enterprise (trial) and debugging using the Non-jpda
method described in the article that you mention.
I have managed to move on slightly from that problem, by changing the code
in the servlet to:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "http://localhost/flexisale2";);

// Get the initial JNDI context using our settings
Context context;
try
{
  context = new InitialContext(env);
}
catch (Throwable e)
{
  e.printStackTrace();
  throw new ServletException(
"Unable to get initial JNDI context: " + e.toString());
}

and by creating an application-client.xml file and puttnig it in the .war
file in the META-INF directory.
The xml file looks like this.


http://java.sun.com/j2ee/dtds/application-client_1_2.dtd";>

SPcontroller

ejb/SPControllerHome
Session
 
uk.co.britannic.flexisale.server.spcontroller.SPControllerHome
 
uk.co.britannic.flexisale.server.spcontroller.SPController



But when the line creating the new context is run;

  context = new InitialContext(env);

I get the following exception:

javax.naming.NamingException: META-INF/application-client.xml resource not
found (see J2EE spec, application-client chapter for requirements and format
of the file)
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(Unknown Source)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.(InitialContext.java:198)
at
uk.co.britannic.flexisale.server.test.TestServlet.init(TestServlet.java:46)
at com.evermind._ah._axe(Unknown Source)
at com.evermind._ah._fpd(Unknown Source)
at com.evermind._ah._cwc(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)

This error occurs even when I'm running orion by itself.
I've looked high and low and cant find any info that indicates why the file
can't be found.
Every example that I can find defines the provider_url as the root of the
web application, like this;

   env.put(Context.PROVIDER_URL, "http://localhost/flexisale2";);

If the application-client.xml file is in the META-INF directory of the web
application, why do I get this error?
Has anyone done this before?

Thanks,


Grant Doran
Contract Java Developer/Architect
Britannic Assurance



> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: 18 March 2002 15:05
> To:   Orion-Interest
> Subject:  RE: JNDI naming exception when running app on orion from
> JBuilder  
> 
> Are you running the servlet in orion or tomcat ?
> 
> Does the console in JBuilder say:
> 
> Orion/1.5.4 initialized (or whichever version you have)
> 
> You should be able to make it work by replacing the code:
> 
> java:comp/env/ejb/SPControllerHome
> 
> with:
> 
> SPControllerHome
> 
> It sounds to me like you are running tomcat which is external to your
> session bean (not in the container) and requires the external context
> lookup.  If this is the case, a better solution would be to debug the
> servlet in Orion which would mean starting Orion in JBuilder instead of
> tomcat.
> 
> Here is an article on how to set up JBuilder to debug Orion, I recommend
> the non-JPDA method.
> 
> http://kb.atlassian.com/content/orionsupport/articles/jbuilder-debugging.h
> tml
> 
> Tips:
> 
> 1. Make sure that your project does not include both the BAS4.5 library
> and the new Orion 

R: Soap with Axis ?

2002-03-19 Thread Montebove Luciano

Your facade class to EJB must:
1) implements an interface (GLUE requirement)
2) take a reference to an EJB (i.e. in the constructor)
TestGlue tg;
...
javax.naming.Context jndi = new InitialContext();
Object obj = jndi.lookup("java:comp/env/ejb/TestGlue");
TestGlueHome tgh = (TestGlueHome) javax.rmi.PortableRemoteObject.narrow(
obj, TestGlueHome.class );
tg = tgh.create();
...
3)call the EJB methods:

return tg.myMethod(myParam p);
...

The updated link for Orion is
http://www.themindelectric.com/products/glue/docs/glue/guide/integrations/or
ion/introduction.html


Hope this Help

Luciano


-Messaggio originale-
Da: Eddie [mailto:[EMAIL PROTECTED]]
Inviato: martedì 19 marzo 2002 13.17
A: Orion-Interest
Oggetto: Re: Soap with Axis ?


Montebove,

How do you do the EJB facade thing you explain below ?
Where can I see an example ?
BTW: the second URl in you mail below doesn't work!

Thanks for the response,
Ed

- Original Message -
From: "Montebove Luciano" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 10:13 AM
Subject: R: Soap with Axis ?


> Why use an alpha-3 code (axis) when you can  have a fast production
quality
> soap implementation like GLUE for free?
>
> http://www.themindelectric.com/products/glue/glue.html
>
>
http://www.themindelectric.com/products/glue/releases/GLUE-2.0.1/docs/glue/g
uide/hosting/orion.html
>
> Don't be confused from the fact that the standard edition (the only free)
> comes without EJB support. It means only that you can't expose
> automatically, as a soap service, an EJB. But you can write a simple Java
> class that works as a facade for the EJB. As this class works inside the
> GLUE servlet, you can use the standard syntax for lookup of EJBs you use
in
> servlets.
>
> Hope this help
>
> Luciano
>
> -Messaggio originale-
> Da: Eddie [mailto:[EMAIL PROTECTED]]
> Inviato: sabato 9 marzo 2002 20.05
> A: Orion-Interest
> Oggetto: Soap with Axis ?
>
>
> Hellu,
>
> Does anyone has an example descriptor of a web service to connect a client
> to a EJB through SOAP (Axis of Apache) ?
>
> Most os the examples I find are not based on Ejb connections and on the
> Atlassian site I saw a example for Apache Soap but I can't get it to work
> with Orion.
>
> Eddie
>
>





Re: Sharing httpsession among several applications

2002-03-19 Thread Rafael Alvarez

Hello Juan,

Tuesday, March 19, 2002, 5:11:31 AM, you wrote:

JF> Hi people.

JF> When talking about secure applications, you have recommended to set the
JF> shared attribute to "true". In that way, session is shared between the
JF> secure and non-secure parts of an application.

JF> My scenario is several applications deployed on the same orion server.
JF> Is it possible to share the httpSession among them using the shared flag
JF> in default-web-site.xml?

JF> Thanks


AFAIK, you can only share the HttpSession object among diferent instances
of the same web-app in the same Enterprise Application.

Even if the an Enterprise Application has more that one webapp,
the session will not be shared between them.

m2c

Rafael







RE: JNDI naming exception when running app on orion from JBuilder

2002-03-19 Thread DORAN, GRANT

Thanks,

I am using JBuilder 6 Enterprise (trial) and debugging using the Non-jpda
method described in the article that you mention.
I have managed to move on slightly from that problem, by changing the code
in the servlet to:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "http://localhost/flexisale2";);

// Get the initial JNDI context using our settings
Context context;
try
{
  context = new InitialContext(env);
}
catch (Throwable e)
{
  e.printStackTrace();
  throw new ServletException(
"Unable to get initial JNDI context: " + e.toString());
}

and by creating an application-client.xml file and puttnig it in the .war
file in the META-INF directory.
The xml file looks like this.


http://java.sun.com/j2ee/dtds/application-client_1_2.dtd";>

SPcontroller

ejb/SPControllerHome
Session
 
uk.co.britannic.flexisale.server.spcontroller.SPControllerHome
 
uk.co.britannic.flexisale.server.spcontroller.SPController



But when the line creating the new context is run;

  context = new InitialContext(env);

I get the following exception:

javax.naming.NamingException: META-INF/application-client.xml resource not
found (see J2EE spec, application-client chapter for requirements and format
of the file)
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(Unknown Source)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.(InitialContext.java:198)
at
uk.co.britannic.flexisale.server.test.TestServlet.init(TestServlet.java:46)
at com.evermind._ah._axe(Unknown Source)
at com.evermind._ah._fpd(Unknown Source)
at com.evermind._ah._cwc(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)

This error occurs even when I'm running orion by itself.
I've looked high and low and cant find any info that indicates why the file
can't be found.
Every example that I can find defines the provider_url as the root of the
web application, like this;

   env.put(Context.PROVIDER_URL, "http://localhost/flexisale2";);

If the application-client.xml file is in the META-INF directory of the web
application, why do I get this error?
Has anyone done this before?

Thanks,


Grant Doran
Contract Java Developer/Architect
Britannic Assurance



> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: 18 March 2002 15:05
> To:   Orion-Interest
> Subject:  RE: JNDI naming exception when running app on orion from
> JBuilder  
> 
> Are you running the servlet in orion or tomcat ?
> 
> Does the console in JBuilder say:
> 
> Orion/1.5.4 initialized (or whichever version you have)
> 
> You should be able to make it work by replacing the code:
> 
> java:comp/env/ejb/SPControllerHome
> 
> with:
> 
> SPControllerHome
> 
> It sounds to me like you are running tomcat which is external to your
> session bean (not in the container) and requires the external context
> lookup.  If this is the case, a better solution would be to debug the
> servlet in Orion which would mean starting Orion in JBuilder instead of
> tomcat.
> 
> Here is an article on how to set up JBuilder to debug Orion, I recommend
> the non-JPDA method.
> 
> http://kb.atlassian.com/content/orionsupport/articles/jbuilder-debugging.h
> tml
> 
> Tips:
> 
> 1. Make sure that your project does not include both the BAS4.5 library
> and the new Orion one you create.
> 2. Include all jar files in the Orion home directory (including
> orion.jar)and the Orion lib directory excluding the tool jars
> (ejb-assembler.jar, admin.jar, etc.) in your Orion library.
> 
> I use JBuilder 5 to debug orion and it works great, JBuilder 6 should be
> the same.
> 
> 
> Original Message:
> -
> From: DORAN, GRANT [EMAIL PROTECTED]
> Date: Mon, 18 Mar 2002 13:27:06 -
> To: [EMAIL PROTECTED]
> Subject: JNDI naming exception when running app on orion from JBuilder  
> 
> 
> Hello,
> 
> I'm having a terrible time trying to get my application to debug from
> JBuilder 6 Enterprise.
> When I build the application using ANT and deploy it to orion, the servlet
> can lookup the EJBs ok.
> But when I run Orion in debug mode from JBuilder, it starts up ok, but
> fails
> when the servlet tries to lookup the first EJB.
> The line of code is:
> 
>   Object boundObject =
> context.lookup("java:comp/env/ejb/SPControllerHome");
> 
> The output to the log as a result is:
> 
> javax.naming.NamingException: java:comp/env

Sharing httpsession among several applications

2002-03-19 Thread Juan Fuentes

Hi people.

When talking about secure applications, you have recommended to set the
shared attribute to "true". In that way, session is shared between the
secure and non-secure parts of an application.

My scenario is several applications deployed on the same orion server.
Is it possible to share the httpSession among them using the shared flag
in default-web-site.xml?

Thanks
-- 
··
Juan Fuentes Nieto   Essi Projects
[EMAIL PROTECTED]t +34 977 221 182
http://www.essiprojects.com  f +34 977 230 170
··