[EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam
by thomas2008ch
Here is the list. Where can I find the correct jndi-name?
Besides, I try your alternativ but I get Exception of "MyJNDIName not bound".
Global JNDI Namespace
+- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
+- jmx (class: org.jnp.interfaces.NamingContext)
| +- invoker (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor (proxy: $Proxy48 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| +- rmi (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
+- TestMyBean (class: org.jnp.interfaces.NamingContext)
| +- local (proxy: $Proxy65 implements interface com.wei.chen.MyBeanLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
+- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
+- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
+- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
+- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
+- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
+- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
+- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
+- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
+- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
+- queue (class: org.jnp.interfaces.NamingContext)
| +- A (class: org.jboss.mq.SpyQueue)
| +- testQueue (class: org.jboss.mq.SpyQueue)
| +- ex (class: org.jboss.mq.SpyQueue)
| +- DLQ (class: org.jboss.mq.SpyQueue)
| +- D (class: org.jboss.mq.SpyQueue)
| +- C (class: org.jboss.mq.SpyQueue)
| +- B (class: org.jboss.mq.SpyQueue)
+- topic (class: org.jnp.interfaces.NamingContext)
| +- testDurableTopic (class: org.jboss.mq.SpyTopic)
| +- testTopic (class: org.jboss.mq.SpyTopic)
| +- securedTopic (class: org.jboss.mq.SpyTopic)
+- console (class: org.jnp.interfaces.NamingContext)
| +- PluginManager (proxy: $Proxy49 implements interface org.jboss.console.manager.PluginManagerMBean)
+- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
+- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
+- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
+- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
+- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149358#4149358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149358
17 years, 11 months
[JBoss Portal] - Application User Database
by skarlovic
Hi,
I'm rather new to Portal. We are building an application and trying to decide where to store the users and roles. We are going to use a database, however, we are contemplating whether it should be separate from the jbossportal default database,... or are all users of the Portal to exist in this database? We would like to authenticate against a different database but we don't want to lose any of the inherent Portal security and preferences features.
What are the differences, in functionality, for one application, of storing users and roles in the default jbossportal database or another one? I see there are many other tables in the Portal database, if I separate out a user and roles tables, am I losing any functionality/features?
Thanks,
Steve
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149356#4149356
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149356
17 years, 11 months
[JBoss Messaging] - Re: Could Transparent Failover cause subscriber to miss out
by scotthkao
anonymous wrote : If we informed you about failover completion it wouldn't be transparent. If you want to use a connection listener and handle failover manually then you can just turn off transparent failover. Sounds like this is what you want to do.
So, the transparent failover of JBM can be turned off in the xml configuration file?
I am currently developing a messaging system in which dynamic number of clients (which can not be defined and may not be predicted) can connect to my messaging system to receive messages. I think durable subscription is not feasible in my case since I can not define the client IDs beforehand and I'm not able to erase those client IDs that will never connect to use the messaging system. In fact, I am not sure of the impact of a whole lot of unreceived messages of durable subscriptions. Do you know the impacts of this? So, I chose normal subscription. In the current JB AS 4.2.x, JBMQ is shipped which allows and requires us to handle the reconnection (failover), thus lost message request can be accomplished in the manual reconnection. If you were me, would you do it this way or do you have any experienced suggestions? (Thanks a lot if you can share your experiences)
But I heard JB AS 5.x will have JBM bundled out of the box. I'm currently thinking about of any portability problems in my case.
Thanks,
Scott
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149352#4149352
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149352
17 years, 11 months
[JBoss jBPM] - Is it possible???
by simply smart1
hi for all,
this a code of a class that i have created (WriteFile.java):
| package com.sample.action;
|
| import java.io.*;
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
|
|
| public class WriteFile implements ActionHandler {
|
|
| private static final long serialVersionUID = 1L;
|
| public void execute(ExecutionContext executionContext) throws Exception {
|
|
| String message= null;
| executionContext.getContextInstance().setVariable("message", message);
| Object object=new Object();
| object=executionContext.getVariable("Priorite");
|
| // Stream to write file
| FileOutputStream fout;
|
| try
| {
| // Open an output stream
| fout = new FileOutputStream ("C:\\wamp\\www\\uib-ged\\ref.txt");
|
| // Print a line of text
| new PrintStream(fout).println (object);
|
|
| // Close our output stream
| fout.close();
| }
| // Catches any error conditions
| catch (IOException e)
| {
| System.err.println ("Unable to write to file");
| System.exit(-1);
| }
|
|
|
|
| }
|
| }
|
and this is a code of an xhtml file generated and modified:
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:tf="http://jbpm.org/jsf/tf"
| xmlns:jbpm="http://jbpm.org/jsf">
| <style type="text/css">
| <!--
| .Style1 {
| font-family: "Times New Roman", Times, serif;
| font-style: italic;
| font-weight: bold;
| }
| .Style2 {font-family: "Times New Roman", Times, serif}
| -->
| </style>
|
| <ui:component>
|
| <div style="margin-top:20px;margin-bottom:20px">
| <ul>
| <li><em><strong>Debut de l'etude du dossier.</strong></em></li>
| </ul>
| </div>
| <div style="margin-top:20px;margin-bottom:20px">
| <ul>
| <li class="Style2"><em><strong>
| <span class="Style1">Vous etes invites a donner la priorite du dossier et a introduire la reference
| de l'hypotheque avec laquelle vous avez realise l'indexation dans la GED</span></strong></em></li>
| </ul>
| </div>
| <jbpm:dataform>
| <f:facet name="header">
| <h:outputText value="Tache: Saisie de l'hypotheque dans la GED"/>
| </f:facet>
| <!-- TASKFORM ROWS -->
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Priorite du credit de 1 a 5 :"/>
| </f:facet>
| <h:selectOneMenu value="#{var['Priorite']}">
| <f:selectItem itemLabel="1" itemValue="1" />
| <f:selectItem itemLabel="2" itemValue="2" />
| <f:selectItem itemLabel="3" itemValue="3" />
| <f:selectItem itemLabel="4" itemValue="4" />
| <f:selectItem itemLabel="5" itemValue="5" />
| </h:selectOneMenu>
| </jbpm:datacell>
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Date de la saisie de l'hypotheque"/>
| </f:facet>
| <h:inputText value="#{var['Date_saisie_hypo']}" />
| </jbpm:datacell>
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Reference de l'hypotheque"/>
| </f:facet>
| <h:inputText value="#{var['Ref_hypo_GED']}" />
| </jbpm:datacell>
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Valider votre tache"/>
| </f:facet>
| <!-- TASKFORM BUTTONS -->
| <tf:transitionButton value="Valider"/>
| </jbpm:datacell>
| </jbpm:dataform>
| </ui:component>
| </html>
|
i precise i'm not an expert on j2EE so my question is : can i execute the previous class (WriteFile.java) when pressing the transition button!!if it is possible please give me an idea how to do it.
thanks and sorry if my question seem stupid!!but this what i want to do,
any help will be appreciated!! i precise that i'm not interessted with the execution of this calss by putting it in an action and use it after or before a signal or when leaving a node !!! i want to execute this calss after pressing the transition button on an xhtml file.
Really thnaks for all
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149349#4149349
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149349
17 years, 11 months
[EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam
by thomas2008ch
"jaikiran" wrote : You cannot use an Local interface from a remote client (the standalone java client, running in its own JVM). You will require a remote interface for the bean. Use an interface with @Remote.
You are right. Now I change the Local to remote as follow:
MyBeanLocal.java
****************
@Remote
public interface MyBeanLocal {
public String test(String text);
}
TestMyBean.java
***************
@Stateless
public class TestMyBean implements MyBeanLocal {
public static final String LocalJNDIName = TestMyBean.class.getSimpleName() + "/remote";
public String test(String text) {
return "Hello, " + text;
}
But I get a new exception as follow:
Caused by: javax.naming.NameNotFoundException: remote not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.wei.chen.TestClient.main(TestClient.java:26)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149345#4149345
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149345
17 years, 11 months