Using CallRouter with ejb

          Hi,
          Can anyone plz let me know how do I use CallRouter class with
          ejb. The tool weblogic.ejbc is used to generate stubs and skeletons ..
          thanx
          pradeep
          

You need to have the <home-call-router-class-name> tag in your
          weblogic-ejb-jar.xml
          see below
          http://e-docs.bea.com/wls/docs61/ejb/reference.html#1070646
          Kumar
          "pradeep bhat" <[email protected]> wrote in message
          news:3c9356e4$[email protected]..
          >
          > Hi,
          > Can anyone plz let me know how do I use CallRouter class with
          > ejb. The tool weblogic.ejbc is used to generate stubs and skeletons ..
          > thanx
          > pradeep
          >
          >
          

Similar Messages

  • Using CallRouter with EJB Home/Remote interface

    Hi,
    How do i Use my CallRouter class for EJB's.
    How to use rmic . please help
    thanx in adv.
    pradeep bhat

    You can specify the call-routers in weblogic-ejb-jar.xml.
    FWIW, what are you trying to do?
    -- Rob
    pradeep bhat wrote:
    Hi,
    How do i Use my CallRouter class for EJB's.
    How to use rmic . please help
    thanx in adv.
    pradeep bhat

  • Do i have to use JNDI with EJBS?

    Hi
    I want to use JNDI to lookup a system which i will send messages to using JMS. I would like to have some java classes on Tomcat to do the job. But...whenever i hear about JNDI it is always in relation to EJBs. Can i only use JNDI with EJBS?
    If i can use JNDI is there anything important i need to know about.
    Thanks in advance!
    San H.

    You can definitely use JNDI outside of EJB's - in particular, it's a great interface for dealing with LDAP servers, even securely, and can also be used for DNS interfacing, COS, RMI registries, etc.
    While JNDI was chosen as the method by which J2EE components can locate other components in a distributed environment, it's by no means limited to that task :) It's a wonderful API, and in terms of things you need to know, most everything is covered fairly well at the JNDI tutorial in the various trails that are mapped out there.
    http://java.sun.com/products/jndi/tutorial/
    Good luck!
    James
    James Manning | Principal Engineer
    Porivo Technologies, Inc.
    919.806.0566 | [email protected]
    http://www.porivo.com/
    Measuring end-to-end Web performance.
    Register for a FREE Performance appraisal:
    http://www.porivo.com/peerReview/eval.html

  • Do i have to use JMS with EJBS?

    Hi
    I want to use JMS as a messaging system (a queue) between my system and someone elses. I would like to have some java classes on Tomcat to do the job. But...whenever i hear about JMS i always hear it in relation to EJBs. Can i only use JMS with EJBS?
    If i can use JMS is there anything important i need to know about.
    Thanks in advance!
    San H.

    As far as I understand you are use JNDI and JMS is not bound with EJB's. These are java API's which are independent. Like JDBC you can use with Servlets, Applets, standalone applications, EJB, JMS etc etc.......
    In the same way you can use JNDI and JMS with diferent API. And the important feature of Java is that all java API interact with each other when these are independent. I would appricate comments of everyone......................Thanks

  • Problems using JAAS with EJB 3.0 on JBoss 4.0.4-GA

    Hello all,
    I am trying to build a very simple JavaEE application with JAAS, but I getting mad.
    I have an EAR packed with a WAR module an EJB JAR module and a JAR with other classes. Struts is the MVC framework and EJB 3.0 is been used.
    First of all, I configured the "login-config.xml" file within /conf directory in JBoss, like this:
    <application-policy name="exemplo1">
         <authentication>
              <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
                   <module-option name="dsJndiName">java:jdbc/Infra_Seguranca</module-option>
                   <module-option name="principalsQuery">SELECT COD_USUARIO AS Password FROM USUARIO WHERE COD_USUARIO=?</module-option>
                   <module-option name="rolesQuery">SELECT NOME_ROLE AS Roles, 'Roles' AS RoleGroups FROM ROLE_USUARIO WHERE COD_USUARIO=?</module-option>
              </login-module>
         </authentication>
    </application-policy>Next I configured the "web.xml" file like this:
    <security-constraint>
         <web-resource-collection>
              <web-resource-name>Restricted</web-resource-name>
              <description>Declarative security tests</description>
              <url-pattern>*.do</url-pattern>
         </web-resource-collection>
         <auth-constraint>
              <role-name>xxx</role-name>
         </auth-constraint>
         <user-data-constraint>
              <description>no description</description>
              <transport-guarantee>NONE</transport-guarantee>
         </user-data-constraint>
    </security-constraint>
    <login-config>
         <auth-method>FORM</auth-method>
         <realm-name>exemplo1</realm-name>
         <form-login-config>
              <form-login-page>/login.jsp</form-login-page>
              <form-error-page>/loginErro.jsp</form-error-page>
         </form-login-config>
    </login-config>
    <security-role>
         <description>Role xxx</description>
         <role-name>xxx</role-name>
    </security-role>Notice that I am using the "xxx" role to protect the "*.do" URL pattern.
    The "jboss-web.xml" is like this:
    <?xml version="1.0"?>
    <jboss-web>
         <security-domain>java:/jaas/exemplo1</security-domain>
    </jboss-web>As it is, it works perfectly, which means, every time I try to access a "*.do" URL it verifies whether I am authenticated and have authroization or not. If not, the login page shows up.
    Now I wanna to be able to also protect my EJBs.
    My Stateless Session Bean is implemented as follow:
    @RolesAllowed("yyy")
    @Stateless(name="UserManagement")
    public class UserManagementBean implements UserManagement {
         public void add(User user) {
    }When I run all this, the container simply igoners the @RolesAllowed("yyy") annotation and allow the EJB execution.
    If I add the "jboss.xml" file, like this:
    <?xml version="1.0"?>
    <jboss>
         <security-domain>java:/jaas/exemplo1</security-domain>
    </jboss>I start getting this stack trace:
    ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
    java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
    at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
    at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
    at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
    at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ... Am I missing something? What do I have to do to get JAAS working fine with my EJBs? Do I have to also configure and/or provide "ejb-jar.xml" ???
    Thanks
    Daniel

    Using @SecurityDomain("exemplo1") in my EJB and NOT providing jboss.xml, it works.
    @SecurityDomain("exemplo1")
    @RolesAllowed("yyy")
    @Stateless(name="UserManagement")
    public class UserManagementBean implements UserManagement {
      public void add(User user) {
    }Damn! This is some serious shit... I don�t want to configure this in every single EJB.
    EJB 3.0 is nice, but some small trivial details like this and others, that was forgotten by Sun, piss me off!

  • Error in using Hibernate with EJB

    I have generated my Hibernate related configurtion file,POJO Classes & hbm files using MyEclipse 5.0. And Iam using JBuilder 10.0.176.0
    to develop the EJB module. When i try to compile my module it is saying POJO class is bad.
    "Bean2InsertBean.java": cannot access ejb_hibernate.Testsql,bad class file: D:\MyJava\bea\OurClasses\ejb_hibernate\Testsql.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath.
    But the classes are in correct directory.

    It looks like you have compiled the POJO class with Java 5 version whereas you are compiling the EJB module with Java1.x (i.e. a lower version). Compile the POJO class with Java 1.x and then try compiling the EJB module with the same version

  • Problem using XSU with EJB

    Hello
    1) I have trouble when using the Oracle XML SQL Ulitity (XSU) with Enterprise Java Beans (EJB).
    This is due to that
    oracle.xml.sql.OracleXMLSQLException extends RuntimeException
    i.e. is interpreted by the EJB container as a system exception.
    (java.sql.SQLException extends Exception)
    2) Is there anywhere I can submit a change suggestion to the XSU developer team?
    Regards
    Ole

    Hello
    1) I have trouble when using the Oracle XML SQL Ulitity (XSU) with Enterprise Java Beans (EJB).
    This is due to that
    oracle.xml.sql.OracleXMLSQLException extends RuntimeException
    i.e. is interpreted by the EJB container as a system exception.
    (java.sql.SQLException extends Exception)
    2) Is there anywhere I can submit a change suggestion to the XSU developer team?
    Regards
    Ole

  • How to  use Timing with EJB in J2EE1.3

    Hi,
    I am developing an EJB app where I need some sort of timing service. Unfortunately, I can't resort to the EJB Timer Service which is available under the J2EE1.4 spec, because the server I am working on is only J2EE1.3 compatible.
    I understand that I cannot use threads as they would intervene with the EJB thread handling.
    Can anybody give me an idea what I could use instead? Is there any trivial solution this? I'd be thankful to hear it..
    Regards,
    Katrin.

    Cross-post
    http://forum.java.sun.com/thread.jspa?threadID=730563&messageID=4204123#4204123

  • Is it possible to use JSP with EJB

    A pretty dumb question.
    JSP + Servlet + DB can be used together to write a j2EE application, such as some shopping system.
    But what's the usage for EJB? Does it still need JSP to do the output to client?

    To use a JSP with an EJB:
    Create a taglib for the EJB and access the EJB in the JSP with the taglib.
    WebLogic provides the EJB to JSP integration tool.
    http://e-docs.bea.com/wls/docs61/jsp/ejb2jsp.html

  • Using Oracle with EJB

    Hi
    I want to use Oracle as database for EJB. I would like to know how do I configure so that it will read from Oracle database rather than Cloudscape? Where do I specify url, username, password, database name etc?
    Thanks

    In WebLogic:
    -Include the dir containing the dll driver;=%WL_HOME%\bin\oci817_8 in your Path variable.
    -Add %ORACLE_HOME%\bin to your Path.
    -Create a new Jdbc Connection pool.
    Set url=jdbc:weblogic:oracle
    Set driver Class= weblogic.jdbc.oci.Driver
    In the Properties text box specify
    user=<user>
    password=<password>
    server=<Oracle Database>

  • Pleease Help (UIX with EJB)

    it seems that uix cannot be used with ejb and session beans like ADF views. for exampe the master detail between pages doesn't work. i am getting crazy.
    please give me anykeys about how to use UIX with EJBs and Session beans

    are you using CMP or BMP?

  • How to use ADF Query search with EJB 3.0

    Hi,
    In ADF guide http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_search_bc.htm#CIHIJABA
    The steps to create query search with ADF Business Components says:
    "+From the Data Controls panel, select the data collection and expand the Named Criteria node to display a list of named view criteria.+"
    But with EJB, I'm not able to find Named Criteria node. Can we use ADF query search component with EJB? If yes, can you please show me some example, tutorial etc.?
    Thanks
    BJ

    For EJBs you'll need to implement the query model on your own.
    An example of how the model should look like is in the ADF Faces components demo.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/query.jspx
    Code here:
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/demo/adf_faces_rc_demo.html

  • How to use Java WebStart with EJB ?

    hi forum...
    how to use Java WebStart with EJB ? examples ?
    thanks
    mindu

    Greetings,
    hi forum...
    how to use Java WebStart with EJB ? examples ?Well, for starters these are complementing, not 'cooperating', technologies. I presume, since EJB's do not - directly, at least - communicate with a web browser, that you intend for "Java WebStart" to somehow invoke an EJB?? Java WebStart is a technology for running client-side (Java) applications from the web browser - perceptively, the application resides on the server, but technically it, like an applet, is downloaded to the client and run there. Unlike an applet, however, it is not constrained by "sandbox" restrictions and does not have to be re-downloaded each time it is invoked - though the process allows for automagically updating the client-side with new versions of the application. ;) So, with this in mind, to "use Java WebStart with EJB" means little more than deploying an EJB client application with Java WebStart as the distribution channel.
    thanks
    minduRegards,
    Tony "Vee Schade" Cook

  • EJB developing in using NWDS with JDI

    i created EJB for client java proxy before creating DC.
    but i can not check-in it.
    do i have to create New DC? and then do i have to create EJB inside DC? or SC?
    if i have 10 EJB and 10 EAR source in NWDS, do i have to create 10 DC for 10 EJB and then 10 DC for 10 EAR?
    please guide me how to work in using NWDS with DC and DTR for CMS.
    i just want to use NWDS with JDI in order to manage source
    thanks
    venjamin

    hi,
    you mean it's better moving my EJBs i created into one DC?
    i can not move my EJB in NWDS to new one DC
    how can i do that?
    actually i developed 30 EJB in using NWDS without CMS, i have deployed those ejb to SDM via NWDS directly but now i am tring to use DTR in CMS.
    so using DTR, do i have to <b>develope in DC</b> for developing EJB?  or develope EJB without DC and then can i move it into DC? is it right concept?
    please drop me on right direction
    thanks
    venjamin

  • How to use Java Web Start with EJB ?

    hi forum...
    how to use Java WebStart with EJB ?
    examples ?
    thanks...
    mindu

    Mindu,
    WebStart will work with EJB. I use it with WebLogic Server. You have to make sure and deploy the weblogic.jar file - sign it if needed.
    For signing information, look here,
    http://java.sun.com/products/javawebstart/1.2/docs/developersguide.html
    Dan

Maybe you are looking for

  • Getting parseException if filename is not enclosed within quotes.

    My Client has sent attachment with filename encoded in iso-8859-2. When I parse the mail using javamail, i had ended up parseException. Below is the header and exception details. header: Content-Type: application/pdf; name==?iso-8859-2?b?RmFrdPpyYV9G

  • I need a diagnosis:

    I recently bought a macbook pro 15" with retina display.  I was previously using an Iomega external hard drive with my Imac, and the connection worked. I plugged the external HD into the new lap top, and it worked for about an hour. Then it stopped w

  • Apple TV - Wrong Language set-up

    While doing the Apple TV (2) setup I inadvertently clicked-on French language.  I wanted Eng. is there a fix?

  • What display settings do i need to change to use hdmi cable with macbook pro

    what display settings do i need to change to what tv and display my macbook pro with hdmi cable connected to computer.

  • Call view1 method from view2

    Hi all, I have two different views in two different windows. View1 opens a pop-up window which contains view2. I would like to execute view1 methods from view2 (pop-up). How can I achieve this? Thanks in advance.