How to Call EJB from coldfusion
I need to call EJB that's created in JBoss from coldfusion.
I'm getting different errors depending on how I set the home object
and provider url.
If I prefix provider url with jnp://, then I get the
following error
The connection to the remote JNDI server on host jnp at port
1099 has failed (as have all backup hosts listed, if any) - please
verify that the server is running and the NamingService is
available
If I take the jnp out and keep just the ip address and port,
then i get the following error
null (no security manager: RMI class loader disabled).
So I'm not sure what the issue is and I haven't used this
feature before.
Here's my code
I tries to call custom EJBfrom custom component received
follwong error
ERROR [STDERR] javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException:
No ClassLoaders found for: com.mycom.myapp.action.interfaces.pm.ejb.PmFacadeRemote
(no security manager: RMI class loader disabled)]
any idea?
Thanks
YogLC
Similar Messages
-
How to call ejb from Forms?
Hi.
I have an existing form (version 11.1.2.0.0) and an existing ejb. Both are running on a WebLogic server version 10.3.5.0. I want to call the ejb from the form (I know that this is not recommended, but in this case it is the only sensible solution). I have tried searching the web but I have not been able to find anything about this except some broken links.
Can somebody please explain how to do this or show me some documentation or tutorial?
Regards,
Sveinung
Edited by: SvSig on Aug 7, 2012 11:52 PMLet's skip the fact that you are asking about an EJB and instead talk about what options are available to call out to any external app or component. Here are some of the options:
<blockquote>1. To make calls from the client machine to any web server (HTTP listener) you can use WEB.SHOW_DOCUMENT. This command simply passes a url to a browser. No return information is passed back into the running form.
2. To make calls from the client machine to almost any process on the client side, including the OS directly, you would need to create a java bean and integrate it into your form. Whether or not you get return information will depend on how you write the bean and to what you are calling.
3. To make calls from the server side (mid tier) part of a running form to an external application or component on the same mid tier you can use the HOST command. This executes a shell command. Although specific information cannot be returned (i.e. return values), you can get pass or fail results.
4. To call out to java applications on the mid tier you can import java code into your Forms application using the Forms Java Importer. This will give you a direct connection to the java application both in and out.</blockquote>
All of the above examples are explained in the Forms Builder online help. There are other options which are explained in the Forms Deployment Guide
<blockquote>http://docs.oracle.com/cd/E24269_01/doc.11120/e24477/toc.htm</blockquote>
Look specifically at chapters 6-8
<blockquote><li>6 Oracle Forms and JavaScript Integration
<li>7 Enhanced Java Support
<li>8 Working with Server Events</blockquote>
Summary
<blockquote><li>WEB.SHOW_DOCUMENT
<li>HOST
<li>Java Bean
<li>Imported Java</blockquote> -
How to call ejb from a Swing gui application client?
Hi Everyone,
I am new to EJB and I have question for calling an ejb from a Swing GUI application client. Can anyone give me an example of how my Swing GUI can call an EJB from a SUN ONE Application Server. If anyone can give me some insight, I appreciate it.I have looked up various sources and just can't get it to work. I know I have to use the lookup() method, but I have also seen lookups using IIOP://servename......
Context ctx = getInitialContext();
DemoHome dhome = (DemoHome)ctx.lookup("demo.DemoHome");
or
Context ctx = getInitialContext();
DemoHome dhome = (DemoHome)ctx.lookup(java:comp/......)
so can anyone tell what is the difference between using iiop://servername..... as the lookup string and java:comp/......
and if using java:comp/ what does this mean? Does it mean that lookup() method is looking for the ejb somewhere in this directory. I would really appreciate if someone can give an example of a Swing GUI calling a ejb from an application server and how the code is actually doing the lookup in and what are each steps it goes through.
Thanks -
How to call EJB deployed on OC4J from java stored procedure?
Hello,
I'd like to call EJB from java stored procedure. My example works fine from command line, but the problem seems to be with deployment of this code into database. Especialy I'm wondering how to reference jars like oc4jclient.jar, ejb.jar, ... from java stored procedure.
Is there some example how to do that ?
Can You help me please ?
Many thanks,
Radim Kolek,
Eurotel Prague.Hi,
You may want to check up this thread
Calling JBoss EJBs from Java stored procedure
Hope this helps,
Sujatha.
OTN Group. -
Calling EJB from Java Stored Procedures
Hi,
I am trying to call an Enterprise Java Bean from stored procedure. This stored procedure calls a java program. As long as it is a simple java program it works fine and loadjava.exe does not give any problem (neither compile-time nor run-time).
It is not working when I am trying to call EJB from it. It is giving compile-time error.
If anybody has implemented the same please suggest how to go forward.
thanks in advance,
Shashank AgarwalI tried the same thing without any luck. I assume you are using OC4J for your EJB ...
The compiling issue may be because you don't have the classes in your EJB client jar loaded into the database. Once those classes are loaded, you should loadjava without any problem.
However, you won't be able to call the EJB server because the EJB client (your Java code in the DB) will need the OC4J environment (oc4j.jar). I have tried to load oc4j.jar into the DB as well, and that was a big mess and nothing worked. My DB is 8.1.7, maybe the new 9i have OC4J libs bundled?!?
I looked around and only found 2 alternatives:
1. Write a JSP page that acts like an EJB client, then use URLConnection in your DB java code to send params to the JSP for it to invlode the EJB
2. Replace the JSP with RMI code, and use RMI instead of URLConnection in your DB code to invloke the EJB client.
If you find any other solution, please share it here.
Good luck!
Hi,
I am trying to call an Enterprise Java Bean from stored procedure. This stored procedure calls a java program. As long as it is a simple java program it works fine and loadjava.exe does not give any problem (neither compile-time nor run-time).
It is not working when I am trying to call EJB from it. It is giving compile-time error.
If anybody has implemented the same please suggest how to go forward.
thanks in advance,
Shashank Agarwal -
Hello, everybody,
I'm very new at EJB and I'm trying to learn it.
I have created Enterprise Application using Netbeans IDE, I have EJB and APP client. What I want is to connect to my MySql database and get some info from table.
For e.g. Login and Password.
How can I call EJB from my client app which connects to my database and gets information I need?What server you are using?
if you use jboss AS ,here is a simple Main class how to connect EJB and access ejb methods:
package com.david.ejb.client;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import com.david.ejb.domain.Person;
import com.david.ejb.domain.PersonRemote;
public class Main {
public static void main(String[] args) {
try {
Context ctx = getInitialContext();
Object obj = ctx.lookup("PersonSessionRemote/remote");
PersonRemote pr=(PersonRemote)PortableRemoteObject.narrow(obj, PersonRemote.class);
Person p=new Person();
p.setName("david");
pr.addPerson(p);
pr.findPerson(1);
// System.out.print(br.find(pk).getAuthor_name());
} catch (Exception ex) {
ex.printStackTrace();
private static Context getInitialContext() throws NamingException {
Properties p = new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");
p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
p.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
return new InitialContext(p);
}Person is ant @Entity and PersonRemote is remote interfaces, to connect database you have to make datasource file at jboss-4.2.3.GA\server\default\deploy
simle mysql-ds.xml looks like this:
datasources>
<local-tx-datasource>
<jndi-name>some name</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/dbname</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root password</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<idle-timeout-minutes>15</idle-timeout-minutes>
<exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
<valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
</local-tx-datasource>
</datasources>also at resources/META-INF directory you must have persistence.xml like this
<persistence>
<persistence-unit name="SimpleEjb">
<jta-data-source>java:/some name</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
</properties>
</persistence-unit>
</persistence> -
Hello Developers!
I deployed my ejb to OAS4081. I call that
from JDeveloper so it good. But when I try
to call from applet in IExpl5 I can't
instantiate the ORB. I've got a com.ms.security.SecurityException : oracle.oas.orb.CORBA.ORB.init
I coded the CLASSPATH(oasoorb(yoj),client,
ejbapi...) perfectly, I think.
If anybody could help, please...
Thanx!Hi there,
I saw someone on this group had a problem to locate proper classpath
to call EJB from JSP. I thought if you call EJB from classpath, you are
calling the bean. But you loss all the EJB functions. To be able to utilize
EJB features like object pooling. You need to call it from Weblogic server
using url/jndi, not from the jar directly.
Any comment? Am I right?
BTW, my question about calling EJB from JSP means calling through URL,
not a local path.
Thank you
>-------------------------------------------------------------------->
Jim wrote in message <[email protected]>...
>Hi there,
> Can I call EJB from JSP? Is there a particular security setting or
>concern for Weblogic? Is there an coding example?
>
>Thank you
>
>
-
Related documents or links on how to call webservices from WDJ
Hi all
i need documents & links on how to call webservices from Webdynpro for Java.
if anybody send the documents on sample scenarios on the same then it is the great help to me...
Thanks
SunilHi Sunil,
May these links help you.
http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
and the below thread to call weservices in java.
Re: How to call a web service from Java
Regards,
Supraja -
Calling EJB from other EJB on other J2EE Server
Can I call EJB from other EJB on other J2EE Server
Servers - Websphere 5.0
Do i require home & remote interface of that ejb on client side also
Help me, pleasethe problem is actually i require that is specific to websphere
for example i want to call a method ion that ejb
say my ejb name is myejb
so the normal way i should call is
InitialContext initialContext = new InitialContext();
Object homeObject = initialContext.lookup("ejb/MyEjbHome");
MyEJBHome myEJBHome =(MYEjbHome )javax.rmi.PortableRemoteObject.narrow(homeObjectMYEjbHome.class);
myEJB = lSHome.create();
myEJB.someMethod();
but here i am having class for home and remote available
now if other app server i am not having this classes then what to do -
Calling EJB from from a client app
Hi all,
I am trying to call an EJB component from portal. The example EJB I have taken is from SDN Bonus Calculator example - Application Server/Web Dynpro/Samples and Tutorials/Using EJBs (20)
I deployed the EAR file - no issue
I wrote the following code in a client app and trying to connect to the EJB remotely.
try {
java.util.Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
properties.put(Context.PROVIDER_URL, "ux0800:55304");
InitialContext ctx = new InitialContext(properties);
//InitialContext ctx = new InitialContext();
// get ejb home
home =
(BonusCalculatorLocalHome) ctx.lookup(
"localejbs/MySessionBean");
theCalculator = home.create();
} catch (Exception namingException) {
namingException.printStackTrace();
I get the following error
javax.naming.NoInitialContextException: Cannot instantiate class: com.sap.engine.services.jndi.InitialContextFactoryImpl [Root exception is java.lang.ClassNotFoundException: com.sap.engine.services.jndi.InitialContextFactoryImpl]
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.sap.bonus.calculation.sessionBean.MyCommandBean.<init>(MyCommandBean.java:27)
at com.sap.bonus.calculation.sessionBean.MyCommandBean.main(MyCommandBean.java:68)
Caused by: java.lang.ClassNotFoundException: com.sap.engine.services.jndi.InitialContextFactoryImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
Any clue will be appreciated.
thnxHi Sabbir,
Following code works for me in calling EJB from normal java application. Did you added the jar files to your application?. see the required jar files in end of code.
Create simple java applcation do the following steps:
Give JNDI name to the EJB(HelloJNDI)->Add the HelloEJB to HelloEAR ->deploy
Proxy Program to call ejb:
import javax.naming.Context;
import javax.naming.InitialContext;
import com.sample.Hello;
import com.sample.HelloHome;
public class HelloTest {
public static void main(String[] args) {
Hello remote = null;
try {
Context ctx = new InitialContext();
HelloHome home = (HelloHome) ctx.lookup("HelloJNDI");
remote = home.create();
String result = remote.hello();
System.out.print("Result:" + result);
} catch (Exception e) {
System.out.println("Exception:" + e.getLocalizedMessage());
1. Go To Run > Java Application ->New->select your project and select your main class(java program from which your going to call EJB)
2. Click next tab ->(x)=Arguments
paste the following code in VM Arguments
-Djava.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl -Djava.naming.provider.url=localhost:50104
replace the server IP address with your server IP address where your ejbs are running.
Under Class path settings for the program put the following jar files.
You can search for them from net weaver soruce folders
or copy from D:\usr\sap\J2E\JC01\j2ee\j2eeclient
ejb20.jar
logging.jar
exception.jar
sapj2eeclient.jar
Add Corresponding ejb.jar
and RUN >>>
this makes testing of your client programs easier, you can find the error trace on which line and saves lot of time.
Regards, Suresh -
How can I call EJB from JSP/Servlets in iWS?
Hi!!
My JSP/Servlets are on iWS, and I deploy EJB on iAS.
In this case, I don't know how JSP/Servlet call EJb on iAS.
I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
I will thank you if you give me a simple example source using JSP/Servlet
and EJB.
Thanks in advance!!!
- Park-Park,
Why Are you running your JSP/Servlets in iWS instead of iAS? For whatever
reason,
look at the Converter sample from iAS. You will be doing RMI/IIOP in this
case and the sample explains in detail what to do.
hth,
-robert
"SungHyun, Park" <[email protected]> wrote in message
news:9jpfmt$[email protected]..
Hi!!
My JSP/Servlets are on iWS, and I deploy EJB on iAS.
In this case, I don't know how JSP/Servlet call EJb on iAS.
I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
I will thank you if you give me a simple example source using JSP/Servlet
and EJB.
Thanks in advance!!!
- Park- -
Calling EJB from JSP in SSL Mode
Hi,
I need to call an EJB from JSP in SSL Mode.
How can i do that.
Regards,
S.V.Satish KumarIn that case you can refer to the following documents:
Using JPA: http://help.sap.com/saphelp_nwce711/helpdata/en/44/eba6292f446c30e10000000a114a6b/frameset.htm
Accessing persistence functionality in EJB 3.0: http://help.sap.com/saphelp_nwce711/helpdata/en/46/307a2a50094f09e10000000a114a6b/frameset.htm
Tell me, if these documents help you. Otherwise, I will search for more information on the topic.
Best regards,
Ekaterina -
I'm using OC4J 10.1.3 Standalone.
I have a requirement to initialize web services and configuration parameters during app server start up.
Accordingly,I planned to call a EJB 2.0 stateless session bean from a StartUp class.
The ejb is responsible for initializing some configurations and web services.The ejb is dependent on some other classes which are present as utility jars .
However,I cannot somehow figure out how to refer the EJB from my startup class because the EAR which contains the EJB jar is in a child loader to that containing the startup class.
Please guide me!! Please suggest if some alternative approach could be taken to suffice my requirement.
TIAAvi, I was just waiting for the "servlet hack".
I really prefer the application client way, much cleaner, no servlet container needed, and could be tested outside the container.
--olaf -
Calling EJB from Oracle via IIOP
I've spent the last two days trying to figure out how I can call an
EJB from an Oracle Stored Procedure. I first looked into WLS JNDI
(Using WLInitialContextFactory ), but my collegue recommended I look
into IIOP because it is "less proprietary". I was able to get a WL
example working that does a lookup on an EJB and "narrows" the IIOP
object...so it looked promissing, but then I tried to load the JAR
into Oracle and it said:
"referenced name javax/rmi/PortableRemoteObject could not be found"
So I did a quick check and it looks like this didn't come into
existance until JDK 1.3. By all accounts, Oracle 8.1.6 supports JDK 2
(1.2). So now I'm stuck. I've got a few examples about connecting to
the Oracle ORB using session-iiop, but I don't know if Weblogic will
be able to work with this. I don't know how I'd even call it because
the URL requires an Oracle SID...so now what? I see three options.
Please let me know which would be best (or another option that I'm
missing)
1. Try connecting with Weblogic "T3"
2. Try to get the right combination of classes loaded so 1.2 can work
like 1.3
3. Use the Oracle IIOP (I have no examples for connecting to other
ORBs so I have no idea how to lookup objects).
Chris[email protected] (Chris Snyder) writes:
Andy Piper <[email protected]> wrote in message news:<[email protected]>...
[email protected] (Chris Snyder) writes:
1. Try connecting with Weblogic "T3"It depends on what version of WLS you are using. If you are using 6.1
then you are out-of-luck because this only support JDK 1.3.1.We are using WLS 6.1 and Oracle 8.1.6. There's got to be a way to
connect what is essentially a 1.2 JVM to a 1.3.1 JVM. On my way home
yesterday I was wondering if just straight RMI would work...although
we need to encrypt the connection. I've seen several people talk
about calling EJB's from stored procedures so it seems like there is a
way. Any other ideas?The really gross way is HTTP. In a previous life I had a customer use
oracle's HTTP plug-in to do this. You could probably invert the
problem also. I.e. write CORBA objects that sit inside an Orb hosted
in WLS and invoke on those using oracle's CORBA support. But HTTP is
probably the way most likely to work. You probably couldn't use RMI
over HTTP either - you would have to write a servlet that delegated to
your beans.
andy -
Hi - I'm running OC4J 9.0.2 on windows 2000
I have a JSP that accepts user inputs and the call respective Servlets. Before the servlet gets called, I want to log a tracing event with an EJB(Stateless Session Bean).
I have manipulated the "form" values with JavaScript but cannot find any docs on how to call an EJB from JavaScript in a JSP.
The JSP and EJB works fine on there own. How do I get the "form" values into the EJB variables without JavaScript?
The EJB logs fine while still in the "JAVA" part of the JSP but I don't know how to extract these 2 index values.
Tks
Andre
Here is extract of code:
<%@ page language="java" contentType="text/html;charset=windows-1252"%>
<%@ page language="java" import="java.io.*"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="javax.naming.*"%>
<%@ page language="java" import="javax.rmi.*"%>
<%@ page language="java" import="WizardEvents.WizEventLog.*"%>
<HTML>
<HEAD>
<BODY background="/wp/Background.gif">
<script language="JavaScript">
// build timer to display at bottom of screen for debugging of screen dumps
function display_time()
var da = new Date();
var dd = da.getDate('DD');
var dm = da.getMonth('MON')+1;
var dy = da.getYear('YYYY');
var h = da.getHours();
var m = da.getMinutes();
if (m < 10)
m = "0" + m;
var t = dy+"\-"+dm+"\-"+dd+" "+h+":"+m;
defaultStatus = t;
setTimeout("display_time()",60000); // one minute
return true;
function registerEvent()
var menuItem = document.selRequest.selCategory.selectedIndex;
var serviceOption = document.selRequest.serviceOption.selectedIndex;
// now invoke EJB to log event
alert("selected menu option is "+menuItem+" and service option "+serviceOption);
return true;
// get the value from the categories and build up list of the options...
function buildItems()
// alert("Building items");
// get the index (starting with 0) of the categories selection
var menuItem = document.selRequest.selCategory.selectedIndex;
// reset the values for the options selection to 0
document.selRequest.serviceOption.length=0;
// define new array to hold options for transfer to selection item
newOptions = new Array;
// Now check which menu option, build list
var newLength = 0;
switch(menuItem)
case 0:
newLength = 1;
newOptions[0] = new Option("No Service Option",0,false,false);
break;
case 1:
newLength = 1;
newOptions[0] = new Option("No Service Option",0,false,false);
break;
case 2:
newLength = 1;
newOptions[0] = new Option("No Service Option",0,false,false);
break;
case 3:
newLength = 1;
newOptions[0] = new Option("No Service Option",0,false,false);
break;
case 4:
newLength = 1;
newOptions[0] = new Option("No Service Option",0,false,false);
break;
case 5:
newLength = 5;
newOptions[0] = new Option("All wallet and airtime balance",0,true,true);
newOptions[1] = new Option("Airtime balance",1,false,false);
newOptions[2] = new Option("SMS-a-lot balance",2,false,false);
newOptions[3] = new Option("Call Extender balance",3,false,false);
newOptions[4] = new Option("Per Second Billing balance",4,false,false);
break;
case 6:
newLength = 2;
newOptions[0] = new Option("Subscriber data - Channel Provisioning Options",8,true,true);
newOptions[1] = new Option("IBS Pending Transaction Inquiry",9,false,false);
break;
default:
newLength = 1;
newOptions[0] = new Option("No Service Option - Default",0,false,false);
break;
var serviceOption = document.selRequest.serviceOption;
// transfer array to select statement
for (var i=0; i < newLength; i++)
serviceOption.options[i] = newOptions;
</script>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>Wizard Prepaid Interface</TITLE>
<%----%>
<BODY text="#FFFFFF" bgcolour="#ffffff" bgcolor="#3c698a" onload="display_time();" >
<H2 ALIGN=Center>Wizard Prepaid Interface</H2>
<PRE>
<%
java.util.Enumeration params=request.getParameterNames();
StringBuffer urlBuf = request.getRequestURL();
String urlValue = urlBuf.toString();
int colPos = urlValue.indexOf(":8888");
String serverName = urlValue.substring(0,colPos+5);
String paramValues1[] = request.getParameterValues("event_ref_no");
String eventRefNo = paramValues1[0];
String paramValues2[] = request.getParameterValues("msisdn_no");
String msisdnNo = paramValues2[0];
String paramValues3[] = request.getParameterValues("operator_id");
String operatorId = paramValues3[0];
String paramValues4[] = request.getParameterValues("wizDB");
String wizDB = paramValues4[0].toLowerCase();
// set session values into session object
session.removeAttribute("eventRefNo");
session.removeAttribute("msisdnNo");
session.removeAttribute("operatorId");
session.removeAttribute("wizDB");
session.removeAttribute("serverName");
session.setAttribute("eventRefNo",eventRefNo);
session.setAttribute("msisdnNo",msisdnNo);
session.setAttribute("operatorId",operatorId);
session.setAttribute("wizDB",wizDB);
session.setAttribute("serverName",serverName);
session.setAttribute("eventOpenCount","0");
session.setAttribute("errorString","No errors encountered yet");
// now build ref to lookup event log EJB
WizardEvents.WizEventLog eventBean;
Context ctx = new InitialContext();
Object homeObject=ctx.lookup("WizEventLog");
WizardEvents.WizEventLogHome home =
(WizardEvents.WizEventLogHome)PortableRemoteObject.narrow(homeObject, WizardEvents.WizEventLogHome.class);
eventBean=(WizardEvents.WizEventLog)PortableRemoteObject.narrow(home.create(),
WizardEvents.WizEventLog.class);
int eventRefNoInput = Integer.parseInt(eventRefNo);
int operatorIdInput = Integer.parseInt(operatorId);
long msisdnNoInput = Long.parseLong(msisdnNo);
int callCatCodeInput = 177;
int callCatItemCodeInput = 2;
String machineName = "WEB";
String moduleName = "WIZARDPREPAID.JSP";
String[] resArray = null;
// event logging EJB
resArray = eventBean.setEventDetail(eventRefNoInput,
operatorIdInput,
callCatCodeInput,
callCatItemCodeInput,
machineName,
moduleName,
wizDB);
%>
</PRE>
<%--
// check if data passed is valid
--%>
<jsp:include page="/servlet/CheckValidURL" flush="true"></jsp:include>
<%
if (session.getAttribute("eventOpenCount").equals("1"))
%>
<H3 ALIGN=CENTER>MSISDN = <%=msisdnNo%></H3>
<HR>
<H4 ALIGN=CENTER>Prepaid Query History</H4>
<%--
onclick can empty the service options field
--%>
<TABLE>
<TD>Enter request target :</TD>
<%--action="/wp/servlet/ValidateParamsClass"--%>
<FORM name="selRequest" method="POST" >
<TD><SELECT name="selCategory" onchange="buildItems()" >
<OPTION value="Prepaid Cards Loaded">Prepaid Cards Loaded</OPTION>
<OPTION value="Prepaid Recycle History">Prepaid Recycle History</OPTION>
<OPTION value="Prepaid Failed Recharges">Prepaid Failed Recharges</OPTION>
<OPTION value="Prepaid Access4Life Status">Prepaid Access4Life Status</OPTION>
<OPTION value="Prepaid Number4Life Status">Prepaid Number4Life Status</OPTION>
<OPTION value="IBS Balance Inquiry">IBS Balance Inquiry</OPTION>
<OPTION value="IBS Subscriber Data Inquiry">IBS Subscriber Data Inquiry</OPTION>
</SELECT>
</TD>
</TABLE>
<%--
Build the possible service options for IBS depending on selection
Create selection list and then assign default value of none
--%>
<TABLE>
<TD>Possible Service Options:</TD>
<TD><select name="serviceOption">
<option value="">No option available</option>
<SCRIPT>
// re-build items to cater for FORWARD/BACK buttons, etc
buildItems();
</SCRIPT>
</TD>
</TABLE>
<%--
--%>
<%--
--%>
<INPUT type="submit" value="Query Prepaid Systems" onclick="registerEvent()" >
</FORM>Hi Christian,
A few questions to clarify where the cause of the problem might be:
1. When you run the JSP app in JDeveloper, are you connecting to the remotely deployed app module, or the local one in your workspace?
2. In your JSP project, there is an appmodule.properties file. This file should specify the connection mode to use to connect to your EJB (ConnectMode=EJB), and should be deployed to a directory on your webserver's classpath, along with the connections.properties file. If the appmodule.properties file contains the wrong connectmode setting, or is not on the classpath for the webserver, this might be the cause.
Let us know.
Maybe you are looking for
-
Why when we are working with a material of many pages, and all pages have the same measure, and alter the size of each page (in File -> Document Setup), we can no longer generate booklets? I was tested in version CS5 and it worked perfectly in versio
-
I downloaded more than ten invoicing apps from the App Store yesterday to check them out for ease of use. I ended with five on my iPad to consider and entered trial info on each. This morning I noticed I had duplicate headers in my calendar for maj
-
Installation ABAP import phase problem
Dear Friends, I am installing ABAP application server within Netweaver 7.02 which has been downloaded from this site on my LAPTOP. Phases 1 -15 took about 2 hrs to install. After that it entered Phase 16 i.e Import ABAP and it has gone on for more t
-
Dear Friends, this is chandra shekar working as a MM consultanat, here i got some problem in secess in import procurement process it is not showing in J1IEX and MIGO before this it is captured well i'm using condition type J1CV for
-
Approach Composite application: sales
Hi everyone, I'm doing my thesis on Enterprise SOA for college and building a composite application using CE 7.2: BPM, BRM, Web Dynpro JAVA. I was hoping to get your thoughts on my approach to see if it is realistic. It will be an application that ha