[JNDI/Naming/Network] - context.lookup() local environment entry
by snejboss
Hi all
i am new bee to jboss and ejb.
i am creating my first ejb. i failed initialise ejb home interface because my context.lookup("java:/comp/env/ejb/Fibo") local environment entry is failing.
i am getting following error when i try to run this
Fibonaci Computation
null object name java.lang.IllegalArgumentException: null object name at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:495) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:638) at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:118) at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167) at
please some one help me with this
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980914#3980914
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980914
19 years, 6 months
[JBoss Seam] - Re: Does anyone use @Rollback?
by paulie!
G'day
I do use it, but I will let you decide if the UserTransaction stuff would be better.
I use it probably out of a bit of laziness, I will try and explain: I have an Entity (lets call it mum) which I also use as a backing bean for a form. it has a collection of objects (Entity as well) on it (lets call each one a kid).
Now On the form I have a button which calls an action to add another new (blank) Kid to the list so that the details of a new Kid can be filled in, I also have a delete button to remove a Kid. Now in the basic case if I click on the add or delete the associated action (in a SFSB) causes the injected Backing bean to get saved to the DB (as it is an Entity). But I only want the data saved IF they press the done button, this is so when they press Cancel nothing would have changed, even if they added or deleted Kids before hitting Cancel..
So the add and delete methods both use @Rollback. This allows the new entries to be added to the list and the data in the backing bean to be updated but it will not be flushed to the DB unless the Done action is called which Doesn't have a @Rollback on it.
As it is a very simple data entry problem I went with the Entity being re-used as a backing bean (I mentioned me being lazy). An easy workaround if Rollback wasn't there would be to use seperate backing beans ands entities, and use a bit of code to copy the backing dean data to the entry on the done action (I use this in all my more complicated forms). I also assume there is a way to control the transactions to do what I do without @Rollback, but using it means I only need the one annotation to get the desired result, so as you can imaging the code to do the above is very simple and sparse.
Cheers
Paul.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980913#3980913
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980913
19 years, 6 months
[JBoss Messaging] - Re: How do you install as standalone with Tomcat
by davidrh
To get a standalone install of JBoss messaging, you need to get the JBoss Application server distribution (we use 4.0.4.GA) and the JBoss Messaging distribution (currently 1.0.1.GA).
Unzip the JBoss Application server distribution to wherever you want JBoss to be installed.
Set the JBOSS_HOME environment variable to point to where you unzipped the Application Server (e.g. SET JBOSS_HOME=/jboss-4.0.4.GA).
Unzip the JBoss Messaging distribution to a temporary directory.
Change to the util sub-directory of the JBoss Messaging distribution that you just unzipped.
Run the following command "ant -buildfile release-admin.xml standalone". You must have Ant installed for this to work.
This will create a new server in the JBOSS-HOME/server directory with the name standalone-messaging. To start this server up, change to the JBOSS-HOME/bin directory, and execute the command "run -c standalone-messaging".
You can cleanup the other directories under the server directory and just leave standalone-messaging if you only want to run messaging.
You will need to change datasources and database configuration to suit whichever database you are going to use, but this is covered in the user documentation.
The above steps used to be documented somewhere, but I can't find it now.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980909#3980909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980909
19 years, 6 months
[Messaging, JMS & JBossMQ] - java.io.IOException: Client is not connected
by tharinduj
Hi All,
I have Three MDB's in my project. The message sending is done without any problem causing to application. But I receive following Exception. I want to know hoe to remove this. Any help is appriciated.
----------------------------------------------------------------------------------
2006-10-26 10:52:08,938 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run
2006-10-26 10:52:08,938 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream
2006-10-26 10:52:08,948 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run
2006-10-26 10:52:08,948 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream
2006-10-26 10:52:08,948 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL Connection
2006-10-26 10:52:08,948 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] The UILClientIL Connection is set up
2006-10-26 10:52:08,978 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CloseMsg4368209[msgType: m_connectionClosing, msgID: 624, error: null]
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265)
at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:239)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:128)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:534)
2006-10-26 10:52:08,978 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to send error reply
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265)
at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:52)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:409)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:534)
2006-10-26 10:52:08,988 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:162)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
at java.lang.Thread.run(Thread.java:534)
2006-10-26 10:52:08,988 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
2006-10-26 10:52:08,988 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
Regards,
Tharindu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980906#3980906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980906
19 years, 6 months