[Beginners Corner] - JBoss Stateless Bean Question (Based on JBoss Tutorial)
by fred fred
-When a Bean Jar file (composed of Remote,Home interfaces and a bean class Package) is deployed to the JBoss Java EJB 3.0 directory,does the client program calling JBoss need acces to a local a copy of this jar as well?
-In the JBoss EJB 3.0 Tutorial for Stateless EJB's, how is it that the client can access the Calculator class in any way at all?
Isn't the idea that one refer to the bean through it's interfaces
only?
I am clear on accessing remote beans and interfaces by their JNDI publicised names. In am simply unclear on how/why the bean package name itself is referenced in any way at all.
Calculator calculator = (Calculator) ctx.lookup("CalculatorBean/remote");
CalculatorBean seems to be the name of the jar file, and hence the name publicised to JBoss' JNDI server.
However, shouldn't Calculator be hidden from the client?
IF not, how does one confgiure JBoss server to only allow bean access through interfaces?
?
:)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237162#4237162
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237162
16 years, 10 months
[Beginners Corner] - JBoss Stateless Bean Question (Based on JBoss Tutorial)
by fred fred
-When a Bean Jar file (composed of Remote,Home interfaces and a bean class Package) is deployed to the JBoss Java EJB 3.0 directory,does the client program calling JBoss need acces to a local a copy of this jar as well?
-In the JBoss EJB 3.0 Tutorial for Stateless EJB's, how is it that the client can access the Calculator class in any way at all?
Isn't the idea that one refer to the bean through it's interfaces
only?
I am clear on accessing remote beans and interfaces by their JNDI publicised names. In am simply unclear on how/why the bean package name itself is referenced in any way at all.
Calculator calculator = (Calculator) ctx.lookup("CalculatorBean/remote");
CalculatorBean seems to be the name of the jar file, and hence the name publicised to JBoss' JNDI server.
However, shouldn't Calculator be hidden from the client?
IF not, how does one confgiure JBoss server to only allow bean access through interfaces?
?
:)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237161#4237161
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237161
16 years, 10 months
[JBossWS] - wsconsume ant task
by kj_newbie
Hello,
I am getting the following error when using the wsconsume ant task:
| taskdef class org.jboss.wsf.spi.tools.ant.WSConsumeTask cannot be found
|
This is my build.xml
| <path id="class.path">
| <pathelement path="C:\Program Files\Java\jdk1.5.0_19\lib\tools.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\streambuffer.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\stax-ex.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\saaj-api.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\saaj-impl.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\jbossws-common.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\jaxws-api.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\jaxws-tools.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\jaxws-rt.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\xmlsec.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\client\*.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\lib\*.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\lib\endorsed\jaxb-api.jar"/>
| <pathelement path="E:\jboss\jboss-5.0.0.GA\lib\endorsed\activation.jar"/>
| </path>
|
| <taskdef name="wsconsume"
| classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
| <classpath path="class.path"/>
| </taskdef>
|
|
|
| <target name="generate-from-wsdl">
|
| <wsconsume
| fork="true"
| binding="wsdl/stock.xsd"
| keep="true"
| destdir="generated"
| sourcedestdir="gen-src"
| package="com.sun.samples"
| wsdlLocation="/WEB-INF/wsdl/stockservice.wsdl"
| wsdl="wsdl/stockservice.wsdl">
| </wsconsume>
|
|
| </target>
|
Can anyone point out..what ma I missing ?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237158#4237158
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237158
16 years, 10 months
[Beginners Corner] - Re: jboss AS, jboss Web and php
by ShaneLM
Peter, I'm hoping you still monitor this thread, as you seem to be the absolute guru when it comes to PHP integration into JBOSS. But don't let that prevent others from responding...i need all the help I can get!
I followed the instructions on this thread and successfully got PHP to work in JBOSS EAP 4.3 in a Windows environment. Now I'm trying to do the same on a linux environment.
I downloaded the Linux i686 package from http://www.jboss.org/jbossweb/downloads/php/, and immediately noticed that it doesn't include the php executable like the windows package did. Hoping this is just a difference in operating systems, I proceeded to follow the directions at http://www.jboss.org/jbossweb/modules/php/index.html
I extracted the tar.gz, copied jbossweb-extras.jar, modified web.xml and server.xml, and added the LD_LIBRARY_PATH entry to run.conf. When I start up JBOSS and try to access a simple phpinfo script, I get the following error:
java.lang.UnsatisfiedLinkError: no php5servlet in java.library.path, no libphp5servlet in java.library.path(/usr/java/jdk1.6.0_11/jre/lib/i386/server:/usr/java/jdk1.6.0_11/jre/lib/i386:/usr/java/jdk1.6.0_11/jre/../lib/i386:/bin/myproj/oe/app-server/jboss-4.3.0/PHP/lib:/usr/java/packages/lib/i386:/lib:/usr/lib)
org.jboss.web.php.Library.(Library.java:65)
org.jboss.web.php.Library.initialize(Library.java:104)
...
This confuses me because both the libphp5.so and libphp5servlet.so are in that /bin/myproj/oe/app-server/jboss-4.3.0/PHP/lib directory. Why can't it find them?
I was curious to see if the libraries had the same problem as the windows distribution which Peter fixed by dumping the contents of those 2 .so files, but I didn't see any reference to *.catalina.* in them.
Any ideas??
On a side note, I don't see a php.ini included in this distribution - how am I supposed to edit php settings?
Thanks so much - I've been struggling with this for the entire day...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237147#4237147
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237147
16 years, 10 months