[EJB/JBoss] - calling EJB3 on a remote machine behind firewall - need help
by geeky2
hello everyone,
environment: EJB30, Suse 10.1, JBoss AS 4.2.1
i have two linux machines setup. one of them is acting as the server (gecko1) and the other is acting as a client machine (gecko2). gecko1, the server machine, is running an instance of JBAS 4.2.1.
i have the client machine making calls to the jboss service on the server machine - but would like to test out the ability to make calls to the jboss server from behind the firewall using JNDI / RMI over HTTP.
i have been reading the forums and dox on what changes to make to facilitate JNDI / RMI over HTTP. as i understand it - the only change you need to make is to the jndi.properties file on the client side.
to that end - i changed my jndi.properties on the client machine (gecko2) - from
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| java.naming.provider.url=jnp://192.168.198.153:1099
|
to
| java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
| java.naming.provider.url=http://gecko1:8080/invoker/JNDIFactory
|
am i on the right track ?
as it stands right now - when i turn on the firewall (on the server machine) and make the call to the server machine from the client machine - the client just hangs. this situation remains until i turn off the firewall on the server.
i really need to figure out how to make my calls over HTTP - since we will be running multiple servers in disparate locations.
any help would be appreciated
thx
mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072472#4072472
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072472
18Â years, 9Â months
[Messaging, JMS & JBossMQ] - Re: JBossMQ Remote Client receives java.io.EOFException
by Malert
Hi,
I am also facing the same problem, if you got the solution for it please post the solution,
The Exception i am getting is given below,
<ExceptionListener Connection@11108602[token=ConnectionToken:ID:1/9a88c2dac04ced
e24a07e26ff777e8e9 rcvstate=STARTED]><00:25:20:233> Exception in [java.io
.EOFException ] At line ??? !
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.io.EOFEx
ception)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:7
2)
at org.jboss.mq.Connection.asynchFailure(Connection.java:421)
at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILServ
ice.java:174)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.
java:439)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:37
1)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt
ream.java:2666)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:31
6)
... 1 more
Thanks,
Malert Jones
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072471#4072471
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072471
18Â years, 9Â months
[Clustering/JBoss] - Autodeploy EJBTrailblazer into cluster
by loumaus
Working with JBoss 4.2.1.GA on a linux ubuntu
Downloaded latest Trailblazer
started first cluster node.
deployed EJB3Trail.ear into deploy/farm ...
works perfectly
started second node
instance connects to the "cluster"
instance tries to grab EJB3Trail from cluster with the following information:
14:36:32,521 INFO [FarmMemberService] **** pullNewDeployments ****
14:36:32,522 INFO [ClusterFileTransfer] Start pull of file EJB3Trail.ear from cluster.
14:36:32,916 INFO [ClusterFileTransfer] Finished cluster pull of file EJB3Trail.ear to EJB3Trail.ear
14:36:32,926 INFO [EARDeployer] Init J2EE application: file:/data/home/jboss-dev/clusterA/p1/server/default/farm/EJB3Trail.ear
14:36:33,590 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
14:36:33,596 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=EJB3Trail.ear,jar=beans.jar,unitName=ejb3trail with dependencies:
14:36:33,597 INFO [JmxKernelAbstraction] jboss.jca:name=DefaultDS,service=DataSourceBinding
14:36:33,777 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
14:36:33,785 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=ApptransCalculator,service=EJB3 with dependencies:
14:36:33,786 INFO [JmxKernelAbstraction] persistence.units:ear=EJB3Trail.ear,jar=beans.jar,unitName=ejb3trail
14:36:33,790 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
14:36:33,793 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=EntityCalculator,service=EJB3 with dependencies:
14:36:33,794 INFO [JmxKernelAbstraction] persistence.units:ear=EJB3Trail.ear,jar=beans.jar,unitName=ejb3trail
14:36:33,797 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
14:36:33,797 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=QueryCalculator,service=EJB3 with dependencies:
14:36:33,797 INFO [JmxKernelAbstraction] persistence.units:ear=EJB3Trail.ear,jar=beans.jar,unitName=ejb3trail
14:36:33,801 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
14:36:33,801 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=UpdateCalculator,service=EJB3 with dependencies:
14:36:33,801 INFO [JmxKernelAbstraction] persistence.units:ear=EJB3Trail.ear,jar=beans.jar,unitName=ejb3trail
14:36:33,804 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.mdb.MDB
14:36:33,807 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=CalculatorMDB,service=EJB3 with dependencies:
14:36:33,807 INFO [JmxKernelAbstraction] jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=RecordManagerBean,service=EJB3
14:36:33,807 INFO [JmxKernelAbstraction] jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=StatelessCalculator,service=EJB3
14:36:33,811 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
14:36:33,811 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=RecordManagerBean,service=EJB3 with dependencies:
14:36:34,007 INFO [EJBContainer] STARTED EJB: trail.injection.RecordManagerBean ejbName: RecordManagerBean
14:36:34,056 INFO [EJBContainer] STOPPED EJB: trail.injection.RecordManagerBean ejbName: RecordManagerBean
14:36:34,063 WARN [ServiceController] Problem starting service jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=RecordManagerBean,service=EJB3
java.lang.NullPointerException
at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy30.listTimerHandles(Unknown Source)
at org.jboss.ejb.txtimer.EJBTimerServiceImpl.restoreTimers(EJBTimerServiceImpl.java:408)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
has anyone run into this problem before ???
thanks for your help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072469#4072469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072469
18Â years, 9Â months
[EJB 3.0] - Joined Inheritance Strategy Problem
by grdzeli_kaci
hi all,
Enviroment:
JBoss - 4.0.4GA
DB - Oracle 10g
EJB - JBoss EJB 3.0 RC7 - FD
i have 3 table into database
Root Table : PAYMENT_METHOD_DATA
first Child Table : BANK_TRNSF_METHOD_INFO
second Child Table : SCRATCH_METHOD_INFO
in java i have inheritance joined strategy, then root class looks like :
| @Entity()
| @Table(name = "PAYMENT_METHOD_DATA", schema = "CCARE")
| @Inheritance(strategy = InheritanceType.JOINED)
| @DiscriminatorColumn(name = "METHOD_DATA_TYPE", discriminatorType = DiscriminatorType.INTEGER)
| @DiscriminatorValue("1")
| public class PaymentMethodData implements Serializable {
| }
|
then first child looks like :
| @Entity()
| @Table(name = "BANK_TRNSF_METHOD_INFO", schema = "CCARE")
| @DiscriminatorValue("2")
| public class BankTrnsfMethodInfo extends PaymentMethodData implements
| Serializable {
| }
|
second child :
| @Entity()
| @Table(name = "SCRATCH_METHOD_INFO", schema = "CCARE")
| @DiscriminatorValue("3")
| public class ScratchMethodInfo extends PaymentMethodData implements
| Serializable {
| }
|
when i persist BankTrnsfMethodInfo entity object,
automatically persisted also PaymentMethodData, but into PAYMENT_METHOD_DATA column METHOD_DATA_TYPE value is NULL. i don't understand what happened
I NEED PARRENT-CHILDS STRATEGY, is the JOINED strategy for this task ?
can anybody help me ? i tried to do this for a month, but i could not resolve.
is this known bug? or may other new version help me ???
__________
Regards,
Paata.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072458#4072458
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072458
18Â years, 9Â months