Accessing an EJB 3.0 Enterprise Bean and Node Manager

Hi to all
I have got a problem in using Local(Remote) EJB Interface in Weblogic. I use Node Manager.
I have two servers:
1. AdminServer (working on port 7001)
2. Server1 (working on port 7003 under node manager control)
I have one EAR application file. This file contains jars with ejb 3.0. One jar called jarnumber1.jar is deployed on AdminServer. Second jar called jarnumber2.jar id deployed on Server1.
jarnumber1.jar constains EJBBean1 class.
jarnumber2.jar constains EJBBean2 class.
I want call EJBBean2 from EJBBean1 but I can't. I got exception 'NamingException'.
Example source code:
@Stateless(mappedName = "EJBBean1")
public class EJBBean1implements EJBBean1Remote {
@EJB private EJBBean2Remote eJBBean2Remote ; //injection doesn't work
I also tried method described here: http://middlewaremagic.com/weblogic/?p=5665 but it doesn't work.
AminServer has own JNDI Tree and Server1 has own JNDI Tree. It's seems to be that EJBBean1 can't see EJBBean2 from second JDNI tree.
Pleas help me.
With Regards,
ZK

Please try the following code:
HelloEJBBean.java:
@Stateless(name="Hello")
@Remote(value={Hello.class})
public class HelloEJBBean implements Hello {  ... }
hello.jsp:
Context ctx = new InitialContext();
Hello h = (Hello)ctx.lookup("ejb/Hello");
web.xml:
<ejb-ref>
<ejb-ref-name>ejb/Hello</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<remote>fi.kronodoc.test.model.Hello</remote>
</ejb-ref>
i think you should also define jndi mappings for the references in orion-ejb-jar.xml and orion-web.xml but for some reason it seems to be working also without these.

Similar Messages

  • Reg:  node and node manager

    Hi to all
    iam new to this forum, iam new administrator in weblogic plese help me.....
    what is diference between node and node manager?
    Thanks & Regardes
    Ashok

    Hi Ashok,
    Node term usually we use for a Physical Box.
    Nodemanager is a WebLogic Specific Java program which can be used to Manage a Remote Manage Server. Every Machine (Machine is a Logical name which represents a Physical box where Managed server is running) must have a NodeManager. AdminServer usually interacts with NodeManager to give start or stop Servers instructions to the Nodemanager, NodeManager program runs & resides in the same Managed Server Box...so it actually follows AdminServer's Instructions.
    Nodemanager gets the Latest Configuration files from AdminServer while starting a Server in the physical box. or if AdminServer is not running at the time of starting a Managed Server then ... nodemanager uses the "msi-config.xml" file to provide to managed Servers while starting them.
    Please refer to the below Post: http://weblogic-wonders.com/weblogic/2010/04/28/weblogic-clustering-in-remote-boxes/ to know what is the need of NodeManager and how to configure it.
    To know in-depth about Nodemanager please refer to James Bayers....Post: http://blogs.oracle.com/jamesbayer/2010/01/weblogic_nodemanager_quick_sta.html
    Thanks
    Jay Sensharma

  • Oracle HTTP Server and Node Manager

    Hi,
    I installed Oracle HTTP Server with Node Manager. I set "CrashRecoveryEnabled=true" in the nodemanager.properties. It works fine when I reboot the machine, but when I kill the root process (kill -9), the new process can not be started as the previous process does not have enough time to die and still uses the ports. I tried to run "nmGenBootStartupProps" in wlst, or set the
    RestartMax=2
    RestartDelaySeconds=5
    variables in "[domain_name]/servers/[server_name]/data/nodemanager/startup.properties" - no success.
    Any ideas, how to set the number of retries and the delay between restarts?
    Versions:
    Oracle HTTP Server: version="12.1.3.0.0"
    java version "1.7.0_79"
    OHS log:
    [2015-05-04T11:43:48.0653+02:00] [OHS] [NOTIFICATION:16] [OHS-9999] [mod_weblogic.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18651] [tid: 140166670751552] [user: app] [VirtualHost: main]  WebLogic Server Plugin version 12.1.3 <WLSPLUGINS_12.1.3.0.0_LINUX.X64_140421.1459>
    [2015-05-04T11:43:48.0854+02:00] [OHS] [NOTIFICATION:16] [OHS-9999] [core.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18651] [tid: 140166670751552] [user: app] [VirtualHost: main]  Oracle-HTTP-Server-12c/12.1.3.0.0 (Unix) mod_ssl/12.1.3.0.0 OtherSSL/0.0.0 mod_plsql/11.1.1.0.0 configured -- resuming normal operations
    [2015-05-04T11:48:53.9584+02:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18838] [tid: 140103489120064] [user: app] [VirtualHost: main] (98)Address already in use:  make_sock: could not bind to address 192.168.0.226:80
    [2015-05-04T11:48:53.9585+02:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18838] [tid: 140103489120064] [user: app] [VirtualHost: main]  no listening sockets available, shutting down
    [2015-05-04T11:48:53.9585+02:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18838] [tid: 140103489120064] [user: app] [VirtualHost: main]  Unable to open logs
    Node Manager log:
    <May 4, 2015 11:37:50 AM CEST> <INFO> <Loading domains file: /opt/app/soalb_domain/nodemanager/nodemanager.domains>
    <May 4, 2015 11:40:18 AM CEST> <INFO> <Loading identity key store: FileName=/opt/app/soalb_domain/security/DemoIdentity.jks, Type=jks, PassPhraseUsed=true>
    <May 4, 2015 11:40:18 AM CEST> <INFO> <Loaded NodeManager configuration properties from '/opt/app/soalb_domain/nodemanager/nodemanager.properties'>
    <May 4, 2015 11:40:18 AM CEST> <INFO> <Node manager v12.1.3 #1604337>
    <May 4, 2015 11:40:18 AM CEST> <INFO> <soalb_domain> <soalb_server1> <Startup configuration properties loaded from "/opt/app/soalb_domain/servers/soalb_server1/data/nodemanager/startup.properties">
    <May 4, 2015 11:40:19 AM CEST> <INFO> <Secure socket listener started on port 5556, host localhost/127.0.0.1>
    <May 4, 2015 11:43:53 AM CEST> <INFO> <soalb_domain> <soalb_server1> <The server 'soalb_server1' is running now.>
    <May 4, 2015 11:48:53 AM CEST> <INFO> <soalb_domain> <soalb_server1> <The server 'soalb_server1' with process id 18672 is no longer alive; waiting for the process to die.>
    <May 4, 2015 11:48:53 AM CEST> <INFO> <soalb_domain> <soalb_server1> <Server failed so attempting to restart (restart count = 1)>
    <May 4, 2015 11:48:54 AM CEST> <SEVERE> <soalb_domain> <soalb_server1> <Unexpected error while monitoring server>
    java.io.IOException: Failed to start the server soalb_server1
    Check log file /opt/app/soalb_domain/system_components/OHS/ohs_nm.log
    Check log file /opt/app/soalb_domain/servers/soalb_server1/logs/soalb_server1.log
            at oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl.buildIoException(Unknown Source)
            at oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl.start(Unknown Source)
            at weblogic.nodemanager.server.DecoratedSystemComponentManager$DecoratedProcess.start(DecoratedSystemComponentManager.java:129)
            at weblogic.nodemanager.server.ServerMonitor.startProcess(ServerMonitor.java:441)
            at weblogic.nodemanager.server.ServerMonitor.runMonitor(ServerMonitor.java:406)
            at weblogic.nodemanager.server.ServerMonitor.run(ServerMonitor.java:295)
            at java.lang.Thread.run(Thread.java:744)
    ohs_nm.log:
    <2015-05-04 11:48:53> <INFO> <OHS-0> <The server 'soalb_server1' with process id 18672 is no longer alive; waiting for the process to die.>
    <2015-05-04 11:48:53> <INFO> <OHS-0> <Server failed so attempting to restart (restart count = 1)>
    <2015-05-04 11:48:53> <INFO> <OHS-4018> <Starting server soalb_server1>
    <2015-05-04 11:48:53> <INFO> <OHS-0> <Running /opt/app/ohs12c/wlserver/../ohs/bin/httpd.sh httpd.worker -k start -f /opt/app/soalb_domain/config/fmwconfig/components/OHS/instances/soalb_server1/httpd.conf>
    <2015-05-04 11:48:53> <INFO> <OHS-0> <[Mon May 04 11:48:53 2015] [warn] Errors will be logged into /opt/app/soalb_domain/servers/soalb_server1/logs/soalb_server1.log>
    <2015-05-04 11:48:54> <INFO> <OHS-0> </opt/app/ohs12c/wlserver/../ohs/bin/httpd.sh httpd.worker -k start -f /opt/app/soalb_domain/config/fmwconfig/components/OHS/instances/soalb_server1/httpd.conf: exit status = 1>
    <2015-05-04 11:48:54> <INFO> <OHS-4005> <Check the instance log file for more information: /opt/app/soalb_domain/servers/soalb_server1/logs/soalb_server1.log>
    <2015-05-04 11:48:54> <SEVERE> <OHS-0> <Failed to start the server soalb_server1>
    <2015-05-04 11:48:54> <SEVERE> <OHS-0> <Unexpected error while monitoring server>
    Node Manager properties:
    #Wed Apr 29 18:31:26 CEST 2015
    #Node manager properties
    #Wed Apr 29 17:18:21 CEST 2015
    DomainsFile=/opt/app/soalb_domain/nodemanager/nodemanager.domains
    LogLimit=0
    PropertiesVersion=12.1.3
    AuthenticationEnabled=true
    NodeManagerHome=/opt/app/soalb_domain/nodemanager
    JavaHome=/opt/app/jdk1.7.0_79
    LogLevel=INFO
    DomainsFileEnabled=true
    StartScriptName=startWebLogic.sh
    ListenAddress=localhost
    NativeVersionEnabled=true
    ListenPort=5556
    LogToStderr=true
    SecureListener=true
    LogCount=1
    StopScriptEnabled=false
    QuitEnabled=false
    LogAppend=true
    StateCheckInterval=5000
    CrashRecoveryEnabled=true
    StartScriptEnabled=true
    LogFile=/opt/app/soalb_domain/nodemanager/nodemanager.log
    LogFormatter=weblogic.nodemanager.server.LogFormatter
    ListenBacklog=50
    Startup properties:
    #SSLArguments=-Dweblogic.security.SSL.ignoreHostnameVerification\=false -Dweblogic.ReverseDNSAllowed\=false
    RestartMax=2
    RestartDelaySeconds=5
    FileTimeSpan=24
    RestartInterval=3600
    FileTimeSpanFactor=3600000
    RotatedFileCount=7
    RotationType=bySize
    #AdminURL=http\://192.168.0.224\:7001
    NumberOfFilesLimited=true
    AutoRestart=true
    RotationTimeStart=00\:00
    FileSizeKB=500
    Regards,
    András

    To deploy your FMX you need AS 10.1.2 Forms installed, and then you can use AS control or Forms server configuration file.
    For more information regarding FMX deployment, refer to http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/toc.htm
    Regards,
    Preet

  • Domain wide administration port and node manager

    I need a little help understanding how to properly configure the domain-wide
    administration port in a clustered domain using node manager. After I enabled
    the port in my domain, node manager will no longer start the managed servers
    running on the same box as the domain's admin server. I don't have problems
    starting remote managed servers. I see the problem but I don't know how to
    fix it.
    <Error> <Configuration Management> <BEA-150019> <The address provided to
    get to the admin server (https://<host>@port) resolves to a managed server
    local address (host@port) rather than a remote address as expected, or the
    local managed server port might already be in use if you have setup domain
    wide admin port, please check the configuration and correct the problem.>
    The host I'm specifying is the host of my admin server, the port is the domain-wide
    administration port. I don't get this error when starting my remote managed
    servers, only the managed servers running on the same box as the admin server.
    Grant

    Cause might The managed server was given a URL to boot from that resolves to a managed server address. If the managed server is running on the same machine as the admin server, this can be caused by a failure to specify a unique admin port.
    Inspect the address:port provided to the managed server from which to boot. This address should be changed to reference the admin server rather than resolving to a managed server. If the managed server is running on the same machine as the admin server, you must differentiate them by providing a unique port number.
    Now we log a clear message that prints something like ,
    The address provided to get to the admin server x.x.x.x resolves to a m
    anaged server local address x.x.x.x:nnnn rather than a remote address as
    expected, or the local managed server port might already be in use if you
    have setup domain wide admin port, please check the configuration and correct
    the problem.
    Regards,
    Prasanna Yalam

  • EJB 3.0 entity beans and WebDynpro models

    Hi all,
    first off all my setup:
    WebDynpro Development Component: dcA
    EJB Module Development Component: dcB
    i wan't to create Entity Beans in dcB an use it for my model in dcA.
    My questions:
    1. Why does the "New Wizard" only offer EJB 3.0 Session and Message Beans an no Entity Beans? What is the correct way for creating Entity Beans in DevStudio?
    2. Is ist right that i have to define a public Part containing the Entity Bean to make it visible to dcA?
    Regards,
       Christian

    Hi,
    I'm experiencing same problems, is this a bug or an feature?

  • Secure Datacenter Architecture (colo); Enterprise VLANing and IP management

    In the beginning stages of a datacenter migration, I am trying to uncover best methods for deploying a large scale datacenter in a secure Layer 2 and 3 environment.
    The end goal here is to achieve not only broadcast domain segregation, but also IP address control and management, all while trying to minimize administrative and technical overhead.
    The existing network is built on 5505, 3550 and 2950 edge aggregation switches, terminated on a 6506 core switch.
    The existing infrastructure includes more than 2000 individual servers and growing rapidly; this design must be scalable (with obvious network growth) into the tens of thousands of servers.
    I have reviewed a number of methods to achieve this, the most appealing (for IP utilization) seems to be Cisco's pVLAN implementations with IP access lists to prevent malicious or inadvertant IP theft. Unfortunately, according to the Cisco docs I've read, this feature is not supported in the 5500 series devices, or fully in many of the lower level devices mentioned above.
    If anybody can point me in the right direction for existing or proposed solutions, ideally utilizing this infrastructure, and minimizing system load and administration, I would greatly appreciate it.
    Regards,
    Anthony

    pvlan and vacls are supported on cat 6000. You could plan to include one in your network, based on the growth. Here is a document on datacenter networking.
    http://www.cisco.com/en/US/netsol/ns110/ns53/ns224/ns304/netbr09186a0080181314.html

  • EJB security supress in development and testing

    Hi,
    I'm not quite sure if its a right place for the post but it seems to me as a good one for a start. I think that my problem should be quite common and I'm really surprised that I can't find the answer :/, perhaps I search for a wrong thing, but let's get down to business :).
    I have JEE project which includes EJB module and enterprise client.
    EJB is secured, when I try to access its methods via the client I have to provide proper credentials and everything works perfetly well.
    However, during the developement cycle 2 issues may arise.
    1. It can be frustrating that each time I need to access (i.e every debug), secured method I have to provide user credentials.
    2. I don't know how programmaticaly provide credentials in order to make unit tests.
    So,
    is it possible to "supress security" during developement, so that no security checks are made ??
    Maybe there are different solutions ??
    Or my assumptions are wrong ??

    Thanks, the solution works :)
    If anyone has a same issue, I provide ejb-jar.xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee"
    version = "3.0"
    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <session>
    <ejb-name>CartBean</ejb-name>
    <ejb-class>cart.secure.ejb.CartBean</ejb-class>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <security-role>
    <role-name>kuku</role-name>
    </security-role>
    <method-permission>
    <unchecked></unchecked>
    <method>
    <ejb-name>CartBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    </assembly-descriptor>
    </ejb-jar>
    Only one thing, that bothers me remains, that is why I had to define the bean in the descriptor ??
    If I didn't put <enter ... than I go the following error:
    Deploying application in domain failed; Error loading deployment descriptors for module [cart-secure] -- Referencing error: This bundle has no bean of name [CartBean]

  • Integrating Enterprise Bean to JBI

    Hi,
    is there any example how to integrate Enterprise bean to JBI ? I would appreciate for any links with tutorials of jbi.xml, servicelist.xml and other configuration files, is there some description for this ?
    Thank you in advance,
    Peter

    Hi Peter,
    Session beans can be called from JBI if they are deployed as EJB web services (JSR 109).
    The example shows an MDB but if you have a session bean and deploy it as a web service , then you could access it through the Java EE Service engine.
    As of now only access to EJB web services is possible, (and not simple EJBs)
    -Ramesh

  • Accessing an ejb from a servlet gives resource not allowed exception

    hi friends,
    i deployed a bean in weblogic server calling from within a servlet. this bean is used to retrieve a database connection and returns to the servlet. i have done all the resource references lookups everything and also the bean is deployed successfully, but when i run the servlet i didn't get even the println messages. it gives resource not allowed message.
    here is the deployment descriptor is correct ? if anything wrong or missed, please mention and try to give me the solution.
    web.xml
    <web-app>
    <servlet>
    <servlet-name>TestConnection</servlet-name>
    <display-name>TestConnection</display-name>
    <servlet-class>tms.com.ejb.TestConnection</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestConnection</servlet-name>
    <url-pattern>TestConnection</url-pattern>
    </servlet-mapping>
    <resource-ref>
    <res-ref-name>tmsPool</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <env-entry>
    <env-entry-name>tmsDataSource</env-entry-name>
    <env-entry-value>tmsPool</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <env-entry>
    <env-entry-name>TMS_DBConnectionBean</env-entry-name>
    <env-entry-value>java:comp/env/ejb/TMS_DBConnectionBean</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <ejb-ref>
    <ejb-ref-name>ejb/TMS_DBConnectionBean</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>tms.com.ejb.TMS_DBConnectionHome</home>
    <remote>tms.com.ejb.TMS_DBConnection</remote>
    <ejb-link>TMS_DBConnectionBean</ejb-link>
    </ejb-ref>
    </web-app>
    Ejb jar is
    <enterprise-beans>
    <session>
    <display-name>ConnectionBean</display-name>
    <ejb-name>TMS_DBConnectionBean</ejb-name>
    <home>tms.com.ejb.TMS_DBConnectionHome</home>
    <remote>tms.com.ejb.TMS_DBConnection</remote>
    <ejb-class>tms.com.ejb.TMS_DBConnectionBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <env-entry-name>tmsDataSource</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>tmsPool</env-entry-value>
    </env-entry>
    <security-identity>
    <description></description>
    <use-caller-identity></use-caller-identity>
    </security-identity>
    <resource-ref>
    <res-ref-name>tmsPool</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <!--<res-sharing-scope>Shareable</res-sharing-scope>-->
    </resource-ref>
    </session>
    </enterprise-beans>
    <weblogic-ejb-jar>
    weblogic ejb jar file is the following content.
    <weblogic-enterprise-bean>
    <ejb-name>TMS_DBConnectionBean</ejb-name>
    <stateless-session-descriptor>
    <pool>
         <max-beans-in-free-pool>1</max-beans-in-free-pool>
    </pool>
    </stateless-session-descriptor>
    <jndi-name>TMS_DBConnectionBean</jndi-name>
    </weblogic-enterprise-bean>
    thanx in advance..

    hi
    i tried the same but still i'm getting the same problem, the value i mentioned in the servlet lookup is java:comp/env/TMS_DBConnectionBean.
    then the value returned by the lookup would be java:comp/env/ejb/TMS_DBConnectionBean. right. Anyway i tried the same as u mentioned. that same problem resource not allowed is displayed in the browser. is there any other alternative to solve this?
    thanks

  • How can I connect JSP in IPlanet that access to EJB in Weblogic?

    Hi:
    I have a JSP in IPlanet that access to EJB in Weblogic.
    IPlanet and Weblogic are installed in different machines.
    I don't know what code source and deployment actions to do to connect jsp and ejb. Can anybody guide me?
    Thanks in advance,
    David B.

    Hi,
    now only i am initiating the combination of iplanet webserver 4.1 and weblogic 5.1 application server for my project. I can able to execute jsps through iplanet webserver.
    Can u explain clearly jsps calls over to ejb which is stored in weblogic? How i will handle this combination in single machine?
    thanks in advance
    vijay.

  • Difference between simple beans and EJB

    Anybody knows... the difference between the simple beans and EJB... Pls share with all. thanks a lot.

    The Verrrrrrrrry short scoop is that JavaBeans pretty much just adhere to a standard format, mostly getters and setters. EJBs work only within a specific framework - an EJB container, and have access to J2EE support. For a detailed look at EJBs, see my tutorial Getting Started with Enterprise JavaBeans Technology at the developerWorks Java zone:
    http://www-106.ibm.com/developerworks/edu/j-dw-java-gsejb-i.html
    Joe Sam
    Joe Sam Shirah - http://www.conceptgo.com
    conceptGO - Consulting/Development/Outsourcing
    Java Filter Forum: http://www.ibm.com/developerworks/java/
    Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
    Going International? http://www.jguru.com/faq/I18N
    Que Java400? http://www.jguru.com/faq/Java400

  • Security issue to access remote ejbs, URGENT!!! please and thanks.

    Hi gurus:
    I have questions for you. I need to access remote ejbs. the ejb(beans) have been
    deployed on remote machine. I have helper class file to do JNDI lookup to point
    the machine and find it.
    I have local machine to have all of home interfaces, remote interfaces and stub
    classes and common classes. I have local jsp and config weblogic-web.xml to allow
    test user to access.
    Sometimes fine but got the following message and error from my local machine.
    I have no clue about that. Is any other issue that remote machine have security
    to limit clients to access beans. Because remote wl server startup as system/weblogic.
    If my local machine startup as system/weblogic too. It has no problem at all.
    This doesn't make sense for my local machine has to have same system's password
    as remote machine. Should have some issues to limit clients to access remote beans.
    Thank you for any helps and suggestions in advance.
    Steven.
    ####<Jun 7, 2001 10:34:25 AM CDT> <Error> <HTTP> <stevenzhu> <myserver> <ExecuteThread-14>
    <springbow> <> <101020> <[WebAppServletContext(8365803,public_html)] Servlet failed
    with Exception>
    java.lang.SecurityException: Authentication for user test denied in realm wl_realm
    at weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRequest.java:90)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
    at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(ServerNamingNode_WLStub.java:121)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
    at com.sprint.common.util.EJBHelper.getHomeInterface(EJBHelper.java:172)
    at com.sprint.common.util.EJBHelper.getOrganizationSLHome(EJBHelper.java:122)
    at com.sprint.common.organization.OrganizationBean.getOrganizationHome(OrganizationBean.java:290)
    at com.sprint.common.organization.OrganizationBean.getOrganizationRemote(OrganizationBean.java:315)
    at com.sprint.common.organization.OrganizationBean.findEmployee(OrganizationBean.java:107)
    at jsp_servlet._ehr._vieworganizationalhierarchy._jspService(_vieworganizationalhierarchy.java:173)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    well, if we post in other threads, they tell me that it is ARD and server technology. If you try to post back to my mac in the normal threads about Leopard, they point us to this thread.
    It seems that a lot of people are frantically looking for someone who can explain in plain english how to do the remote desktop - is remote desktop the same technology as back to my mac?
    Extremely frustrating for people like me who don't have unix or programming language experience... We choose for mac because we wanted user friendlyness... What a joke!

  • Creating and deploying ejb 3.0 session bean with annotated pojo

    I try to create and deploy a EJB 3.0 stateless session bean (and associated webservice) with the following steps:
    1) Create Interface "Repository"
    package de.xxx.config;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService
    public interface Repository extends Remote {
         @WebMethod(operationName = "findCampaignByChannel")
         public String findCampaignByChannel(String channelName) throws RemoteException;
    2) create dummy "RepositoryImpl"
    package de.xxx.config;
    import java.rmi.RemoteException;
    import javax.ejb.Stateless;
    import javax.jws.WebService;
    @WebService(endpointInterface="de.xxx.config.Repository")
    @Stateless
    public class RepositoryImpl implements Repository {
         public String findCampaignByChannel(String channelName) throws RemoteException {
              return null;
    3) The two class files are packaged into a jar without any further descriptors
    4) The jar is deployed with admin_client into the oc4j instance using the commands:
    -deploy -file <jarfile> -deploymentName <name>
    Result:
    An ear was constructed and started but no session bean or webservice is found (using the console). But according to to the docs a jar file without a ejb-jar.xml should be recognized as a EJB 3.0 ejb-jar file and the necessary steps to create session bean and expose webservice should be done automatically.
    My question:
    Which step do i miss here ?
    Tools used:
    Eclipse 3.2 for the jar file
    SoaSuite 10.1.3.1 for oc4j

    another strange problem.
    i have an APplication server added ( JBOSS ).
    when i create deployment profile (EAR ) application server is showed in the ComboBox .
    But when i create Java Test Client for some EJB and when i check " Connect Remote Application server" there is 2 comboboxes
    J2EE Application
    App Server Connection.
    first combo is ok there is EJB applicaiton
    Secound is empty .. but i Have App Server.
    Another think is that when i create EJB 3.0 its BAD to see J2EE app it must be J EE 5 app or just Java EE app

  • Sun java Enterprise Studio and ejb diagrams

    Can I use the studio to create ejb diagrams?
    If so, can I use the studio to reverse engineering existing ejbs and create these diagrams?

    Can you clarify what you mean by EJB diagrams. You can create class diagrams that have model elements that represent EJB objects.
    The UML tool has support for design patterns. We have a couple of design pattern catalogs that provide some EJB support. You can even graphically create you own design patterns.
    The UML project will also reverse engineer Enterprise projects and create a UML model. With the UML model you can create UML diagrams.
    Can you give me any information about EJB support that you would like to see in the UML tool?

  • Managed Beans and Data Access Object

    I have a question / need help understanding how to configure backing bean and model objects so that memory and object creation/deletion is done as efficiently as possible.
    1. I have a .jsf page with a form and a commandbutton that submits the form inputs to a backing bean (enrollispbean is backing bean)
    <h:commandButton value="Enter" action="#{enrollispbean.insert}"/>
    2. The backing bean is used for form handling - the insert() method is used to read the data fields from the form and create a SQL string that will be submitted to a model object, DbInsert, that is used as a generic data access object that connects to the database and insert the SQL string:
    public class EnrollIspBean {
    private String beanvar1="";
    private String beanvar2= "";
    // DbInsert is data access object
    private DbInsert dbinsert = new DbInsert();
    public String insert (){
    String sqlstmt;
    sqlstmt = "INSERT INTO ispmain VALUES(beanvar1, beanvar2,..)"
    dbinsert.insert(sqlstmt);
    return "success"; }
    3. DbInsert is the data access object that contains a method, insert(), that accepts a sql string to insert into the database. This method contains the code to obtain a connection from the database connection pool and then execute the sql statement (note: error checking code not shown):
    public class DbInsert {
    public void insert(String sqlstmt) throws SQLException {
    Connection conn = null;
    GetDBConnection getdbconnection = new GetDBConnection();
    PreparedStatement stmt = null;
    conn = getdbconnection.getdbconn();
    stmt = conn.prepareStatement(sqlstmt);
    stmt.executeUpdate();
    stmt.close();
    conn.close();
    return;
    Where I need help understanding is how to set up the scope for the managed beans and data access object. Currently, I have the backing bean within the session scope (using the facesconfig.xml file). My main question is how to set up the scope for the Data Access Object - currently I do not have it as a managed bean within facesconfig.xml. Instead I am creating a new instance within the backing bean:
    private DbInsert dbinsert = new DbInsert();
    Is this the best way to do this? Will the DBInsert object now be tied to the session scope of the backing bean (i.e., when backing bean is deleted, the DbInsert object will be deleted from session scope as well.)
    Ideally I would like the data access object to be available as a shared object throughout the life of the application. When I was programming using a servlet approach, I would have created a servlet to load on startup. Now that I'm using java server faces, I'm confused about the scope / how to efficiently set up a data access object that I want to be available to all backing beans in the application.
    tnanks for any help understanding this.
    Tom

    I was thinking about setting the data access object as application scope so that it can be used by an backing bean to execute sql statements.
    If I do set it as application scope, however, if I do this, do I still need to declare a new instance of the object from within each bean that uses the object?
    For example do I need to declare a new instance of the data access object from within the bean? or, should I assume that there is always an instance of the bean available in the application scope, and if so, how do I reference it from within the bean?
    Bean Code:
    public class EnrollIspBean {
    // DbInsert is data access object
    private DbInsert dbinsert = new DbInsert();
    Finally, I understand performance may be an issue if I have one instance of the data access object available in the application scope - is there a way to make multiple instances available in the application scope?
    thanks

Maybe you are looking for